POST

API health

24h health
Normal
  • Healthy / normal
  • Available
Normal

Last 24 hours

Last 30 days

List the products in one Amazon US category by category_id, in the platform's default Featured order. Each product has ASIN, title, price and list price, rating, rating count, images, a sponsored flag, the "bought in past month" band, Amazon's Choice and Best Seller badges and bestseller ranks, and every row carries the category's category_id, category_total_count and category_page_count. About 24 per page (16 for books, 39 to 48 for some categories); follow next_page_token for up to 100 pages. A few rows have no price. When the read fails the call returns 503 and is not charged.

Send POST https://api.everyinfra.com/api/v1/social with platform set to amazon and action set to category_products. Price $8.96 per 1,000 requests ($0.008958 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

AI prompt

#
Please help me write a data collection script with the EveryInfra Amazon Category products endpoint (amazon/category_products).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to amazon and action to category_products, and put the parameters inside params.
- Required parameters:
  - category_id: 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/best…
- Optional parameters:
  - page_token: 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.
- Returns a list of records. Main fields of each record: asin (Amazon Standard Identification Number,…), title, url, price, list_price (List (strike-through) price), currency, rating, rating_scale, rating_count, image_url, images, is_sponsored (Whether the row is a sponsored placemen…); 21 fields in total, full list at https://api.everyinfra.com/api/v1/social/catalog?platform=amazon.
- Example request body:
{
  "platform": "amazon",
  "action": "category_products",
  "params": {
    "category_id": "electronics"
  }
}
- Price: $8.96 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesamazonPlatform identifier, fixed value.
actionbodystringYescategory_productsCapability identifier, fixed value.
category_idbody.paramsstringYes-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_tokenbody.paramsstringNo-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.

Code samples

#
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"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
No sample response is available for these parameters yet. This preview shows the response shape and fields from the API definition, with … as placeholders; it is not the result of a live call.
json
{  "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": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain. Values the platform does not show are never made up.

FieldMeaning
asinAmazon Standard Identification Number, the product's unique ID within a store.
titleTitle. null when the platform has no titles (for example text-only posts).
urlLink to the record on the platform.
pricePrice as a number without a currency symbol; see currency.
list_priceList (strike-through) price.
currencyCurrency code of the price (for example CNY, USD). If price is present but currency is null, do not assume a currency.
ratingRating. 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_scaleMaximum 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_countNumber of people who rated. null means not disclosed, not 0.
image_urlImage link. Capabilities with several images may return an image_urls array.
imagesArray of image links in the platform's display order; absent when there are no images.
is_sponsoredWhether the row is a sponsored placement the platform put into the list (search, seller_products, category_products).
sales_count_labelThe "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_choiceWhether the product carries the Amazon's Choice badge.
is_bestsellerWhether 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_ranksBest 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.
regionStore 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_atTime this record was collected (ISO 8601, UTC).
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).
category_idCategory 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_countTotal 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_countNumber of pages the platform states for the category (category_products), the same on every row.

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Google Analytics needs consent. Privacy