{
"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"
}
}
}
}
}
}
}
}