Skip to main content

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.

Building with an AI assistant?

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-key header on every request.
  • The key query 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 ASINs
  • upc — UPC codes
  • ean — EAN codes

Parameters (query)

  • asin | upc | ean (string, required): Comma-separated list of 1–10 codes (Enterprise plans allow more per request; the 400 error 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 the x-api-key header.
  • desc (string, optional): Set to 1 to include the listing description and bullets (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.

StatuscodeDescription
400 Bad RequestINVALID_REQUESTMissing or malformed parameters (e.g., mixed identifier types, unsupported domain, no valid ASIN in the list)
400 Bad RequestTOO_MANY_CODESMore codes than your plan allows in one request
400 Bad RequestMISSING_API_KEYNo API key was sent
401 UnauthorizedINVALID_API_KEYThe API key is not valid
403 ForbiddenNO_ACTIVE_SUBSCRIPTIONNo active subscription
429 Too Many RequestsDAILY_LIMIT_REACHEDDaily allowance used up. See Rate Limits
429 Too Many RequestsTOKEN_BUCKET_EMPTYShort-term bucket is empty. See Rate Limits
500 Internal Server ErrorUnexpected 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
}
FieldDescription
dailyTokensLeftRemaining tokens for the current day
dailyTokensLimitMaximum daily tokens for your subscription
minutelyTokensLeftCurrent tokens available in the short-term bucket
minutelyBucketCapacityMaximum bucket capacity for your subscription
tokensPerMinuteRate at which the bucket refills (tokens per minute)
msBeforeNextDailyResetMilliseconds until the daily limit resets

Errors

StatuscodeDescription
400 Bad RequestMISSING_API_KEYNo API key was sent
401 UnauthorizedINVALID_API_KEYThe API key is not valid
403 ForbiddenNO_ACTIVE_SUBSCRIPTIONNo 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 consumedTokens in 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. Wait retryAfterSeconds, 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, or ean) per request.
  • Always specify domain if you target a marketplace other than com.
  • URL-encode query parameters; using curl --get --data-urlencode helps avoid encoding issues.
  • On a 429, read code: wait retryAfterSeconds and retry for TOKEN_BUCKET_EMPTY, stop until the reset for DAILY_LIMIT_REACHED.
  • Don't retry 400, 401 or 403: 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 consumedTokens to spot expensive barcodes.