Amazon ZIP Code Targeting

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:

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

  • API REQUEST

import requests
payload = {'api_key': 'APIKEY', 'zip': '92223', 'url': 'https://www.amazon.com/Ninja-Kitchen-BL770-Processor-Smoothies/dp/B00939I7EK'}
r = requests.get('https://api.scraperapi.com', params=payload)
print(r.text)
# Scrapy users can simply replace the urls in their start_urls and parse function
# ...other scrapy setup code
start_urls = ['http://api.scraperapi.com?api_key=APIKEY&url=' + url]
def parse(self, response):
# ...your parsing logic here
yield scrapy.Request('http://api.scraperapi.com/?api_key=APIKEY&url=' + url, self.parse)
  • PROXY MODE

import requests
proxies = {
"http": "http://scraperapi.zip=92223:APIKEY@proxy-server.scraperapi.com:8001"
}
r = requests.get('https://www.amazon.com/Ninja-Kitchen-BL770-Processor-Smoothies/dp/B00939I7EK', proxies=proxies, verify=False)
print(r.text)
# Scrapy users can likewise simply pass their API key in headers.
# NB: Scrapy skips SSL verification by default.
# ...other scrapy setup code
start_urls = ['https://www.amazon.com/Ninja-Kitchen-BL770-Processor-Smoothies/dp/B00939I7EK']
meta = {
"proxy": "http://scraperapi.zip=92223:APIKEY@proxy-server.scraperapi.com:8001"
}
def parse(self, response):
# ...your parsing logic here
yield scrapy.Request(url, callback=self.parse, headers=headers, meta=meta)
  • SDE METHOD

import requests
payload = {'api_key': 'APIKEY', 'asin': 'ASIN', 'zip': '92223'}
r = requests.get('https://api.scraperapi.com/structured/amazon/offers', params=payload)
print(r.text)
  • 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