# Amazon Category products API (amazon.category_products)

- Canonical page: [https://everyinfra.com/en/amazon-api/category_products](https://everyinfra.com/en/amazon-api/category_products?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "amazon", "action": "category_products", "params": {...}}
- Price: $0.008958 per call ($8.96 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of up to 24 per call; the number of rows varies from page to page and a short page is not the end (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page; no next_page_token means the end)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- 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=category_products

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| category_id | not declared | yes | not declared | An Amazon US category: a top-level category name such as `electronics` or `toys-and-games` (`Toys and Games` also works), a “top-level name/category ID” such as `electronics/281407`, or a US bestsellers link (/zgbs/… or /gp/bestsellers/…), the same forms `bestsellers` takes in `keyword`. `digital-educational-resources` and `boost` (Unique Finds) have no product list: pass a category one level below them as “top-level name/category ID”, or the call is rejected with 422 before you are charged. |
| page_token | not declared | no | not declared | Page token for `category_products`. Leave it out for the first page; when the response has `next_page_token`, pass it back unchanged as `page_token`, with `category_id` unchanged. Up to 100 pages; each page counts as one call. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| asin | Amazon Standard Identification Number, the product's unique ID within a store. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| url | Link to the record on the platform. |
| price | Price as a number without a currency symbol; see currency. |
| list_price | List (strike-through) price. |
| currency | Currency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency. |
| rating | Rating. **The scale varies by platform**: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10). Convert with rating_scale before comparing across platforms, or the comparison can come out backwards. |
| rating_scale | Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating. |
| rating_count | Number of people who rated. null means not disclosed, not 0. |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| images | Array of image links in the platform's display order; absent when there are no images. |
| is_sponsored | Whether the row is a sponsored placement the platform put into the list (search, seller_products, category_products). |
| sales_count_label | The "bought in past month" band shown on the product or results page, as written, such as 10K+ bought in past month. It is a platform estimate band, not an exact sales count; absent when the page shows none. |
| is_amazon_choice | Whether the product carries the Amazon's Choice badge. |
| is_bestseller | Whether the product carries the Best Seller badge: when the position was seen in ranked_keywords, and on the row itself in search and category_products. |
| bestseller_ranks | Best Sellers ranks (search, profile, category_products): each item has rank and category, one entry per category; the rank at read time, not a sales figure. |
| 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). |
| category_id | Category ID (bestsellers, category_products): for a top-level category it is the English name (e.g. electronics); for a subcategory, “top-level name/category ID” (e.g. electronics/281407). |
| category_total_count | Total number of products the platform states for the category (category_products), the same on every row; 70000 when the platform says "over 70,000". |
| category_page_count | Number of pages the platform states for the category (category_products), the same on every row. |

## 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": "category_products",
  "params": {
    "category_id": "electronics"
  }
}'
```

```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": "category_products",
        "params": {
            "category_id": "electronics",
        },
    },
    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": "category_products",
  "results": [
    {
      "asin": …,
      "title": …,
      "url": …,
      "price": …,
      "list_price": …,
      "currency": …,
      "rating": …,
      "rating_scale": …,
      "rating_count": …,
      "image_url": …,
      "images": …,
      "is_sponsored": …,
      "sales_count_label": …,
      "is_amazon_choice": …,
      "is_bestseller": …,
      "bestseller_ranks": …,
      "region": …,
      "collected_at": …,
      "platform": …,
      "category_id": …,
      "category_total_count": …,
      "category_page_count": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "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
