Ninja Stories API
List current store merchandising stories with localized copy, public media, ordering, and redirect metadata.
- By request Access by contact
- Updated
- ninja.stories.list
{ "stories": [ { "code": "NewArrival_Story", "id": "34", "redirect_url": "ananinja://virtual-categories?id=22908", "weight": 1610, "media": [ { "id": "90677", "type": "gallery" } ] }, { "code": "ICE Cream Story 2026", "id": "565", "redirect_url": "ananinja://virtual-categories?id=19392", "weight": 1580, "media": [ { "id": "418212", "type": "gallery" } ] } ]}
| # | Code | Weight | Id | Redirect url |
|---|---|---|---|---|
| 1 | NewArrival_Story | 1610 | 34 | ananinja://virtual-categories?id=22908 |
| 2 | ICE Cream Story 2026 | 1580 | 565 | ananinja://virtual-categories?id=19392 |
| 3 | Best Offers_2026 | 1700 | 566 | ananinja://virtual-categories?id=9484 |
What you send
The input
object of the request, with every field the endpoint accepts.
| Field | Type | Required | What it does | Example |
|---|---|---|---|---|
| store_id | string | yes | Serving store id from ninja.store.get. | 5 |
Fields it returns
What each record in the response holds, with the values from the sample above.
| Field | Type | Example |
|---|---|---|
| stories[].code | string | NewArrival_Story |
| stories[].id | string | 34 |
| stories[].media | array | 1 records |
| stories[].media[].id | string | 90677 |
| stories[].media[].type | string | gallery |
| stories[].redirect_url | string | ananinja://virtual-categories?id=22908 |
| stories[].weight | integer | 1610 |
| stories | array | 3 records |
Call it from your code, or ask your agent
Set UPSCRAPE_API_KEY to your key and copy a working request.
curl --request POST \ --url https://data.upscrape.com/execute \ --header "Authorization: Bearer $UPSCRAPE_API_KEY" \ --header "Content-Type: application/json" \ --header "Prefer: wait=30" \ --data '{ "capability": "ninja.stories.list", "input": { "store_id": "5" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "ninja.stories.list", "input": { "store_id": "5" }}''')response = requests.post( "https://data.upscrape.com/execute", headers={ "Authorization": f"Bearer {os.environ['UPSCRAPE_API_KEY']}", "Content-Type": "application/json", "Prefer": "wait=30", }, json=payload,)response.raise_for_status()print(json.dumps(response.json(), indent=2))
const response = await fetch("https://data.upscrape.com/execute", { method: "POST", headers: { "Authorization": `Bearer ${process.env.UPSCRAPE_API_KEY}`, "Content-Type": "application/json", "Prefer": "wait=30", }, body: JSON.stringify({ "capability": "ninja.stories.list", "input": { "store_id": "5" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
https://data.upscrape.com/mcp
With Upscrape, get the Ninja stories for store id "5". Tell me what it costs before you run it, then show the results as a table.
More from the Ninja API
Ninja Stories API FAQ
The short answers. The docs have the long ones.
How much does the Ninja Stories API cost?
Access is arranged with us directly. Contact us and we set it up for your account.
What do I send?
Send store_id. The input fields below list every option with its type and limits.
Do I need a Ninja login?
No. It reads public Ninja data; nothing runs on your account.
Can my AI agent call it?
Yes, over MCP: the agent finds ninja.stories.list, checks its price and runs it with the same credits as the REST API.
Ninja data, set up for you.
Access to Ninja is arranged with us. Tell us what you need and we set it up.