Amazon Search API

This endpoint will retrieve products for a specified search term from Amazon search page and transform it into usable JSON or CSV.

<?php
$url =
"https://api.scraperapi.com/structured/amazon/search?api_key=APIKEY&query=QUERY&country=COUNTRY&tld=TLD"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,
TRUE); curl_setopt($ch, CURLOPT_HEADER,
FALSE); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST,
0); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER,
0); $response = curl_exec($ch); curl_close($ch); print_r($response);

ParameterDetails

API_KEY (required)

User's normal API Key

QUERY (required)

Amazon Search query string e.g. green shoes

COUNTRY

Where an amazon domain needs to be scraped from another country (e.g. scraping amazon.com from Canada to get Canadian shipping information), specify the TLD as well as the COUNTRY parameters. Valid values are valid TLDs (e.g. “.com.au”, “.es”, etc.). Valid values include: us: 'amazon.com', uk: 'amazon.co.uk', ca: 'amazon.ca', de: 'amazon.de', es: 'amazon.es', fr: 'amazon.fr', it: 'amazon.it', jp: 'amazon.co.jp', in: 'amazon.in', cn: 'amazon.cn', sg: 'amazon.com.sg', mx: 'amazon.com.mx', ae: 'amazon.ae', br: 'amazon.com.br', nl: 'amazon.nl', au: 'amazon.com.au', tr: 'amazon.com.tr', sa: 'amazon.sa', se: 'amazon.se', pl: 'amazon.pl'

TLD

Country of Amazon domain to scrape. This is an optional argument and defaults to “us” (amazon.com).

OUTPUT_FORMAT

For structured data methods we offer CSV and JSON output. JSON is default if parameter is not added. Options:

  • csv

  • json


Last updated