Customize Amazon Requests by ZIP Code via ScraperAPI in PHP

Learn how to customize Amazon data requests by targeting ZIP codes using ScraperAPI in PHP. Optimize your queries for pricing, availability, and local insights.

Please be aware that our current support is limited to US ZIP Codes exclusively

Target specific ZIP codes to scrape product listings, offers, search queries, and more from regions of interest, providing valuable insights for market research, competitor analysis, and pricing optimization. When you need to focus solely on a particular ZIP code, incorporate the zip parameter into your requests.

Here are some example ZIP codes that we support:

ZIP Code

33837

62864

92223

92392

Davenport, FL

Mount Vernon, VA

Beaumont, TX

Victorville, CA

For example, set zip=92223to retrieve information tailored to the Beaumont, TX area within the response:

  • API REQUEST

<?php
$url =
"https://api.scraperapi.com?api_key=APIKEY&zip=92223&url=https://www.amazon.com/Ninja-Kitchen-BL770-Processor-Smoothies/dp/B00939I7EK"; $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);
  • PROXY MODE

<?php
$ch = curl_init();  curl_setopt($ch, CURLOPT_URL,
"https://www.amazon.com/Ninja-Kitchen-BL770-Processor-Smoothies/dp/B00939I7EK");  curl_setopt($ch, CURLOPT_PROXY,
"http://scraperapi.zip=92223:[email protected]:8001");  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);  var_dump($response);
  • SDE METHOD

<?php
$url =
"https://api.scraperapi.com/structured/amazon/offers?api_key=APIKEY&asin=B00939I7EK&zip=92223"; $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);
  • ASYNC SDE METHOD

Coming soon

We encourage you to explore the ZIP code targeting feature to see how it can enhance your data collection. Try various ZIP codes to get a feel for how the targeted information changes and tailor your requests to suit your needs. If certain ZIP codes are not working or accepted during your testing, please contact our support team to enable them for you.

Last updated

Was this helpful?