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

require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:url => "https://www.amazon.com/Ninja-Kitchen-BL770-Processor-Smoothies/dp/B00939I7EK",
:zip => 92223
}
uri = URI('https://api.scraperapi.com/')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
  • PROXY MODE

require 'httparty'
HTTParty::Basement.default_options.update(verify: false)
response = HTTParty.get('http://httpbin.org/ip', {
http_proxyaddr: "proxy-server.scraperapi.com",
http_proxyport: "8001",
http_proxyuser: "scraperapi.zip=92223",
http_proxypass: "APIKEY"
})
results = response.body
puts results 
  • SDE METHOD

require 'net/http'
require 'json'
params = {
:api_key => "APIKEY",
:asin => "B00939I7EK",
:zip => "9223"
}
uri = URI('https://api.scraperapi.com/structured/amazon/offers')
uri.query = URI.encode_www_form(params)
website_content = Net::HTTP.get(uri)
print(website_content)
  • 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