# Amazon Product stock API (amazon.product_stock)

- Canonical page: [https://everyinfra.com/en/amazon-api/product_stock](https://everyinfra.com/en/amazon-api/product_stock?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "amazon", "action": "product_stock", "params": {...}}
- Price: $0.005597 per call ($5.6 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=amazon&action=product_stock

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | A product link from any of 14 Amazon stores (`amazon.com`, `amazon.ca`, `amazon.com.mx`, `amazon.com.br`, `amazon.in`, `amazon.co.jp`, `amazon.com.au`, `amazon.de`, `amazon.es`, `amazon.co.uk`, `amazon.fr`, `amazon.it`, `amazon.nl`, `amazon.ae`; `www.` is optional), or a 10-character ASIN on its own, in which case `domain` picks the store. A link from `amazon.sg`, which is not open yet, is rejected with 422 before you are charged. |
| domain | not declared | no | not declared | The Amazon store to use when `url` is only an ASIN, written as in `url`, such as `amazon.co.uk`. Defaults to `amazon.com`. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| asin | Amazon Standard Identification Number, the product's unique ID within a store. |
| stock_count | Exact number of units left with the default seller of the cart, the Buy Box seller (product_stock); 0 when sold out. null when only a lower bound is known (see `stock_at_least`), and also when the product page has no Add to Cart button. |
| stock_at_least | Lower bound on the units left, given only when the exact number is not known (product_stock); `stock_count` is null then. Either the seller sets a per-customer purchase limit, or the stock is at least 999. |
| is_purchase_limited | Whether the seller sets a per-customer purchase limit (product_stock). |
| purchase_limit | The most units one customer can buy (product_stock); present when the purchase is limited. |
| region | Store code in capitals, such as GB; the US store does not carry it, and search and profile results may also leave it out (product_stock, search, profile). |
| collected_at | Time this record was collected (ISO 8601, UTC). |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "amazon",
  "action": "product_stock",
  "params": {
    "url": "https://www.amazon.com/dp/B0HDB173YV"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "amazon",
        "action": "product_stock",
        "params": {
            "url": "https://www.amazon.com/dp/B0HDB173YV",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "amazon",
  "action": "product_stock",
  "results": {
    "asin": …,
    "stock_count": …,
    "stock_at_least": …,
    "is_purchase_limited": …,
    "purchase_limit": …,
    "region": …,
    "collected_at": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=amazon
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
