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 requestspayload = {'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 codestart_urls = ['http://api.scraperapi.com?api_key=APIKEY&url='+ url]defparse(self,response):# ...your parsing logic hereyield scrapy.Request('http://api.scraperapi.com/?api_key=APIKEY&url='+ url, self.parse)
PROXY MODE
import requestsproxies ={"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 codestart_urls = ['https://www.amazon.com/Ninja-Kitchen-BL770-Processor-Smoothies/dp/B00939I7EK']meta ={"proxy":"http://scraperapi.zip=92223:APIKEY@proxy-server.scraperapi.com:8001"}defparse(self,response):# ...your parsing logic hereyield scrapy.Request(url, callback=self.parse, headers=headers, meta=meta)
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.