Personalized News Feed API

This document will show an example of how you can request a personalised news feed from AlphaStream’s Insights API on a client side application using JavaScript.

Check Live Version

Request Access Token

The Insights API is protected by access tokens. To request an access token, you will need both your client_id and client_secret. The Bearer token must then be included in any API request Authorization headers.

KeyValue Required
client_id{your_client_id}Yes
client_secret{your_client_secret}Yes
grant_type'client_credentials'Yes

Example Request

Example Response

Requesting a personalized news feed

This request will return a collection of personalized financial content for a user. For this example, we will be requesting Benzinga news, but we have a range of different data sources including Twitter and FxStreet. The items are returned sorted by event date, with the most recent headlines appearing first.

KeyValueRequired
datasources['Benzinga']Yes

Example Request

Example Response