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 · /healthWhat you get
Every weekday after the NSE close (15:30 IST) four stories are generated and published here:
type | Covers |
|---|---|
top_gainers | The day's 5 biggest risers in the Nifty 50 |
top_losers | The day's 5 biggest fallers in the Nifty 50 |
sectoral_indices | Nifty 50, Nifty Bank, Nifty IT, Nifty Pharma and Sensex |
global_indices | Indian 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>).
Lists stories, oldest update first. Query parameters (all optional):
| Parameter | Meaning |
|---|---|
since | Only stories updated at or after this time, ISO-8601 (e.g. 2026-10-01T00:00:00Z) |
type | One of top_gainers, top_losers, sectoral_indices, global_indices |
limit | Stories per page, 1–100 (default 20) |
cursor | The next_cursor from the previous page |
Returns {"stories": [...], "next_cursor": "…" | null}.
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
- Call
/api/v1/stories?since=<last updated_at you processed>. - Keep calling with
cursor=<next_cursor>untilnext_cursorisnull. - Upsert each story by its
id(sinceis inclusive, so you may see the last one again), then store the newestupdated_atfor 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
| Status | Meaning |
|---|---|
401 | API key missing, wrong or revoked |
400 | Invalid limit, type, since or cursor (the reply's error says which) |
404 | No story with that id |