keywordstringआवश्यक
Search keyword or ASIN to find Amazon products.
https://api.sandbase.ai/v1/api/amazon/search-productsSearch Amazon marketplace products by keyword or ASIN with country, sort, condition, Prime-only, deals, and page controls.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns a page of Amazon search results for a keyword or ASIN. Each product has its ASIN, title, rating, offer count, badges, and delivery text. The only required input is keyword.
country.dealsAndDiscounts to ALL_DISCOUNTS or TODAYS_DEALS.curl -X POST "https://api.sandbase.ai/v1/api/amazon/search-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "iphone"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Search keyword or ASIN to find Amazon products. |
country | string | No | Country code for the Amazon marketplace. |
dealsAndDiscounts | string | No | Deals and discounts filter for Amazon search results. |
isPrime | boolean | No | Whether to return only Prime-eligible products. |
page | integer | No | Page number for pagination. |
productCondition | string | No | Product condition filter for Amazon search results. |
sortBy | string | No | Sort order for Amazon product search results. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"country": "US",
"domain": "www.amazon.com",
"products": [
{
"asin": "B0HJHXTRFN",
"climate_pledge_friendly": false,
"currency": "USD",
"delivery": "FREE delivery Thu, Nov 5Or fastest delivery Tomorrow, Nov 4",
"has_variations": true,
"is_amazon_choice": false,
"is_best_seller": false,
"is_prime": false,
"product_minimum_offer_price": "$1,549.00",
"product_num_offers": 1,
"product_num_ratings": 13,
"product_original_price": null
}
],
"total_products": 259
}
| Field | Meaning |
|---|---|
total_products | Number of products the search matched. |
country / domain | Amazon marketplace country code and domain that served the search. |
products[].asin | Amazon product ID. Use it to look up the product elsewhere. |
products[].product_title | Listing title as shown in the search results. |
products[].product_price / products[].product_original_price | Current listed amount and the earlier amount shown before a discount, both as formatted strings with a currency symbol. The original amount is null when no discount is shown. |
products[].product_minimum_offer_price / products[].product_num_offers | Lowest amount among the offers for the product, and the number of offers listed. |
products[].currency | Currency code for the amounts on the listing, for example USD. |
products[].product_star_rating / products[].product_num_ratings | Average star rating as a string, and the count of ratings. |
products[].is_best_seller / products[].is_amazon_choice / products[].is_prime / products[].climate_pledge_friendly | Boolean flags for the badges and Prime eligibility shown on the listing. |
products[].sales_volume | Text such as 1K+ bought in past month. |
products[].product_url / products[].product_photo | Link to the product page and the main product image URL. |
For two separate Python requests—a keyword search and a manually selected ASIN lookup—see the Amazon research walkthrough. Choose this endpoint's country-code parameters rather than the other Search variant's k and amazon_domain fields.
B0DHJ896RY as keyword to search for a specific product.page to get more results. Each response holds one page of products, and total_products shows the overall match count.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/amazon/search-products" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"sortBy": "RELEVANCE",
"country": "US",
"isPrime": false,
"keyword": "iphone",
"productCondition": "ALL",
"dealsAndDiscounts": "NONE"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
keywordstringआवश्यकSearch keyword or ASIN to find Amazon products.
countrystringCountry code for the Amazon marketplace.
डिफ़ॉल्ट: "US"
संभावित मान: US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG, ES, TR, AE, GB, JP, SA, PL, SE, BE, EG, ZA, IE
sortBystringSort order for Amazon product search results.
डिफ़ॉल्ट: "RELEVANCE"
संभावित मान: RELEVANCE, LOWEST_PRICE, HIGHEST_PRICE, REVIEWS, NEWEST, BEST_SELLERS
productConditionstringProduct condition filter for Amazon search results.
डिफ़ॉल्ट: "ALL"
संभावित मान: ALL, NEW, USED, RENEWED, COLLECTIBLE
isPrimebooleanWhether to return only Prime-eligible products.
डिफ़ॉल्ट: false
dealsAndDiscountsstringDeals and discounts filter for Amazon search results.
डिफ़ॉल्ट: "NONE"
संभावित मान: NONE, ALL_DISCOUNTS, TODAYS_DEALS
pageintegerPage number for pagination.
डिफ़ॉल्ट: 1
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Amazon Product Searchयह API Amazon | $0.014286 प्रति कॉल | JSON |
Amazon | $0.0033 प्रति कॉल से | JSON |
Amazon | $0.00015 प्रति कॉल | असिंक्रोनस JSON |
Amazon | $0.014286 प्रति कॉल | JSON |
Amazon | $0.014286 प्रति कॉल | JSON |
Amazon | $0.00085 प्रति कॉल से | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/amazon/search-products पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.014286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: keyword (string)। वैकल्पिक: country (US, AU, BR, CA, CN, FR, DE, IN, IT, MX, NL, SG, ES, TR, AE, GB, JP, SA, PL, SE, BE, EG, ZA, IE में से एक), sortBy (RELEVANCE, LOWEST_PRICE, HIGHEST_PRICE, REVIEWS, NEWEST, BEST_SELLERS में से एक), productCondition (ALL, NEW, USED, RENEWED, COLLECTIBLE में से एक), isPrime (boolean), dealsAndDiscounts (NONE, ALL_DISCOUNTS, TODAYS_DEALS में से एक) और page (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Amazon Product Search SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Amazon API access के लिए आवेदन करने की आवश्यकता नहीं है।
keyword और, वैकल्पिक रूप से, एक समर्थित country code का उपयोग करें। यह Product Search endpoint sortBy, productCondition, isPrime, dealsAndDiscounts और एक integer page भी स्वीकार करता है। अलग Amazon Search endpoint k और amazon_domain का उपयोग करता है; इसके input names और execution mode इस request के साथ अदला-बदली योग्य नहीं हैं।
वर्तमान reference इस endpoint को synchronous बताता है। HTTP response और completed platform status जाँचने के बाद, इसका business payload outputs[0].data से पढ़ें। दस्तावेज़ित products list उसी payload के भीतर है, platform response के top level पर नहीं। Tutorial का example केवल payload keys inspect करता है; यह products का fixed set नहीं बताता और न ही full parser लागू करता है।
Request एक integer page स्वीकार करती है, और reference प्रति response products का एक page बताता है। कुल count को complete inventory या इस बात का प्रमाण न मानें कि हर page retrievable है। Missing prices या earlier-price values को zero से बदलने के बजाय unknown ही रहने दें। बाद की किसी भी तुलना के लिए currency, marketplace, query और observation time बनाए रखें। सूचीबद्ध amount आवश्यक नहीं कि tax, shipping और coupons सहित final price हो।