Amazon Stock API Documentation
The Amazon Stock API returns how many units of an Amazon offer the seller has in stock, for the buy box offer or any offer by its offer listing ID, with the offer's price, condition and seller. When the seller limits how many units one customer can buy, it returns that purchase limit instead.
Amazon reports the stock available for the delivery location, so the level can change between calls. Send postal_code (or delivery_city) to get it for one location. When is_lower_bound is true, the seller has at least stock_level units.
API Parameters
Product
-
- Name
-
asin - Required
- Required
- Description
-
Parameter defines the Amazon product by its ASIN (e.g.
B0BDHWDR12).
-
- Name
-
offer_id - Required
- Optional
- Description
-
Parameter defines the offer to check, as the
offer_listing_idthe Amazon Offers API or the Amazon Product API returns. Each seller's offer has its own stock. Defaults to the buy box offer, or to the first new offer when no offer holds the buy box. Offer listing IDs expire, so fetch them shortly before.
Localization
-
- Name
-
amazon_domain - Required
- Optional
- Description
-
The default parameter
amazon.comdefines the Amazon domain of the search. Check the full list of supported Amazon domains.
Delivery
-
- Name
-
postal_code - Required
- Optional
- Description
-
Postal code for the delivery location. Use this for postal-code countries (e.g.
10001for US,SW1A 0AAfor UK,M5V 2T6for CA). Check the list of supported Amazon postal codes by domain and format. The response reports the outcome insearch_metadata.delivery_location:applied,not_applied, orunverified.
-
- Name
-
delivery_city - Required
- Optional
- Description
-
City for the delivery address in snake_case (e.g.
delivery_city=riyadh). Only supported for city-based countries (Saudi Arabia, UAE, Egypt). For other countries usepostal_code. See the full list of supported Amazon delivery cities and areas by domain.
-
- Name
-
delivery_area - Required
- Optional
- Description
-
Area within the city, only available for
amazon.ae(e.g.business_bay). Optional and must be sent withdelivery_city. See the full list of supported Amazon delivery areas
-
- Name
-
delivery_country - Required
- Optional
- Description
-
A two-letter ISO 3166-1 alpha-2 country code that defines the country of the delivery address.
By default, it is set to the country code of the selected Amazon domain (e.g.deforamazon.de), you can also explicitly set it to a different country. Check the full list of supported Amazon delivery countries.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
amazon_stock.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Full Response
https://www.searchapi.io/api/v1/search?asin=B0BDHWDR12&engine=amazon_stock
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "amazon_stock",
"asin": "B0BDHWDR12"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_OcfVSRYgnbW67ZLHFX9TRms4",
"status": "Success",
"created_at": "2026-11-20T14:05:41Z",
"request_time_taken": 5.22,
"parsing_time_taken": 0.0,
"total_time_taken": 5.22,
"request_url": "https://www.amazon.com/dp/B0BDHWDR12",
"html_url": "https://www.searchapi.io/api/v1/searches/search_PWzJw0iGt8XRM1INXeyKPtt1.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_xdQN6bJb133aZCIfCuvRDvBl"
},
"search_parameters": {
"engine": "amazon_stock",
"asin": "B0BDHWDR12",
"amazon_domain": "amazon.com"
},
"product": {
"asin": "B0BDHWDR12",
"title": "Apple AirPods Pro (2nd Gen) Wireless Earbuds, Up to 2X More Active Noise Cancelling, Adaptive Transparency, Personalized Spatial Audio MagSafe Charging Case (Lightning) Bluetooth Headphones for iPhone",
"rating": 4.7,
"reviews": 57993,
"main_image": "https://m.media-amazon.com/images/I/21ttIrgHhTL.jpg",
"link": "https://www.amazon.com/dp/B0BDHWDR12"
},
"offer": {
"position": 1,
"is_buybox_winner": true,
"price": {
"raw": "$265.77",
"value": 265.77,
"symbol": "$",
"currency": "USD"
},
"minimum_order_quantity": 1,
"maximum_order_quantity": 29,
"condition": {
"text": "New",
"is_new": true
},
"fulfillment": {
"standard_delivery": {
"text": "FREE delivery Tomorrow, November 21. Order within 5 hrs 54 mins. Details",
"type": "FREE",
"date": "Tomorrow, November 21"
},
"third_party_seller": {
"id": "ALAQLAKJ574UN",
"name": "6ave",
"link": "https://www.amazon.com/gp/aag/main?ie=UTF8&seller=ALAQLAKJ574UN&isAmazonFulfilled=0&asin=B0BDHWDR12&...",
"rating": 4.5,
"reviews": 113523,
"positive_feedback_percent": 91
},
"ships_from": "6ave",
"sold_by": "6ave"
},
"offer_listing_id": "ex1PIGAR9J4ibrfC37QrwF%2BAHgliX%2BHeBI1kNtYoatI%2BWcYTEvAA86WQAtTvsaEBTlFh%2Fghi3JVyuOS9gqIjvmzbHkZoJSNp97rmzUC1UcXVXapfwosRuJ%2FBFua2644KrPjwm7pEHe1VfXZBmh8RwE6g7fsk4W7cousRhMkeCKnAYPLt0zCRpxs6KU44e5NO"
},
"stock": {
"stock_level": 129,
"is_in_stock": true,
"is_lower_bound": false,
"has_purchase_limit": false,
"message": "We're sorry. You've requested more of Apple AirPods Pro (2nd Gen) Wireless Earbuds, Up to 2X More Active Noise Cancelling, Adaptive Transparency, Personalized Spatial Audio MagSafe Charging Case (Lightning) Bluetooth Headphones for iPhone, than the 129 available from the seller you've selected. Click here to return to the product detail page and see if additional quantities are available from another seller."
}
}
Stock of a Specific Offer
https://www.searchapi.io/api/v1/search?asin=B073JYC4XM&engine=amazon_stock&offer_id=c%252F9EHsTaZnv0VVQSkD%252BgPpswO6Dmnd91ubdG%252BnTNWQHBTlxOtRV2Vu4yw4ezN80no3Lq12yT2nljpD3iGCEwPyE%252BS%252FVFNaxS4kdou2fbCcvwIJSvuyoFJ8lBBn%252BpSbgsL7Agnm6%252FYDE5rvQcAcQqP%252Fwv8gvk0gIQaz3dSlhHUQfjdBdkIWwEJA%253D%253D
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "amazon_stock",
"asin": "B073JYC4XM",
"offer_id": "c%2F9EHsTaZnv0VVQSkD%2BgPpswO6Dmnd91ubdG%2BnTNWQHBTlxOtRV2Vu4yw4ezN80no3Lq12yT2nljpD3iGCEwPyE%2BS%2FVFNaxS4kdou2fbCcvwIJSvuyoFJ8lBBn%2BpSbgsL7Agnm6%2FYDE5rvQcAcQqP%2Fwv8gvk0gIQaz3dSlhHUQfjdBdkIWwEJA%3D%3D"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_RDV4HhsP7q1FQoZWUBa6ZDJ6",
"status": "Success",
"created_at": "2026-11-20T14:06:18Z",
"request_time_taken": 4.25,
"parsing_time_taken": 0.08,
"total_time_taken": 4.33,
"request_url": "https://www.amazon.com/dp/B073JYC4XM",
"html_url": "https://www.searchapi.io/api/v1/searches/search_JSmhwqLG46jgr1fkQheYWk9N.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_zWkmoYq50t5WfyWrZO3Lojzg"
},
"search_parameters": {
"engine": "amazon_stock",
"asin": "B073JYC4XM",
"offer_id": "c%2F9EHsTaZnv0VVQSkD%2BgPpswO6Dmnd91ubdG%2BnTNWQHBTlxOtRV2Vu4yw4ezN80no3Lq12yT2nljpD3iGCEwPyE%2BS%2FVFNaxS4kdou2fbCcvwIJSvuyoFJ8lBBn%2BpSbgsL7Agnm6%2FYDE5rvQcAcQqP%2Fwv8gvk0gIQaz3dSlhHUQfjdBdkIWwEJA%3D%3D",
"amazon_domain": "amazon.com"
},
"product": {
"asin": "B073JYC4XM",
"title": "SanDisk 128GB Ultra MicroSDXC UHS-I Memory Card with Adapter - 100MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUAR-128G-GN6MA",
"rating": 4.7,
"reviews": 865076,
"main_image": "https://m.media-amazon.com/images/I/41Upe-bZXiL.jpg",
"link": "https://www.amazon.com/dp/B073JYC4XM"
},
"offer": {
"position": 2,
"price": {
"raw": "$34.49",
"value": 34.49,
"symbol": "$",
"currency": "USD"
},
"minimum_order_quantity": 1,
"maximum_order_quantity": 2,
"condition": {
"text": "New",
"is_new": true
},
"fulfillment": {
"standard_delivery": {
"text": "FREE delivery November 24 - 27. Details",
"type": "FREE",
"date": "November 24 - 27"
},
"fastest_delivery": {
"text": "Or fastest delivery November 23 - 24. Order within 6 hrs 53 mins. Details",
"type": "fastest",
"date": "November 23 - 24"
},
"third_party_seller": {
"id": "A2NDNAPHQ3UDKH",
"name": "CalvinNHobbs",
"link": "https://www.amazon.com/gp/aag/main?ie=UTF8&seller=A2NDNAPHQ3UDKH&isAmazonFulfilled=0&asin=B073JYC4XM...",
"rating": 4.5,
"reviews": 42609,
"positive_feedback_percent": 92
},
"ships_from": "CalvinNHobbs",
"sold_by": "CalvinNHobbs"
},
"offer_listing_id": "c%2F9EHsTaZnv0VVQSkD%2BgPpswO6Dmnd91ubdG%2BnTNWQHBTlxOtRV2Vu4yw4ezN80no3Lq12yT2nljpD3iGCEwPyE%2BS%2FVFNaxS4kdou2fbCcvwIJSvuyoFJ8lBBn%2BpSbgsL7Agnm6%2FYDE5rvQcAcQqP%2Fwv8gvk0gIQaz3dSlhHUQfjdBdkIWwEJA%3D%3D"
},
"stock": {
"stock_level": 3,
"is_in_stock": true,
"is_lower_bound": false,
"has_purchase_limit": false,
"message": "We're sorry. You've requested more of SanDisk 128GB Ultra MicroSDXC UHS-I Memory Card with Adapter - 100MB/s, C10, U1, Full HD, A1, Micro SD Card - SDSQUAR-128G-GN6MA, than the 3 available from the seller you've selected. Click here to return to the product detail page and see if additional quantities are available from another seller."
}
}
Purchase Limit
https://www.searchapi.io/api/v1/search?asin=B0F3GWXLTS&engine=amazon_stock
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "amazon_stock",
"asin": "B0F3GWXLTS"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_jfhPG0y2su9ZO8yGmVxujsE6",
"status": "Success",
"created_at": "2026-11-20T14:06:25Z",
"request_time_taken": 4.18,
"parsing_time_taken": 0.01,
"total_time_taken": 4.18,
"request_url": "https://www.amazon.com/dp/B0F3GWXLTS",
"html_url": "https://www.searchapi.io/api/v1/searches/search_ZZMQ1Zf5NTk2HK7wU0a86Hcm.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_qwHVFXL9UHSBITUJXLtOrDdK"
},
"search_parameters": {
"engine": "amazon_stock",
"asin": "B0F3GWXLTS",
"amazon_domain": "amazon.com"
},
"product": {
"asin": "B0F3GWXLTS",
"title": "Nintendo Switch 2 System",
"rating": 4.7,
"reviews": 6392,
"main_image": "https://m.media-amazon.com/images/I/41A6+lQ6KSL.jpg",
"link": "https://www.amazon.com/dp/B0F3GWXLTS"
},
"offer": {
"position": 1,
"is_buybox_winner": true,
"price": {
"raw": "$499.00",
"value": 499.0,
"symbol": "$",
"currency": "USD"
},
"minimum_order_quantity": 1,
"maximum_order_quantity": 1,
"condition": {
"text": "New",
"is_new": true
},
"fulfillment": {
"standard_delivery": {
"text": "FREE delivery Wednesday, November 25",
"type": "FREE",
"date": "Wednesday, November 25"
},
"fastest_delivery": {
"text": "Or Prime members get FREE delivery Tomorrow, November 21. Order within 14 hrs 53 mins. Join Prime",
"type": "FREE",
"date": "Tomorrow, November 21"
},
"ships_from": "Amazon.com",
"sold_by": "Amazon.com",
"is_sold_by_amazon": true
},
"offer_listing_id": "6m0%2FzRP1oFxmMayry%2Fisvx7Dl98MRiNzHNU2xWjc%2FhvH2HH0KxSKO6eaTwhFGNPu4OF0uxEqUQzmiXHJmuB93Isv8l38VQFh7VXdjawNJwdizQrFrbnZq3MGLrHSEQ3qfTNQjWRYmbcTyZsw2Bp3Sw%3D%3D"
},
"stock": {
"purchase_limit": 2,
"has_purchase_limit": true,
"is_in_stock": true,
"message": "The item Nintendo Switch 2 System from this seller has a limit of 2 per customer. We have updated your quantity of Nintendo Switch 2 System to 2."
}
}