Business Stories API

Daily stock-market stories for editorji's Business → Markets section: the text, charts and figures, ready to import into a CMS or website.

Service running · /health

What you get

Every weekday after the NSE close (15:30 IST) four stories are generated and published here:

typeCovers
top_gainersThe day's 5 biggest risers in the Nifty 50
top_losersThe day's 5 biggest fallers in the Nifty 50
sectoral_indicesNifty 50, Nifty Bank, Nifty IT, Nifty Pharma and Sensex
global_indicesIndian indices plus 9 world indices (S&P 500, Dow, NASDAQ, FTSE, DAX, CAC, IBEX, Nikkei, Hang Seng)

Indian stories are skipped on days NSE does not trade. A corrected re-run of a story keeps its id and gets a new updated_at.

1. Get an API key

Every consumer (a CMS, a website, a partner) gets its own key from the editorji data-engineering team. Keys look like bsk_…, are shown only once, and can be revoked or renewed at any time. Keep yours in a secret store, never in code or chat.

2. Call the API

Send the key in the X-API-Key header (or as Authorization: Bearer <key>).

GEThttps://business-stories.editorji.biz/api/v1/stories

Lists stories, oldest update first. Query parameters (all optional):

ParameterMeaning
sinceOnly stories updated at or after this time, ISO-8601 (e.g. 2026-10-01T00:00:00Z)
typeOne of top_gainers, top_losers, sectoral_indices, global_indices
limitStories per page, 1–100 (default 20)
cursorThe next_cursor from the previous page

Returns {"stories": [...], "next_cursor": "…" | null}.

GEThttps://business-stories.editorji.biz/api/v1/stories/<id>

One story by its id.

Examples

KEY='bsk_…'

# latest stories
curl -H "X-API-Key: $KEY" "https://business-stories.editorji.biz/api/v1/stories?limit=20"

# only top gainers, updated since 1 October
curl -H "X-API-Key: $KEY" "https://business-stories.editorji.biz/api/v1/stories?type=top_gainers&since=2026-10-01T00:00:00Z"

# next page
curl -H "X-API-Key: $KEY" "https://business-stories.editorji.biz/api/v1/stories?cursor=<next_cursor>"

3. Keep in sync

  1. Call /api/v1/stories?since=<last updated_at you processed>.
  2. Keep calling with cursor=<next_cursor> until next_cursor is null.
  3. Upsert each story by its id (since is inclusive, so you may see the last one again), then store the newest updated_at for the next run.

Polling every 15–60 minutes is plenty: new stories arrive once a day, shortly after 15:30 IST.

Story format

{
  "id": "6f1c…",
  "created_at": "2026-10-05T11:24:23Z",
  "updated_at": "2026-10-05T11:24:23Z",
  "story_type": "top_gainers",
  "story_date": "2026-10-05",
  "headline": "NSE Nifty 50 Top Gainers: The 5 Biggest Stock Gainers Today, October 5, 2026",
  "summary": "…",
  "highlights": ["…", "…", "…"],
  "meta_description": "…",
  "keywords": ["…"],
  "category": "Business", "subcategory": "Markets",
  "author": "Editorji News Desk", "language": "en",
  "cover_image": "https://…/percentage_change.png",
  "body_html": "<p>…</p><p><img src=\"https://…\"></p>…",
  "items": [{"name": "ITC", "symbol": "ITC.NS", "close": 269.0, "change_pct": 5.08, "…": "…"}]
}

Times are UTC. body_html is ready to render: the text is HTML-escaped and the chart images are served from our CDN.

Errors

StatusMeaning
401API key missing, wrong or revoked
400Invalid limit, type, since or cursor (the reply's error says which)
404No story with that id