Skip to content
Scrappa Get API key
OBI API 1 credit / request

OBI Stock

GET https://scrappa.co/api/obi/stock

Get per-store stock for one product and up to ten store ids from the stores route. An incomplete or failed chunk is never reported as out of stock. Costs 1 credit per successful request. Failed requests are not billed.

OBI Stock 1 credit / request

Endpoint

Request preview
GET
https://scrappa.co/api/obi/stock
Auth header
x-api-key
Cost
1 credit / request
id = 1234567890 store_ids = ["example"]
Response preview
200 OK
Example JSON appears below when a response schema is available for this endpoint.

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

2 required parameters needed before sending a request.

id string Required

Numeric article id.

Example value 1234567890
store_ids array Required

One to ten store ids.

Example value ["example"]

Errors

Handle these documented responses before retrying or showing customer-facing failures.

API Error

No usable stock was returned. The request is not billed and costs 0 credits.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.