Amazon Buy Box API
See which seller currently holds the Featured Offer for an ASIN. Each offer includes buyboxWinner, the seller, Prime eligibility, and whether Amazon fulfills it.
100 free requests/month, then $0.01/request. Premium $99/mo for 20K.
Why use this API?
Winner by ASIN
buyboxWinner is true on the offer Amazon is featuring. Pass an ASIN, a product URL, or a GTIN, one identifier per request.
The seller on that offer
seller includes name, id, link, and rating when Amazon publishes them. seller can be null.
Prime and fulfillment
isPrime says whether that offer is Prime eligible. delivery.fulfilledByAmazon says whether Amazon fulfills it. delivery can be null.
A snapshot you compare
Each call returns the offers at lookup time. Canopy does not store past winners and does not send an alert when the winner changes.
Try it out
See how easy it is to fetch Amazon data with our API
REST
curl -G "https://rest.canopyapi.co/api/amazon/product/offers" \
-H "API-KEY: YOUR_API_KEY" \
--data-urlencode "asin=B08N5WRWNW" \
--data-urlencode "domain=US"const params = new URLSearchParams({
asin: 'B08N5WRWNW',
domain: 'US',
});
const response = await fetch(
`https://rest.canopyapi.co/api/amazon/product/offers?${params}`,
{ headers: { 'API-KEY': 'YOUR_API_KEY' } }
);
const data = await response.json();
const offers = data.data.amazonProduct.offersPaginated?.offers ?? [];
const winner = offers.find((offer) => offer.buyboxWinner);
console.log(
winner?.seller,
winner?.isPrime,
winner?.delivery?.fulfilledByAmazon
);import requests
response = requests.get(
'https://rest.canopyapi.co/api/amazon/product/offers',
params={'asin': 'B08N5WRWNW', 'domain': 'US'},
headers={'API-KEY': 'YOUR_API_KEY'},
)
offers = (
response.json()['data']['amazonProduct']
.get('offersPaginated') or {}
).get('offers') or []
winner = next((offer for offer in offers if offer.get('buyboxWinner')), None)
seller = (winner or {}).get('seller')
delivery = (winner or {}).get('delivery') or {}
print(seller, (winner or {}).get('isPrime'), delivery.get('fulfilledByAmazon')){
"data": {
"amazonProduct": {
"offersPaginated": {
"offers": [
{
"price": {
"symbol": "$",
"value": 449.99,
"currency": "USD",
"display": "$449.99"
},
"conditionIsNew": true,
"title": "New",
"isPrime": true,
"buyboxWinner": true,
"delivery": {
"fulfilledByAmazon": true
},
"seller": {
"id": "A1EXAMPLESELLER",
"name": "Example seller",
"link": "https://www.amazon.com/sp?seller=A1EXAMPLESELLER",
"rating": 4.8
}
},
{
"price": {
"symbol": "$",
"value": 439.99,
"currency": "USD",
"display": "$439.99"
},
"conditionIsNew": true,
"title": "New",
"isPrime": false,
"buyboxWinner": false,
"delivery": {
"fulfilledByAmazon": false
},
"seller": {
"id": "A2EXAMPLESELLER",
"name": "Another example seller",
"link": "https://www.amazon.com/sp?seller=A2EXAMPLESELLER",
"rating": 4.2
}
}
],
"pageInfo": {
"currentPage": 1,
"totalPages": 1,
"hasNextPage": false,
"hasPrevPage": false
}
}
}
}
}GraphQL
query AmazonProductOffers($input: AmazonProductInput!, $offersInput: AmazonProductOffersInput) {
amazonProduct(input: $input) {
asin
offersPaginated(input: $offersInput) {
offers {
price { symbol value currency display }
conditionIsNew
title
isPrime
buyboxWinner
delivery { fulfilledByAmazon }
seller { id name link rating }
}
pageInfo { currentPage totalPages hasNextPage hasPrevPage }
}
}
}const query = `
query AmazonProductOffers($input: AmazonProductInput!, $offersInput: AmazonProductOffersInput) {
amazonProduct(input: $input) {
asin
offersPaginated(input: $offersInput) {
offers {
price { symbol value currency display }
isPrime
buyboxWinner
delivery { fulfilledByAmazon }
seller { id name link rating }
}
}
}
}
`;
const response = await fetch('https://graphql.canopyapi.co/', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
query,
variables: {
input: { asinLookup: { asin: 'B08N5WRWNW', domain: 'US' } },
offersInput: { page: 1 }
}
})
});
const { data } = await response.json();
const offers = data.amazonProduct.offersPaginated?.offers ?? [];
const winner = offers.find((offer) => offer.buyboxWinner);
console.log(winner);import requests
query = """
query AmazonProductOffers($input: AmazonProductInput!, $offersInput: AmazonProductOffersInput) {
amazonProduct(input: $input) {
asin
offersPaginated(input: $offersInput) {
offers {
price { symbol value currency display }
isPrime
buyboxWinner
delivery { fulfilledByAmazon }
seller { id name link rating }
}
}
}
}
"""
response = requests.post(
'https://graphql.canopyapi.co/',
json={
'query': query,
'variables': {
'input': {'asinLookup': {'asin': 'B08N5WRWNW', 'domain': 'US'}},
'offersInput': {'page': 1},
},
},
headers={'Authorization': 'Bearer YOUR_API_KEY'},
)
offers = (
response.json()['data']['amazonProduct']
.get('offersPaginated') or {}
).get('offers') or []
winner = next((offer for offer in offers if offer.get('buyboxWinner')), None)
print(winner){
"data": {
"amazonProduct": {
"asin": "B08N5WRWNW",
"offersPaginated": {
"offers": [
{
"price": {
"symbol": "$",
"value": 449.99,
"currency": "USD",
"display": "$449.99"
},
"conditionIsNew": true,
"title": "New",
"isPrime": true,
"buyboxWinner": true,
"delivery": {
"fulfilledByAmazon": true
},
"seller": {
"id": "A1EXAMPLESELLER",
"name": "Example seller",
"link": "https://www.amazon.com/sp?seller=A1EXAMPLESELLER",
"rating": 4.8
}
},
{
"price": {
"symbol": "$",
"value": 439.99,
"currency": "USD",
"display": "$439.99"
},
"conditionIsNew": true,
"title": "New",
"isPrime": false,
"buyboxWinner": false,
"delivery": {
"fulfilledByAmazon": false
},
"seller": {
"id": "A2EXAMPLESELLER",
"name": "Another example seller",
"link": "https://www.amazon.com/sp?seller=A2EXAMPLESELLER",
"rating": 4.2
}
}
],
"pageInfo": {
"currentPage": 1,
"totalPages": 1,
"hasNextPage": false,
"hasPrevPage": false
}
}
}
}
}What can you build?
Read the featured seller and price before a repricer changes your offer
Check whether a reseller’s offer is the one shoppers can buy at that moment
Record the seller name on your brand’s ASINs for brand protection
Watch a list of ASINs for a seller id you do not expect
Understanding the response
Key fields returned by the API
buyboxWinner
True on the offer Amazon is currently featuring. Other offers on the same page are false. Read the list and keep the offer where this flag is true.
seller
The seller for that offer: id, name, link, and rating when Amazon shows them. seller can be null, including on some offers sold by Amazon.
isPrime
Whether that offer is Prime eligible.
delivery.fulfilledByAmazon
Whether Amazon fulfills that offer. The flag is on delivery, and delivery can be null.
price
That offer’s price as symbol, value, currency, and display. This is the offer price, which can differ from the featured price on another offer.
pageInfo
currentPage, totalPages, hasNextPage, and hasPrevPage. Pass page when you need the next page of offers.
What the Buy Box is
Amazon’s name for the Buy Box is the Featured Offer. It is the offer in the Offer Display on a product detail page, the one with Add to Cart and Buy Now. When several sellers list the same product, Amazon ranks qualified offers on factors such as total price (item plus shipping), delivery promise, free shipping, free returns, and seller performance. Offers that are not featured stay on the all-offers list. When no single offer is clearly more attractive, Amazon may rotate the Featured Offer among the best offers. Shoppers in different places can see different winners.
That description is Amazon’s, from Becoming the Featured Offer and from Amazon’s Featured Offer article.
How to see who is winning
REST is GET /api/amazon/product/offers on rest.canopyapi.co with an API-KEY header. Pass exactly one of asin, url, or gtin. domain is optional and defaults to US. page is optional. GraphQL is amazonProduct with offersPaginated. The REST response uses that same shape: data.amazonProduct.offersPaginated.offers.
Find the offer where buyboxWinner is true. seller, isPrime, and delivery.fulfilledByAmazon describe that offer. The sample above uses example sellers and prices so you can see the fields. A live ASIN changes, and seller or delivery can be null.
The current Featured Offer price, without the seller, is the Amazon Price API. Lightning Deals and percent off are the Amazon Deals API. Listing title, images, and bullets are the Amazon product API.
Check the winner on a schedule
A practical check is a cron job you run. Request the offers for each ASIN, store seller.id from the offer where buyboxWinner is true (use seller.name when id is missing), and compare it with the value you stored last time. When it changes, your job sends the message. If pageInfo.hasNextPage is true and page 1 has no winner, request the next page.
Canopy does not keep earlier winners and does not send an alert when the winner changes. Repeat lookups for the same ASIN can be served from cache for up to 24 hours, so a daily run matches how fresh a second call is. The public playground does not return offers. Send an API key from your account.
Pricing
Hobby includes 100 requests every month. Pay As You Go is $0.01 per request after that, with automatic volume discounts. Premium is $99 a month for 20,000 requests, then $0.008 per request. One offers lookup is one request. Hobby keys can make up to 20 requests per minute.
Frequently asked questions
What is the Amazon Buy Box?
Amazon calls it the Featured Offer: the offer in the Offer Display with Add to Cart and Buy Now. When several sellers list the same product, Amazon ranks qualified offers on total price, delivery promise, free shipping, free returns, and seller performance. If no offer is clearly ahead, Amazon may rotate the Featured Offer, and shoppers in different places can see different winners. Source: https://sellercentral.amazon.com/help/hub/reference/external/G201687550 and https://sell.amazon.com/blog/buy-box-featured-offer.
Does Amazon have an official Buy Box API?
There is no public Buy Box API for any ASIN. Selling Partner API calls require a selling-partner account. Product Pricing v2022-05-01 getFeaturedOfferExpectedPriceBatch takes your own seller SKU, up to 40 per request, and returns the price at or below which your offer can expect to become the featured offer. It does not list every seller on an arbitrary ASIN. Source: https://developer-docs.amazon.com/sp-api/reference/getfeaturedofferexpectedpricebatch and https://developer-docs.amazon.com/sp-api/docs/return-batch-foep-data-set-skus. Product Pricing v0 getCompetitivePricing returns competitive pricing for a seller’s own offer listings, by SKU or ASIN, and its price ids include a new Buy Box price and a used Buy Box price. Source: https://developer-docs.amazon.com/sp-api/reference/getcompetitivepricing. A separate operation, getItemOffers, returns the lowest priced offers for an ASIN and an IsBuyBoxWinner flag, and it still requires that selling-partner account. Source: https://developer-docs.amazon.com/sp-api/reference/getitemoffers.
How do I see which seller is winning?
Call GET https://rest.canopyapi.co/api/amazon/product/offers?asin=YOUR_ASIN&domain=US with an API-KEY header, or request offersPaginated on amazonProduct. Use the offer where buyboxWinner is true. seller, isPrime, and delivery.fulfilledByAmazon are on that offer. seller and delivery can be null.
Do you store Buy Box history or send alerts?
No. Each response is the offers list for that lookup. Canopy does not store past winners and does not send an alert when the winner changes. Save the winner in your own job and compare it on the next run. A repeat lookup for the same ASIN can be cached for up to 24 hours.
What does an offers request cost?
The same plans as the rest of Canopy API. Hobby includes 100 requests every month. Pay As You Go is $0.01 per request after that, with automatic volume discounts. Premium is $99 a month for 20,000 requests, then $0.008 per request. One offers lookup is one request.
Which marketplaces can I check?
domain accepts US, UK, DE, FR, IT, ES, CA, MX, BR, IN, JP, AU, AE, NL, PL, SE, SG, BE, CN, EG, IE, SA, TR, and ZA. If you omit it, the API uses US. A URL lookup takes the marketplace from the URL.
Try it free, no signup
See this data live in one of our free tools before you write any code.
Ready to get started?
Start building with our Amazon API today. Get 100 free requests every month.