Amazon API
English · 中文
English
This repo reads public Amazon data with Python or curl. You can search products by keyword, read product details and customer reviews, and get a category's best sellers list. You need one EveryInfra API key. You do not need an Amazon account or cookie. The same API also works as an MCP tool in Claude and Cursor. Billing is per call: these 4 capabilities cost $1.39 to $2.24 per 1,000 calls. Failed calls and empty results are not charged. The EveryInfra Amazon API has 10 capabilities, all listed on the platform page: https://everyinfra.com/en/amazon-api?utm_source=github&utm_medium=example_repo&utm_campaign=amazon-api
Quick start
git clone https://github.com/everyinfra/amazon-api.git
cd amazon-api
pip install -r requirements.txt
export EVERYINFRA_API_KEY=<your API key>
python main.py search "camping tent" --out products.csv
python main.py product "<product url>" --out product.json
python main.py reviews "<product url>" --out reviews.csv
python main.py bestsellers "https://www.amazon.com/Best-Sellers-Sports-Outdoors/zgbs/sporting-goods" --out bestsellers.csv
curl
curl -X POST https://api.everyinfra.com/api/v1/social \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"amazon","action":"search","params":{"keyword":"camping tent"}}'
All capabilities use the same URL. Change action and params to call another one. Examples for profile, reviews, and bestsellers are in examples/curl.sh.
Claude and Cursor (MCP)
The remote MCP URL is https://api.everyinfra.com/mcp. Add the Authorization: Bearer header with your API key. EveryInfra runs the server, so you install no local program.
Claude Code:
claude mcp add --transport http everyinfra https://api.everyinfra.com/mcp --header "Authorization: Bearer <API Key>"
Cursor and other clients that read mcp.json (examples/mcp.json):
{
"mcpServers": {
"everyinfra": {
"url": "https://api.everyinfra.com/mcp",
"headers": {
"Authorization": "Bearer <API Key>"
}
}
}
}
Custom connectors in Claude on the web and desktop, and ChatGPT, accept only a URL. Enter https://api.everyinfra.com/mcp/all, sign in to EveryInfra when asked, and allow access. You do not need to enter a key. Full steps: https://everyinfra.com/en/mcp-server?utm_source=github&utm_medium=example_repo&utm_campaign=amazon-api
Price
action |
Per 1,000 calls |
search |
$2.24 |
profile |
$1.39 |
reviews |
$1.39 |
bestsellers |
$1.39 |
Fields
These are the fields that the 4 capabilities returned in our test. Each meaning is the first sentence of the field's entry in the API documentation. The link under each table has the full text.
search (keyword search)
| 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. |
brand |
Brand. |
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). |
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). |
rating_count |
Number of people who rated. null means not disclosed, not 0. |
in_stock |
Whether the product is in stock. |
category |
Category name in the platform's own taxonomy, not normalized across platforms. |
image_url |
Image link. |
is_amazon_choice |
Whether the product carries the Amazon's Choice badge. |
seller_name |
Seller name. |
platform |
Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
images |
Array of image links in the platform's display order; absent when there are no images. |
features |
Bullet-point feature list from the product page (search, profile), as written; absent when there is none. |
bestseller_ranks |
Best Sellers ranks (search, profile): each item has rank and category, one entry per category; the rank at read time, not a sales figure. |
rating_scale |
Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. |
description |
Summary or description, usually shorter than text. |
All parameters and fields: https://everyinfra.com/en/amazon-api/search?utm_source=github&utm_medium=example_repo&utm_campaign=amazon-api
profile (profile or object details)
| 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. |
brand |
Brand. |
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). |
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). |
rating_count |
Number of people who rated. null means not disclosed, not 0. |
in_stock |
Whether the product is in stock. |
category |
Category name in the platform's own taxonomy, not normalized across platforms. |
image_url |
Image link. |
is_amazon_choice |
Whether the product carries the Amazon's Choice badge. |
seller_name |
Seller name. |
platform |
Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
images |
Array of image links in the platform's display order; absent when there are no images. |
features |
Bullet-point feature list from the product page (search, profile), as written; absent when there is none. |
bestseller_ranks |
Best Sellers ranks (search, profile): each item has rank and category, one entry per category; the rank at read time, not a sales figure. |
rating_scale |
Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. |
All parameters and fields: https://everyinfra.com/en/amazon-api/profile?utm_source=github&utm_medium=example_repo&utm_campaign=amazon-api
reviews (reviews)
| Field |
Meaning |
review_id |
Review ID. |
title |
Title. null when the platform has no titles (for example text-only posts). |
text |
Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
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). |
posted_at |
Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). |
helpful_count |
How many times the review was marked helpful. |
is_verified_purchase |
Whether the review is from a verified purchase. |
is_vine |
Whether the review comes from the Vine program (the platform sends the product for testing, and the review is labeled as such). |
variant |
Product variant the review refers to. |
country |
Country or region: a full name or an ISO code depending on the platform, not normalized. |
url |
Link to the record on the platform. |
author_name |
Reviewer's public display name (reviews), taken from the reviewer's public profile; may be empty. |
author_id |
Reviewer's public Amazon profile ID (reviews); may be empty. |
author_avatar_url |
Avatar link from the reviewer's public profile (reviews); may be empty or a default avatar. |
product_asin |
Product ASIN. |
platform |
Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
rating_scale |
Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. |
All parameters and fields: https://everyinfra.com/en/amazon-api/reviews?utm_source=github&utm_medium=example_repo&utm_campaign=amazon-api
bestsellers (bestsellers)
| Field |
Meaning |
id |
The record's unique ID on the platform. |
url |
Link to the record on the platform. |
name |
Name of the object itself, for account, product and business capabilities. |
rank |
Category rank (BSR). |
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). |
review_count |
Number of reviews, for product and business capabilities. null means not disclosed, not 0. |
category |
Category name in the platform's own taxonomy, not normalized across platforms. |
image_url |
Image link. |
platform |
Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
rating_scale |
Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. |
price |
Price as a number without a currency symbol; see currency. |