Ninja API
Track Ninja stores, products, stock, offers, and merchandising across Saudi darkstores.
- By request Access by contact
- Updated
Ninja API endpoints
What each one takes and what it returns. Open one for a real response, every input and every field.
Ninja Inventory API
Get store-scoped stock quantities and availability for up to 100 Ninja product ids.
Sendstore_idandproduct_ids
ReturnsJSON; every field is in the API reference
Ninja Offers API
List current store offers with quantities, discounts, and linked buy/offer product ids.
Sendstore_id
Returnstitlebadgebuy_product_idsbuy_quantitydescriptiondiscount
Ninja Product API
Get one Ninja catalog product by stable product id, including price, discount, brand, category, unit, and image.
Sendproduct_id
Returnsnamecategory_idcategory_namecurrencydiscounted_price_centsid
Ninja Products API
List products by category and/or brand for a store, with price, discount, unit, brand, category, and image.
Sendstore_id
Returnsnamebrand_codecategory_idcategory_namecurrencyid
Ninja Store API
Resolve the Ninja darkstore(s) serving a latitude/longitude, including delivery mode, fee, minimum order, and estimated delivery fields.
Sendlocation
Returnsstores
Ninja Stories API
List current store merchandising stories with localized copy, public media, ordering, and redirect metadata.
Sendstore_id
Returnscodeidmediaredirect_urlweight
What teams build with Ninja data
-
Monitor grocery assortment, prices, and availability by Ninja store StoreCategoriesInventory
-
Compare brand and category coverage across Saudi darkstores Categories
-
Track complex offers and in-app merchandising campaigns Offers
Call it from your code, or ask your agent
One request shape for every Ninja endpoint: the endpoint ID and its input. No SDK needed.
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.product.get", "input": { "product_id": "1126" }}'
import jsonimport osimport requestspayload = json.loads(r'''{ "capability": "ninja.product.get", "input": { "product_id": "1126" }}''')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.product.get", "input": { "product_id": "1126" }}),});if (!response.ok) { throw new Error(`Upscrape request failed: ${response.status}`);}console.log(JSON.stringify(await response.json(), null, 2));
{ "name": "Ulker Deluxe Wafer Hazelnut 40 gm", "category_id": "435", "category_name": "Wafers", "currency": "SAR", "discounted_price_cents": 0, "id": "1126", "original_price_cents": 175, "price_cents": 175, "type": "product", "uom": "PCS"}
https://data.upscrape.com/mcp
With Upscrape, get the Ninja product for product id "1126". Tell me what it costs before you run it, then show the results as a table.
More commerce & delivery scraper APIs
All Commerce & delivery scraper APIsNinja API FAQ
The short answers. The docs have the long ones.
What data can I get from Ninja?
Categories, inventory, offers, product, products, store and stories. Each is its own endpoint with a published input schema, and the response is JSON.
How much does the Ninja API cost?
Access to Ninja is arranged with us directly. Contact us and we set it up for your account.
Do I need a Ninja account or login?
No. Upscrape reads the pages Ninja shows to any visitor, so you send the input the endpoint asks for and get the data back. Nothing runs on your account, and you share no password or cookie.
Can an AI agent use the Ninja API?
Yes. Connect any MCP client to the Upscrape MCP server with OAuth or an API key. The agent finds the Ninja endpoint, checks its price and runs it with the same credits as the REST API.
Is it legal to scrape Ninja?
Upscrape reads public pages only and needs no login. How you use the data is yours to decide under the laws that apply to you; we sign a data processing agreement for your legal review.
What happens when Ninja changes its pages?
We fix the endpoint. Your request and the response fields stay the same.
Ninja data, set up for you.
Access to Ninja is arranged with us. Tell us what you need and we set it up.