Datarova
Amazon search

live_search

Live Amazon search ยท Read-only, reaches outside Datarova

Retrieve one current Amazon search results page in real time for a keyword in one marketplace and return the complete page: every result in page order with its sponsored flag, positions, badges, pricing and fulfillment, plus ad blocks and related searches.

  • Use it for what shoppers see now: where an ASIN appears, sponsored placements, Amazon's Choice badges, prices.
  • For stored daily rank history use get_project_asin_ranks; for stored search market data use get_keyword_data.
  • When the user asks where an ASIN or listing ranks, call get_asin_family first unless they ask for that exact ASIN, then match every family member, including the parent, against search_results; repeated occurrences stay separate results.
  • A search can take up to a minute.
  • Every call runs a new search and nothing is cached, so do not repeat a call to re-read its result.
  • position is Amazon's result number, shared by sponsored and organic results and continuing across pages, so it is not an organic rank.
  • Organic rank is search_information.results_begin - 1 plus the result's place among is_sponsored=false results in page_position order.
  • The same ASIN can appear more than once.
  • Products inside ad_blocks are separate from search_results: report sponsored results and ad blocks separately, never as one combined ad count.
  • Count Amazon's Choice as distinct search_results ASINs with badges.amazons_choice, of any returned type unless the user names one.
  • An omitted field means Amazon showed no value, not zero or false.
  • An ASIN missing from search_results was not found on this page only.
  • A result with redirect_url means Amazon sent the keyword to another page: a successful answer with no results.
  • Prices are in the marketplace's currency.
  • The result is large (about 18,000 tokens for a full page) and is returned twice, as text and as structuredContent.data.
  • When calling this tool from a script, read structuredContent.data and print only the fields needed.

Cost and limits: Each successful search, including an empty page or a redirect, consumes 1 credit; the account's limits of 180 searches per minute and 30 in flight are shared with the API.

Input

NameTypeRequiredDescription
marketplacestringRequiredMarketplace code, any letter case: US, CA, MX, UK, DE, FR, IT, ES, AU, JP, BR, IN, SG, TR, NL, PL, SE, BE, SA, AE, EG, IE, ZA. Maximum length 2.
keywordstringRequiredSearch keyword, 1 to 256 characters after surrounding whitespace is trimmed. Maximum length 1024.
pageintegerOptionalResults page, 1 to 20. Default 1. Minimum 1. Maximum 20.
postal_codestringOptionalDelivery postal code, or city name in SA, AE and EG; letter case, spaces and hyphens are ignored. Omit for the marketplace default: US 10011, CA M5H 2N2, MX 01000, UK NR1 1BG, DE 10115, FR 75001, IT 20121, ES 28002, AU 3000, JP 100-0005, BR 01310-100, IN 400001, SG 018956, TR 34134, PL 00-950, SE 111 53, SA Riyadh, AE Dubai, EG New Cairo City, IE D02 N403. NL, BE and ZA deliver to the whole country: omit postal_code there. Call get_postal_codes before choosing a non-default postal code, and pass it exactly as listed. Maximum length 32.

Output

Read this object from the result's structuredContent. The result's content carries a text version for the model, which is not always the same JSON.

The result is one of 2 shapes.

LiveSearchResponse

Fields of data:

NameTypeRequiredDescription
request_parametersLiveSearchRequestParametersRequiredThe effective request, with public parameter names.
request_metadataLiveSearchRequestMetadataRequired
search_informationLiveSearchInformationRequired
search_resultsLiveSearchResult[]RequiredProducts in page order. Empty when the page has no products.
paginationLiveSearchPaginationOptional
related_searchesLiveSearchRelatedSearch[]OptionalIn the related_searches group; an empty array when selected and Amazon showed none.
ad_blocksLiveSearchAdBlock[]OptionalIn the ad_blocks group; an empty array when selected and Amazon showed none.

data.request_parameters

NameTypeRequiredDescription
keywordstringRequiredKeyword searched, after surrounding whitespace was trimmed.
marketplacestringRequiredMarketplace code. One of US, CA, MX, UK, DE, FR, IT, ES, AU, JP, BR, IN, SG, TR, NL, PL, SE, BE, SA, AE, EG, IE, ZA.
pageintegerRequiredResults page searched. Minimum 1. Maximum 20.
postal_codestring | nullRequiredDelivery postal code used for the search, as it is listed. null for NL, BE and ZA, which deliver to the whole country.
output"json" | "html"RequiredOutput type requested.
includestring[]OptionalField groups applied to this response. ["all"] when include was omitted or was all; otherwise core followed by the named groups in a fixed order. Sending this value back as include returns the same field shape. Absent from an HTML request's redirect response. Each item is one of all, core, product_details, pricing, fulfillment, ad_blocks, related_searches.

data.request_metadata

NameTypeRequiredDescription
request_idstringRequiredIdentifier of this search. Quote it when contacting support.
processed_atstring (date-time)OptionalWhen the search was processed.
source_urlstring (uri)OptionalAmazon address that was read.

data.search_information

NameTypeRequiredDescription
total_resultsintegerOptionalResult count Amazon reported, capped by Amazon at 2,000. Minimum 0.
results_beginintegerOptionalNumber of the first organic result on this page, as Amazon reported it. It counts organic results only and continues across pages, so it is the organic rank of the page's first organic result. Minimum 0.
results_endintegerOptionalNumber of the last organic result on this page, as Amazon reported it. Minimum 0.
product_countintegerRequiredProducts on this page. Minimum 0.
sponsored_product_countintegerRequiredSponsored products on this page. Minimum 0.
organic_product_countintegerRequiredOrganic products on this page. Minimum 0.
delivery_locationstringOptionalDelivery location Amazon showed for the page.

data.search_results[]

NameTypeRequiredDescription
asinstringRequiredIn the core group.
page_positionintegerRequiredPosition on the page among all results, sponsored and organic. In the core group. Minimum 1.
positionintegerOptionalAmazon's own number for this result, read from its result link. Sponsored and organic results share one sequence, which continues across pages, so it is not an organic rank: a result's organic rank is search_information.results_begin - 1 plus its place among is_sponsored: false results in page_position order. Omitted when the link carries no number. In the core group. Minimum 1.
is_sponsoredbooleanRequiredWhether the result is a sponsored placement. In the core group.
placement"top" | "inline" | "bottom"OptionalThe ad slot Amazon served a sponsored result in, the same English token in every marketplace. It is Amazon's own slot label, so it does not vary with screen size or say whether a shopper saw the ad without scrolling. Omitted for organic results and for sponsored results whose slot Amazon does not name. In the core group.
titlestringOptionalIn the product_details group.
subtitlestringOptionalSecond line of a product title that Amazon shows split in two, in the page's language. In the product_details group.
brandstringOptionalIn the product_details group.
tracked_urlstring (uri)OptionalProduct link. In the product_details group.
image_urlstring (uri)OptionalIn the product_details group.
sizestringOptionalSize text shown with the product. In the product_details group.
attributestringOptionalAttribute text shown with the product, such as a colour. In the product_details group.
ratingnumberOptionalAverage star rating. In the product_details group. Minimum 0. Maximum 5.
review_countintegerOptionalIn the product_details group. Minimum 0.
positively_reviewed_forstringOptionalReview highlight. In the product_details group.
top_reviewed_forstringOptionalReview highlight. In the product_details group.
monthly_salesintegerOptionalLower bound of the "bought in past month" figure. In the product_details group. Minimum 0.
badgesLiveSearchBadgesOptionalIn the product_details group.
pricingLiveSearchPricingOptionalIn the pricing group. Every amount in it, including ranges, unit, reference, promotion and buying-choice prices, is in the marketplace's currency.
alternative_offersLiveSearchAlternativeOffer[]OptionalIn the pricing group.
is_primebooleanOptionalIn the fulfillment group.
quantity_in_stockintegerOptionalStock count, when Amazon shows one. In the fulfillment group. Minimum 0.
fulfillmentobject[]OptionalIn the fulfillment group.

data.pagination

NameTypeRequiredDescription
current_pageintegerOptionalMinimum 1.
total_pagesintegerOptionalMinimum 0.
has_morebooleanOptionalWhether Amazon offers a later results page.

data.related_searches[]

NameTypeRequired
search_termstringRequired
urlstring (uri)Required

data.ad_blocks[]

NameTypeRequiredDescription
positionintegerRequiredOrder of the ad block on the page. Minimum 1.
headingstringOptional
subtitlestringOptional
brandobjectOptional
typestringRequiredOne of brand_collection, brand_video, video_collection, store_collection, product_video, product_collection, shopping_adviser, unknown.
placement"top" | "inline" | "bottom"Optional
mediaobject[]Optional
itemsobject[]Required

LiveSearchRedirectResponse

Fields of data:

NameTypeRequiredDescription
request_parametersLiveSearchRequestParametersRequiredThe effective request, with public parameter names.
request_metadataobjectRequired
redirect_urlstring (uri)RequiredAmazon page the keyword was redirected to.

data.request_parameters

NameTypeRequiredDescription
keywordstringRequiredKeyword searched, after surrounding whitespace was trimmed.
marketplacestringRequiredMarketplace code. One of US, CA, MX, UK, DE, FR, IT, ES, AU, JP, BR, IN, SG, TR, NL, PL, SE, BE, SA, AE, EG, IE, ZA.
pageintegerRequiredResults page searched. Minimum 1. Maximum 20.
postal_codestring | nullRequiredDelivery postal code used for the search, as it is listed. null for NL, BE and ZA, which deliver to the whole country.
output"json" | "html"RequiredOutput type requested.
includestring[]OptionalField groups applied to this response. ["all"] when include was omitted or was all; otherwise core followed by the named groups in a fixed order. Sending this value back as include returns the same field shape. Absent from an HTML request's redirect response. Each item is one of all, core, product_details, pricing, fulfillment, ad_blocks, related_searches.

data.request_metadata

NameTypeRequiredDescription
request_idstringOptionalIdentifier of this search.
Full input and output JSON Schema
JSONCode
{ "inputSchema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": { "marketplace": { "type": "string", "maxLength": 2, "description": "Marketplace code, any letter case: US, CA, MX, UK, DE, FR, IT, ES, AU, JP, BR, IN, SG, TR, NL, PL, SE, BE, SA, AE, EG, IE, ZA." }, "keyword": { "type": "string", "maxLength": 1024, "description": "Search keyword, 1 to 256 characters after surrounding whitespace is trimmed." }, "page": { "description": "Results page, 1 to 20. Default 1.", "type": "integer", "minimum": 1, "maximum": 20 }, "postal_code": { "description": "Delivery postal code, or city name in SA, AE and EG; letter case, spaces and hyphens are ignored. Omit for the marketplace default: US 10011, CA M5H 2N2, MX 01000, UK NR1 1BG, DE 10115, FR 75001, IT 20121, ES 28002, AU 3000, JP 100-0005, BR 01310-100, IN 400001, SG 018956, TR 34134, PL 00-950, SE 111 53, SA Riyadh, AE Dubai, EG New Cairo City, IE D02 N403. NL, BE and ZA deliver to the whole country: omit postal_code there. Call get_postal_codes before choosing a non-default postal code, and pass it exactly as listed.", "type": "string", "maxLength": 32 } }, "required": [ "marketplace", "keyword" ], "additionalProperties": false }, "outputSchema": { "type": "object", "required": [ "data" ], "anyOf": [ { "$ref": "#/$defs/LiveSearchResponse" }, { "$ref": "#/$defs/LiveSearchRedirectResponse" } ], "$defs": { "LiveSearchResponse": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "request_parameters", "request_metadata", "search_information", "search_results" ], "properties": { "request_parameters": { "$ref": "#/$defs/LiveSearchRequestParameters" }, "request_metadata": { "$ref": "#/$defs/LiveSearchRequestMetadata" }, "search_information": { "$ref": "#/$defs/LiveSearchInformation" }, "search_results": { "type": "array", "items": { "$ref": "#/$defs/LiveSearchResult" }, "description": "Products in page order. Empty when the page has no products." }, "pagination": { "$ref": "#/$defs/LiveSearchPagination" }, "related_searches": { "type": "array", "items": { "$ref": "#/$defs/LiveSearchRelatedSearch" }, "description": "In the `related_searches` group; an empty array when selected and Amazon showed none." }, "ad_blocks": { "type": "array", "items": { "$ref": "#/$defs/LiveSearchAdBlock" }, "description": "In the `ad_blocks` group; an empty array when selected and Amazon showed none." } } } } }, "LiveSearchRequestParameters": { "type": "object", "description": "The effective request, with public parameter names.", "required": [ "keyword", "marketplace", "page", "postal_code", "output" ], "properties": { "keyword": { "type": "string", "description": "Keyword searched, after surrounding whitespace was trimmed." }, "marketplace": { "type": "string", "description": "Marketplace code.", "enum": [ "US", "CA", "MX", "UK", "DE", "FR", "IT", "ES", "AU", "JP", "BR", "IN", "SG", "TR", "NL", "PL", "SE", "BE", "SA", "AE", "EG", "IE", "ZA" ] }, "page": { "type": "integer", "description": "Results page searched.", "minimum": 1, "maximum": 20 }, "postal_code": { "type": [ "string", "null" ], "description": "Delivery postal code used for the search, as it is listed. `null` for `NL`, `BE` and `ZA`, which deliver to the whole country." }, "output": { "type": "string", "description": "Output type requested.", "enum": [ "json", "html" ] }, "include": { "type": "array", "items": { "type": "string", "enum": [ "all", "core", "product_details", "pricing", "fulfillment", "ad_blocks", "related_searches" ] }, "description": "Field groups applied to this response. `[\"all\"]` when `include` was omitted or was `all`; otherwise `core` followed by the named groups in a fixed order. Sending this value back as `include` returns the same field shape. Absent from an HTML request's redirect response." } } }, "LiveSearchRequestMetadata": { "type": "object", "required": [ "request_id" ], "properties": { "request_id": { "type": "string", "description": "Identifier of this search. Quote it when contacting support." }, "processed_at": { "type": "string", "description": "When the search was processed.", "format": "date-time" }, "source_url": { "type": "string", "description": "Amazon address that was read.", "format": "uri" } } }, "LiveSearchInformation": { "type": "object", "required": [ "product_count", "sponsored_product_count", "organic_product_count" ], "properties": { "total_results": { "type": "integer", "description": "Result count Amazon reported, capped by Amazon at 2,000.", "minimum": 0 }, "results_begin": { "type": "integer", "description": "Number of the first organic result on this page, as Amazon reported it. It counts organic results only and continues across pages, so it is the organic rank of the page's first organic result.", "minimum": 0 }, "results_end": { "type": "integer", "description": "Number of the last organic result on this page, as Amazon reported it.", "minimum": 0 }, "product_count": { "type": "integer", "description": "Products on this page.", "minimum": 0 }, "sponsored_product_count": { "type": "integer", "description": "Sponsored products on this page.", "minimum": 0 }, "organic_product_count": { "type": "integer", "description": "Organic products on this page.", "minimum": 0 }, "delivery_location": { "type": "string", "description": "Delivery location Amazon showed for the page." } } }, "LiveSearchResult": { "type": "object", "description": "One product occurrence on the page. Fields outside `core` appear only when their group is selected and Amazon showed a value.", "required": [ "asin", "page_position", "is_sponsored" ], "properties": { "asin": { "type": "string", "description": "In the `core` group." }, "page_position": { "type": "integer", "description": "Position on the page among all results, sponsored and organic. In the `core` group.", "minimum": 1 }, "position": { "type": "integer", "description": "Amazon's own number for this result, read from its result link. Sponsored and organic results share one sequence, which continues across pages, so it is not an organic rank: a result's organic rank is `search_information.results_begin` - 1 plus its place among `is_sponsored: false` results in `page_position` order. Omitted when the link carries no number. In the `core` group.", "minimum": 1 }, "is_sponsored": { "type": "boolean", "description": "Whether the result is a sponsored placement. In the `core` group." }, "placement": { "type": "string", "enum": [ "top", "inline", "bottom" ], "description": "The ad slot Amazon served a sponsored result in, the same English token in every marketplace. It is Amazon's own slot label, so it does not vary with screen size or say whether a shopper saw the ad without scrolling. Omitted for organic results and for sponsored results whose slot Amazon does not name. In the `core` group." }, "title": { "type": "string", "description": "In the `product_details` group." }, "subtitle": { "type": "string", "description": "Second line of a product title that Amazon shows split in two, in the page's language. In the `product_details` group." }, "brand": { "type": "string", "description": "In the `product_details` group." }, "tracked_url": { "type": "string", "description": "Product link. In the `product_details` group.", "format": "uri" }, "image_url": { "type": "string", "description": "In the `product_details` group.", "format": "uri" }, "size": { "type": "string", "description": "Size text shown with the product. In the `product_details` group." }, "attribute": { "type": "string", "description": "Attribute text shown with the product, such as a colour. In the `product_details` group." }, "rating": { "type": "number", "description": "Average star rating. In the `product_details` group.", "minimum": 0, "maximum": 5 }, "review_count": { "type": "integer", "description": "In the `product_details` group.", "minimum": 0 }, "positively_reviewed_for": { "type": "string", "description": "Review highlight. In the `product_details` group." }, "top_reviewed_for": { "type": "string", "description": "Review highlight. In the `product_details` group." }, "monthly_sales": { "type": "integer", "description": "Lower bound of the \"bought in past month\" figure. In the `product_details` group.", "minimum": 0 }, "badges": { "$ref": "#/$defs/LiveSearchBadges" }, "pricing": { "$ref": "#/$defs/LiveSearchPricing" }, "alternative_offers": { "type": "array", "items": { "$ref": "#/$defs/LiveSearchAlternativeOffer" }, "description": "In the `pricing` group." }, "is_prime": { "type": "boolean", "description": "In the `fulfillment` group." }, "quantity_in_stock": { "type": "integer", "description": "Stock count, when Amazon shows one. In the `fulfillment` group.", "minimum": 0 }, "fulfillment": { "type": "array", "items": { "$ref": "#/$defs/LiveSearchFulfillmentOption" }, "description": "In the `fulfillment` group." } } }, "LiveSearchBadges": { "type": "object", "description": "In the `product_details` group.", "properties": { "best_seller": { "type": "object", "properties": { "category": { "type": "string" } } }, "amazons_choice": { "type": "object", "required": [ "type" ], "properties": { "type": { "type": "string", "enum": [ "overall_pick", "popular_brand_pick", "new_arrival_pick", "unspecified" ] } } }, "small_business": { "type": "boolean", "enum": [ true ] }, "sustainability_features": { "type": "array", "items": { "type": "string", "minLength": 1 } } } }, "LiveSearchPricing": { "type": "object", "description": "In the `pricing` group. Every amount in it, including ranges, unit, reference, promotion and buying-choice prices, is in the marketplace's currency.", "properties": { "price": { "type": "number", "description": "Displayed price in the marketplace's currency (USD for US, CAD for CA, MXN for MX, GBP for UK, EUR for DE, FR, IT and ES, AUD for AU, JPY for JP, BRL for BR, INR for IN, SGD for SG, TRY for TR, PLN for PL, SEK for SE, SAR for SA, AED for AE, EGP for EG, EUR for NL, BE and IE, ZAR for ZA). The response has no currency field." }, "price_is_estimated": { "type": "boolean", "description": "Present and `true` when the price is an estimate.", "enum": [ true ] }, "price_unit": { "type": "string" }, "price_range": { "type": "object", "required": [ "minimum", "maximum" ], "properties": { "minimum": { "type": "number" }, "maximum": { "type": "number" } } }, "price_qualification": { "type": "string" }, "price_period": { "type": "string" }, "price_message": { "type": "string" }, "unit_price": { "type": "object", "required": [ "price", "unit" ], "properties": { "price": { "type": "number" }, "unit": { "type": "string" } } }, "reference_price": { "type": "object", "required": [ "type", "price" ], "properties": { "type": { "type": "string", "description": "The kind of reference price Amazon showed. `recent_low` is the lowest price of recent days, which Amazon shows under EU price rules (for example `Najniลผsza:` on `PL`, `Le plus bas` on `FR`).", "enum": [ "list", "typical", "previous", "recent_low", "new_condition", "other" ] }, "price": { "type": "number" }, "display_text": { "type": "string" } } }, "promotions": { "type": "array", "items": { "$ref": "#/$defs/LiveSearchPromotion" } }, "more_buying_choices": { "type": "object", "required": [ "price", "offer_count", "offer_count_is_minimum", "condition" ], "properties": { "price": { "type": "number" }, "offer_count": { "type": "integer", "minimum": 0 }, "offer_count_is_minimum": { "type": "boolean" }, "condition": { "type": "string", "enum": [ "new", "used", "used_and_new" ] } } } } }, "LiveSearchPromotion": { "type": "object", "required": [ "type", "display_text" ], "properties": { "type": { "type": "string", "description": "The kind of promotion Amazon showed. `preowned_deal` is Amazon's deal badge on a pre-owned, renewed or refurbished offer (`Preowned deal` on `US` and `CA`, `Promo Reacondicionado` on `MX`): it marks the offer's condition, not a time-limited deal.", "enum": [ "coupon", "limited_time_deal", "final_sale", "price_discount", "best_price", "preowned_deal", "deal_countdown", "prime_deal", "prime_price", "rebate", "checkout_discount", "quantity_discount", "multibuy", "spend_discount", "subscription_discount", "amazon_credit", "gift_card", "free_trial", "bundle_offer", "other" ] }, "display_text": { "type": "string", "description": "Text Amazon displayed for the promotion." }, "price": { "type": "number" }, "discount_amount": { "type": "number" }, "discount_percentage": { "type": "number" }, "minimum_quantity": { "type": "number" }, "discounted_quantity": { "type": "number" }, "minimum_spend": { "type": "number" }, "pay_for_quantity": { "type": "number" }, "buy_quantity": { "type": "number" }, "free_quantity": { "type": "number" }, "bundle_price": { "type": "number" }, "minimum_rebate_amount": { "type": "number" }, "credit_amount": { "type": "number" }, "eligibility_text": { "type": "string" }, "benefit_text": { "type": "string" }, "countdown": { "type": "string" } } }, "LiveSearchAlternativeOffer": { "type": "object", "description": "In the `pricing` group.", "properties": { "label": { "type": "string" }, "pricing": { "$ref": "#/$defs/LiveSearchPricing" }, "display_text": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "offer_count": { "type": "number" }, "offer_count_is_minimum": { "type": "boolean", "enum": [ true ] }, "condition": { "type": "string", "enum": [ "new", "used", "used_and_new" ] }, "is_prime": { "type": "boolean", "description": "In the `fulfillment` group." }, "quantity_in_stock": { "type": "integer", "description": "In the `fulfillment` group.", "minimum": 0 }, "fulfillment": { "type": "array", "items": { "$ref": "#/$defs/LiveSearchFulfillmentOption" }, "description": "In the `fulfillment` group." } } }, "LiveSearchFulfillmentOption": { "type": "object", "required": [ "method", "display_text" ], "properties": { "method": { "type": "string", "enum": [ "delivery", "pickup" ] }, "estimate": { "type": "string", "description": "Estimated delivery or pickup date as Amazon displayed it." }, "fee": { "type": "number", "description": "Fee in the marketplace's currency, when shown." }, "display_text": { "type": "string", "description": "Text Amazon displayed for this option." } } }, "LiveSearchPagination": { "type": "object", "properties": { "current_page": { "type": "integer", "minimum": 1 }, "total_pages": { "type": "integer", "minimum": 0 }, "has_more": { "type": "boolean", "description": "Whether Amazon offers a later results page." } } }, "LiveSearchRelatedSearch": { "type": "object", "required": [ "search_term", "url" ], "properties": { "search_term": { "type": "string" }, "url": { "type": "string", "format": "uri" } } }, "LiveSearchAdBlock": { "type": "object", "description": "Sponsored brand, video and collection placement. In the `ad_blocks` group.", "required": [ "position", "type", "items" ], "properties": { "position": { "type": "integer", "description": "Order of the ad block on the page.", "minimum": 1 }, "heading": { "type": "string" }, "subtitle": { "type": "string" }, "brand": { "type": "object", "properties": { "name": { "type": "string" }, "logo_url": { "type": "string", "format": "uri" }, "store_url": { "type": "string", "format": "uri" } } }, "type": { "type": "string", "enum": [ "brand_collection", "brand_video", "video_collection", "store_collection", "product_video", "product_collection", "shopping_adviser", "unknown" ] }, "placement": { "type": "string", "enum": [ "top", "inline", "bottom" ] }, "media": { "type": "array", "items": { "type": "object", "required": [ "type" ], "properties": { "type": { "type": "string", "enum": [ "video", "image" ] }, "url": { "type": "string", "format": "uri" }, "poster_url": { "type": "string", "format": "uri" }, "features": { "type": "array", "items": { "type": "object", "required": [ "label" ], "properties": { "label": { "type": "string" } } } } } } }, "items": { "type": "array", "items": { "oneOf": [ { "type": "object", "description": "A product item. `product` is omitted when nothing selected is available for it.", "required": [ "type" ], "properties": { "type": { "type": "string", "enum": [ "product" ] }, "label": { "type": "string" }, "product": { "$ref": "#/$defs/LiveSearchAdProduct" } } }, { "type": "object", "description": "A link to a brand store.", "required": [ "type" ], "properties": { "type": { "type": "string", "enum": [ "store_link" ] }, "label": { "type": "string" }, "image_url": { "type": "string", "format": "uri" }, "url": { "type": "string", "format": "uri" } } } ] } } } }, "LiveSearchAdProduct": { "type": "object", "description": "Product in an ad block, carrying its `asin` and the selected product groups.", "properties": { "asin": { "type": "string" }, "title": { "type": "string", "description": "In the `product_details` group." }, "tracked_url": { "type": "string", "description": "Product link. In the `product_details` group.", "format": "uri" }, "image_url": { "type": "string", "description": "In the `product_details` group.", "format": "uri" }, "size": { "type": "string", "description": "Size text shown with the product. In the `product_details` group." }, "attribute": { "type": "string", "description": "Attribute text shown with the product, such as a colour. In the `product_details` group." }, "rating": { "type": "number", "description": "Average star rating. In the `product_details` group.", "minimum": 0, "maximum": 5 }, "review_count": { "type": "integer", "description": "In the `product_details` group.", "minimum": 0 }, "positively_reviewed_for": { "type": "string", "description": "Review highlight. In the `product_details` group." }, "top_reviewed_for": { "type": "string", "description": "Review highlight. In the `product_details` group." }, "monthly_sales": { "type": "integer", "description": "Lower bound of the \"bought in past month\" figure. In the `product_details` group.", "minimum": 0 }, "badges": { "$ref": "#/$defs/LiveSearchBadges" }, "pricing": { "$ref": "#/$defs/LiveSearchPricing" }, "alternative_offers": { "type": "array", "items": { "$ref": "#/$defs/LiveSearchAlternativeOffer" }, "description": "In the `pricing` group." }, "is_prime": { "type": "boolean", "description": "In the `fulfillment` group." }, "quantity_in_stock": { "type": "integer", "description": "Stock count, when Amazon shows one. In the `fulfillment` group.", "minimum": 0 }, "fulfillment": { "type": "array", "items": { "$ref": "#/$defs/LiveSearchFulfillmentOption" }, "description": "In the `fulfillment` group." } } }, "LiveSearchRedirectResponse": { "type": "object", "description": "Amazon redirected the keyword to a category or other non-search page. There are no results.", "required": [ "data" ], "properties": { "data": { "type": "object", "required": [ "request_parameters", "request_metadata", "redirect_url" ], "properties": { "request_parameters": { "$ref": "#/$defs/LiveSearchRequestParameters" }, "request_metadata": { "type": "object", "properties": { "request_id": { "type": "string", "description": "Identifier of this search." } } }, "redirect_url": { "type": "string", "description": "Amazon page the keyword was redirected to.", "format": "uri" } } } } } } } }