ASINScope API Documentation
The ASINScope API lets you retrieve detailed Amazon product data (title, brand, UPC, EAN, MPN, imagery, and more) so you can enrich catalogs, validate listings, or power downstream workflows directly from your applications.
Point it at the OpenAPI spec and read the AI integration guide for prompt recipes and the mistakes AI-written code makes with this API. The whole reference is also available as plain text at /llms-full.txt. To let an assistant run lookups for you with no code, connect it to the MCP server.
Base URL
https://api.asinscope.com
Authentication
- Send your API key in the
x-api-keyheader on every request. - The
keyquery parameter is also accepted, but a key in the URL ends up in logs and proxies, so prefer the header. - Find your key in the ASINScope API Dashboard after subscribing.
Example
curl --get 'https://api.asinscope.com/products/lookup' \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "asin=B01NAL48FU,B00NNUMI86" \
--data-urlencode "domain=com"
Products Lookup
Endpoint
GET /products/lookup
What it does
Returns product details for up to 10 identifiers per request. Use one identifier type per call:
asin— Amazon ASINsupc— UPC codesean— EAN codes
Parameters (query)
asin|upc|ean(string, required): Comma-separated list of 1–10 codes (Enterprise plans allow more per request; the400error states your limit). Provide only one of these parameters per request.domain(string, optional): Amazon marketplace domain. Default:com. Supported:com,ca,de,fr,it,nl,es,in,uk,jp,au,mx,pl.key(string, optional): Your API key, if you don't send it in thex-api-keyheader.desc(string, optional): Set to1to include the listingdescriptionandbullets(bullet points) in each item. Default:0(these fields are omitted to keep responses lighter).
Sample requests
Lookup by ASIN:
curl --get 'https://api.asinscope.com/products/lookup' \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "asin=B01NAL48FU" \
--data-urlencode "domain=com"
Lookup by UPC:
curl --get 'https://api.asinscope.com/products/lookup' \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "upc=631102001550,653485442904" \
--data-urlencode "domain=com"
Lookup by EAN:
curl --get 'https://api.asinscope.com/products/lookup' \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "ean=4006381333931" \
--data-urlencode "domain=de"
Include the listing description and bullet points:
curl --get 'https://api.asinscope.com/products/lookup' \
-H "x-api-key: YOUR_API_KEY" \
--data-urlencode "asin=B01NAL48FU" \
--data-urlencode "domain=com" \
--data-urlencode "desc=1"
Response
200 OK — JSON payload with product data and token usage info.
{
"items": [
{
"asin": "B088H39PXX",
"ean": "0793610399007",
"upc": "793610399007",
"mpn": "2143",
"bsr": 95,
"category": "Sports & Outdoors",
"brand": "CUKU",
"title": "Magnetic Dart Board - 12pcs Magnetic Darts (Red Green Yellow) - Excellent Indoor Game and Party Games - Magnetic Dart Board Toys Gifts for 5 6 7 8 9 10 11 12 Year Old Boy Kids",
"productGroup": "Sports",
"lowestNewPrice": 22.79,
"lowestFormattedPrice": "$22.79",
"soldByAmazon": false,
"packageDimensions": {
"height": 1.77,
"width": 13.46,
"length": 13.58,
"weight": 2.07
},
"upcList": ["793610399007"],
"eanList": ["0793610399007"],
"totalNew": 2,
"smallImage": "https://images-na.ssl-images-amazon.com/images/I/91we94LQPhL.jpg",
"mediumImage": "https://images-na.ssl-images-amazon.com/images/I/91we94LQPhL.jpg",
"images": [
"https://images-na.ssl-images-amazon.com/images/I/91we94LQPhL.jpg",
"https://images-na.ssl-images-amazon.com/images/I/91WKu-Y+P4L.jpg",
"https://images-na.ssl-images-amazon.com/images/I/91-9rELjLsL.jpg"
]
}
],
"dailyTokensLeft": 9998,
"bucketSize": 119,
"msBeforeNextDailyToken": 82524143,
"consumedTokens": 1
}
consumedTokens is the number of tokens charged for this request and dailyTokensLeft is your balance after it. For UPC/EAN lookups, consumedTokens can be higher than the number of codes you sent: a barcode that matches several listings is charged one token per listing returned. See Rate Limits.
When desc=1 is passed, each item additionally includes the listing copy:
{
"description": "Full product description text from the Amazon listing...",
"bullets": [
"Bullet point 1 from the listing",
"Bullet point 2 from the listing"
]
}
These fields are omitted when desc is 0 or not provided.
packageDimensions is in inches (height, width, length) and pounds (weight), and is absent when Amazon has no
package data. lowestNewPrice is a number in the marketplace currency; lowestFormattedPrice is the same price with the
currency symbol.
Matching items to your codes. Don't rely on the order of items or on it having exactly one entry per code: a
barcode can return several listings, and a code that matches nothing has no usable entry. Match results back by asin
(ASIN lookups) or by upcList / eanList (barcode lookups). A code with no matching item, or whose item has no
title, was not found on that marketplace. It still costs one token.
Errors
Every 4xx error body carries a stable code next to the human-readable text. Branch on code, not on the text, which
may change.
| Status | code | Description |
|---|---|---|
400 Bad Request | INVALID_REQUEST | Missing or malformed parameters (e.g., mixed identifier types, unsupported domain, no valid ASIN in the list) |
400 Bad Request | TOO_MANY_CODES | More codes than your plan allows in one request |
400 Bad Request | MISSING_API_KEY | No API key was sent |
401 Unauthorized | INVALID_API_KEY | The API key is not valid |
403 Forbidden | NO_ACTIVE_SUBSCRIPTION | No active subscription |
429 Too Many Requests | DAILY_LIMIT_REACHED | Daily allowance used up. See Rate Limits |
429 Too Many Requests | TOKEN_BUCKET_EMPTY | Short-term bucket is empty. See Rate Limits |
500 Internal Server Error | Unexpected server issue |
{ "error": "Invalid API key", "code": "INVALID_API_KEY" }
Account Tokens
Endpoint
GET /account/tokens
What it does Returns your current token usage and limits without consuming any tokens. Use this endpoint to check available capacity before making data requests — especially useful when processing jobs from a queue where you want to avoid losing messages if tokens are exhausted.
Parameters
None besides the API key (x-api-key header, or the key query parameter).
Sample request
curl 'https://api.asinscope.com/account/tokens' \
-H "x-api-key: YOUR_API_KEY"
Response
200 OK — JSON payload with current token status.
{
"dailyTokensLeft": 9812,
"dailyTokensLimit": 10000,
"minutelyTokensLeft": 119,
"minutelyBucketCapacity": 120,
"tokensPerMinute": 60,
"msBeforeNextDailyReset": 82524143
}
| Field | Description |
|---|---|
dailyTokensLeft | Remaining tokens for the current day |
dailyTokensLimit | Maximum daily tokens for your subscription |
minutelyTokensLeft | Current tokens available in the short-term bucket |
minutelyBucketCapacity | Maximum bucket capacity for your subscription |
tokensPerMinute | Rate at which the bucket refills (tokens per minute) |
msBeforeNextDailyReset | Milliseconds until the daily limit resets |
Errors
| Status | code | Description |
|---|---|---|
400 Bad Request | MISSING_API_KEY | No API key was sent |
401 Unauthorized | INVALID_API_KEY | The API key is not valid |
403 Forbidden | NO_ACTIVE_SUBSCRIPTION | No active subscription |
Rate Limits
Daily tokens
- Basic: 1,000 tokens/day
- Pro: 10,000 tokens/day
Short-term capacity (rolling bucket)
- Basic: bucket capacity 60 tokens, refill rate 10 tokens/minute
- Pro: bucket capacity 120 tokens, refill rate 60 tokens/minute
How tokens are used
- Every identifier you send costs at least one token, even if it matches nothing.
- ASIN lookups cost exactly one token per ASIN.
- UPC/EAN lookups cost one token per listing returned. A barcode can be shared by several listings, so a single UPC that matches 56 listings costs 56 tokens. The cost of a request is
max(identifiers sent, listings returned). - The per-listing charge is applied after the data is fetched, because the number of matches is only known then. One ambiguous barcode can therefore use a large part of your daily balance in a single request. Check
consumedTokensin the response to see what a request actually cost. - Daily tokens reset at midnight UTC; the short-term bucket refills continuously at the listed rate.
When a limit is hit
Both limits answer 429 Too Many Requests. Tell them apart by code. Each response also says how long to wait, as
retryAfterSeconds in the body and as a Retry-After header.
-
Daily limit (
DAILY_LIMIT_REACHED): the daily tokens are used up. Stop until the reset.{
"statusCode": 429,
"message": "Daily limit reached. Please try again in 312 minutes",
"error": "Too Many Requests",
"code": "DAILY_LIMIT_REACHED",
"retryAfterSeconds": 18720
} -
Short-term bucket (
TOKEN_BUCKET_EMPTY): the bucket is empty. WaitretryAfterSeconds, then retry.{
"error": "Not enough tokens in the bucket. Restore rate: 10 / min",
"code": "TOKEN_BUCKET_EMPTY",
"retryAfterSeconds": 60
}
Code Samples
Python (requests)
import requests
API_KEY = "YOUR_API_KEY"
BASE_URL = "https://api.asinscope.com/products/lookup"
def lookup_by_asin(asins, domain="com"):
params = {
"asin": ",".join(asins),
"domain": domain,
}
response = requests.get(BASE_URL, params=params, headers={"x-api-key": API_KEY}, timeout=30)
response.raise_for_status()
return response.json()
if __name__ == "__main__":
try:
data = lookup_by_asin(["B01NAL48FU", "B00NNUMI86"])
for item in data.get("items", []):
print(item["asin"], item.get("upc"), item.get("ean"))
except requests.HTTPError as err:
error = err.response.json()
if error.get("code") == "TOKEN_BUCKET_EMPTY":
print(f"Bucket empty: retry in {error['retryAfterSeconds']} seconds.")
elif error.get("code") == "DAILY_LIMIT_REACHED":
print("Daily limit reached: stop until 00:00 UTC.")
else:
print(f"Request failed: {err.response.status_code} {err.response.text}")
Node.js (axios)
const axios = require('axios');
const API_KEY = 'YOUR_API_KEY';
const BASE_URL = 'https://api.asinscope.com/products/lookup';
async function lookupByUpc(upcs, domain = 'com') {
const params = new URLSearchParams({
upc: upcs.join(','),
domain,
});
const url = `${BASE_URL}?${params.toString()}`;
const response = await axios.get(url, {
headers: { 'x-api-key': API_KEY },
timeout: 30000,
});
return response.data;
}
(async () => {
try {
const data = await lookupByUpc(['631102001550', '653485442904']);
data.items.forEach(item => {
console.log(item.upc, item.title);
});
} catch (err) {
const error = err.response?.data;
if (error?.code === 'TOKEN_BUCKET_EMPTY') {
console.error(`Bucket empty: retry in ${error.retryAfterSeconds} seconds.`);
} else if (error?.code === 'DAILY_LIMIT_REACHED') {
console.error('Daily limit reached: stop until 00:00 UTC.');
} else {
console.error('Request failed:', err.message);
}
}
})();
Tips
- Send at most 10 codes per call and use only one identifier type (
asin,upc, orean) per request. - Always specify
domainif you target a marketplace other thancom. - URL-encode query parameters; using
curl --get --data-urlencodehelps avoid encoding issues. - On a
429, readcode: waitretryAfterSecondsand retry forTOKEN_BUCKET_EMPTY, stop until the reset forDAILY_LIMIT_REACHED. - Don't retry
400,401or403: they won't succeed until the request, key or subscription changes. - UPC/EAN lookups are charged per listing returned, so a barcode shared by many listings can cost far more than one token. Prefer ASIN lookups where you already know the ASIN, and watch
consumedTokensto spot expensive barcodes.