---
title: "OBI API: Stock | Perceptlayer"
description: "Stock from OBI as JSON. 1 credit per successful call."
url: https://perceptlayer.com/apis/obi/stock
---

[APIs](https://perceptlayer.com/apis) / [OBI](https://perceptlayer.com/apis/obi) / Stock

# OBI: Stock

Stock from OBI as JSON. 1 credit per successful call.

GET `/v1/obi/stock`

## Parameters

Send parameters in the query string.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `id` | string | Required | Any |
| `store_ids[]` | list of string | Required | Any |

## Example request

OBI

GET /v1/obi/stock?id=7509672&store\_ids\[\]=143 

```
{
  "success": true,
  "data": {
    "id": "7509672",
    "requested_store_ids": [
      "143"
    ],
    "items": [
      {
        "store_id": "143",
        "available_quantity": 0,
        "available": false
      }
    ]
  },
  "meta": {
    "endpoint_family": "obi_stock",
    "duration_ms": 654,
    "attempts": 1
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded 30 Nov 2026 and shortened.

[Run this endpoint in the playground](https://perceptlayer.com/apis/obi?try=stock#playground) with your own parameters. 1 credit per successful call; failed calls are free.

## Response fields

`data` has these 3 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

| Field | Type |
| --- | --- |
| `id` | string |
| `requested_store_ids` | string\[\] |
| `items` | object\[\] |
