Search Amazon products
Input
query requiredFree-text search query.
page optionalResult page (about 16 to 22 organic results a page; Amazon stops near page 20). has_next_page says when to stop.
Default: 1sort optionalSort order: relevanceblender (featured, the default), price-asc-rank, price-desc-rank, review-rank (average customer review), date-desc-rank (newest arrivals), exact-aware-popularity-rank (best sellers).
zipCode optionalUS ZIP used to pin the store location (prices, availability).
Default: "10001"price_max optionalMaximum price in US dollars.
price_min optionalMinimum price in US dollars.
department optionalDepartment to search in, as its search alias, e.g. "stripbooks" (Books) or "electronics" (values from list_search_filters, key department). Default: all departments.
refinements optionalFilters from Amazon's left column, each as group:value, e.g. "p_85:2470955011" (Prime) or "p_123:3271" (a brand). Get them from list_search_filters for the same query. Values of one group are alternatives; different groups all apply.
Output
url requiredzip requiredpage requireditems requiredThe results in page order, sponsored ones included. When nothing matches the query, Amazon can still show a few sponsored products that are not about it.
query requiredhas_next_page requiredTrue when Amazon offers a next page of results for this search. False on the last page, on a page past the last one, and when nothing matches the query.
