Loading the API reference…

Browse the API reference

Page news stories by position

post https://quant-ws.prod.thinkalpha.io/news/page

Returns a page of news stories that mention any of the requested symbols, newest first, using position-based paging.

A news story is an article or press release tagged with ticker symbols. Stories tagged with more than three symbols are never returned. Stories are ordered by publishedAt, newest first; stories with the same publishedAt are ordered by id, descending.

Each request returns at most limit stories (maximum 150; larger values are treated as 150), in one of these modes selected by kind:

  • initial: the newest stories. The response carries hasNewer (always false, because the page starts at the newest story) and hasOlder.
  • down: stories strictly older than a position, newest first. Use it to scroll back in time.
  • up: stories strictly newer than a position, oldest first, nearest to the position first. Use it to pick up stories published after the newest one you hold; reverse the rows if you display newest first.
  • backfill: every story between oldest and newest, both included, newest first, one page at a time. Start with page: { "kind": "first" }, then continue with page: { "kind": "after", "position": ... } using the position of the last story you received. Use it to fill a gap between two pages you already hold.
  • lead is not supported for news and is rejected with 400.

A position is { "publishedAt", "id" }, copied from a story you already hold. It stays valid even if that story is later removed. Non-initial responses carry hasMore, which is true when more stories exist beyond the page in the direction you were reading; an empty page never reports more.

Symbols are trimmed and converted to upper case. An empty symbols array returns an empty page. Any authenticated caller can use this operation; results do not depend on who the caller is.

Use POST /news/page to build a scrolling feed or to read every story without gaps. To fetch the stories of a time window in one call, to choose the sort order, or to poll cheaply with an ETag, use POST /news/queries. To read the full text of a story, use GET /news/story/{articleId}.

Authentication
Bearer token or Client credentials (HTTP Basic)

Request body application/json required

A news paging request. The `kind` field selects one of five request shapes; all of them carry `symbols`, `query` and `limit`.

A news paging request. The `kind` field selects one of five request shapes; all of them carry `symbols`, `query` and `limit`.

One of
  1. object

    Loads the newest rows, as of now or (when the query supports an anchor) as of a past time.

  2. object

    Loads the rows strictly newer than `position`, nearest first (oldest to newest). Use it to pick up rows that arrived after the newest row you hold.

  3. object

    Loads the rows strictly older than `position`, newest first. Use it to scroll back in time.

  4. object

    Loads every row between `oldest` and `newest`, both included, newest first, one page at a time. Use it to fill a gap between two pages you already hold.

  5. object

    Loads upcoming rows. Only the corporate actions page supports it; news and filings requests with this kind are rejected with 400.

Responses

A page of news stories. `kind` echoes the request kind; the other fields depend on it.

One of
  1. object

    The newest rows, newest first.

  2. object

    Rows strictly newer than the requested position, oldest first.

  3. object

    Rows strictly older than the requested position, newest first.

  4. object

    Rows of the requested range, newest first.

  5. object

    Upcoming rows, in the order of the corporate actions page.