Documentation Index
Fetch the complete documentation index at: https://docs.zenrows.com/llms.txt
Use this file to discover all available pages before exploring further.
How to Find the Correct ID or Query for Your URL?
How to Find the Correct ID or Query for Your URL?
Amazon Product API
- Example URL:
/dp/B07FZ8S74R - Correct ID:
B07FZ8S74R
How do I find the correct ID?
The Amazon Standard Identification Number (ASIN) is the unique product ID, found after/dp/ in the URL.Example Request: https://www.amazon.com/dp/B07FZ8S74RAmazon Discovery API
- Example URL:
/s?k=Echo+Dot - Correct Query:
Echo Dot
How do I find the correct query?
Amazon search URLs contain the query after?k=. This query must be URL-encoded when making requests.Example Request: https://www.amazon.com/s?k=Echo+DotWalmart Product API
- Example URL:
/ip/5074872077 - Correct ID:
5074872077
How do I find the correct ID?
Walmart product pages include a numeric item ID, which appears right after/ip/ in the URL.Example Request: https://www.walmart.com/ip/5074872077Walmart Review API
- Example URL:
/reviews/product/5074872077 - Correct ID:
5074872077
How do I find the correct ID?
The Walmart Review API uses the same product ID as the main product page, found after/reviews/product/.Example Request: https://www.walmart.com/reviews/product/5074872077Walmart Discovery API
- Example URL:
/search?q=Wireless+Headphones - Correct Query:
Wireless Headphones
How do I find the correct query?
The search query appears after?q= in the URL and should be URL-encoded when used in API requests.Example Request: https://www.walmart.com/search?q=Wireless+HeadphonesIdealista Property API
- Example URL:
/inmueble/106605370/ - Correct ID:
123456789
How do I find the correct ID?
Idealista property pages include a numeric identifier found after/inmueble/.Example Request: https://www.idealista.com/inmueble/106605370/Idealista Discovery API
- Example URL: /venta-viviendas/madrid-madrid
- Correct ID: NOT_SUPPORTED
Why is there no ID?
Idealista search results do not use a unique ID because they return multiple listings instead of a single property.Example Request:https://www.idealista.com/venta-viviendas/madrid-madridZillow Property API
- Example URL:
/homedetails/112-Treadwell-Ave-Staten-Island-NY-10302/32297624_zpid/ - Correct ID:
32297624
How do I find the correct ID?
Zillow property pages include azpid, found near the end of the URL before _zpid/.Example Request: https://www.zillow.com/homedetails/112-Treadwell-Ave-Staten-Island-NY-10302/32297624_zpid/Zillow Discovery API
- Example URL:
/homes/for_sale/San-Francisco-CA/ - Correct ID: NOT_SUPPORTED
Why is there no ID?
Zillow search results do not have a unique identifier because they display multiple property listings instead of a single home.Example Request:https://www.zillow.com/homes/for_sale/San-Francisco-CA/Google Search API
- Example URL:
/search?q=nintendo&udm=14 - Correct Query:
Nintendo
How do I find the correct query?
The search query appears after?q= in the URL and should be URL-encoded when making API requests.Example Request: https://www.google.com/search?q=nintendo&udm=14How to Switch to the Scraper APIs?
How to Switch to the Scraper APIs?
Why Switch to the Scraper APIs
The Scraper APIs are designed to streamline web scraping by offering dedicated endpoints for specific use cases. Unlike the Universal Scraper API, which requires custom configurations for proxies, JavaScript rendering, and anti-bot measures, the Scraper APIs handle these complexities for you. Key benefits include:- Predictable Pricing: Scraper APIs offer a competitive fixed price per successful request, ensuring clear and consistent cost management for your scraping needs.
- No Setup, Parsing, or Maintenance Required: With the Scraper APIs, simply select the API use case, and we handle all the anti-bot configuration. This means you can focus on extracting valuable data while we ensure the API responses are structured and reliable. Enjoy high success rates and continuous data streams with no maintenance on your end.
How the Scraper APIs Work
The core of the ZenRows API is the API Endpoint, which is structured based on the industry, target website, type of request, and query parameters. This modular approach allows you to extract data efficiently from various sources.<INDUSTRY>The industry category (e.g., ecommerce, realestate, serp).<WEBSITE>The target website (e.g., amazon, idealista, google).<TYPE_OF_REQUEST>The type of data you want (e.g., products, reviews, search).<QUERY_ID_URL>The unique identifier for the request, such as a product ID, property ID, or query.<YOUR_ZENROWS_API_KEY>Your personal API key for authentication and access.
- Industry:
ecommerce - Website:
amazon - Type of Request:
products - Query ID:
{asin}(Amazon Standard Identification Number, used for product lookup)
Customization with Additional Parameters
Depending on the website, you may include extra parameters to refine your request:.tldSpecify the top-level domain (e.g.,.com,.co.uk,.de).countrySet the country code to retrieve localized data.filtersApply filters to extract specific data.
Examples on How to Transition from the Universal Scraper API
Switching to the Scraper APIs requires minimal code changes. Below is an example of how to transition from the Universal Scraper API to a dedicated Scraper API.E-Commerce (i.e., Amazon Product Information API)
Old Code Using Universal Scraper API:
New Code Using a Dedicated Scraper API:
Steps to Switch:
Update the API Endpoint
{asin} is the unique Amazon product identifier.Simplify the Parameters
js_render or premium_proxy. Simply pass the apikey and any other relevant parameters (such as country or tld) and you’re good to go.
Real Estate (i.e., Zillow Property Data API)
Old Code Using Universal Scraper API:
New Code Using a Dedicated Scraper API:
Steps to Switch:
Update the API Endpoint
{zpid} is the unique Zillow property identifier.Simplify the Parameters
js_render or premium_proxy. Simply provide the apikey along with any other relevant parameters (such as country or tld), and you’re good to go.
SERP (i.e., Google Search Results API)
Old Code Using Universal Scraper API:
New Code Using a Dedicated Scraper API:
Steps to Switch:
Update the API Endpoint
{query} should be URL-encoded.Simplify the Parameters
js_render or premium_proxy. Simply provide the apikey along with any other relevant parameters (such as country or tld), and you’re good to go.
Need Help?
If you have any questions or face issues during the transition, our support team is here to assist you. Switching to the new Scraper APIs is straightforward, offering optimized performance, predictable pricing, and less maintenance. We’re constantly expanding our API catalog and prioritizing new features based on your feedback, so enjoy a more reliable scraping experience today!Where can I find my API key?
Where can I find my API key?
What happens if I exceed my API usage limits?
What happens if I exceed my API usage limits?
Do I need to set up a proxy for the Scraper APIs?
Do I need to set up a proxy for the Scraper APIs?
Can I use ZenRows Scraper APIs with different programming languages?
Can I use ZenRows Scraper APIs with different programming languages?
Can I scrape localized versions of a website?
Can I scrape localized versions of a website?
.tld) and country parameters to target localized versions of a website.
What happens if my request fails?
What happens if my request fails?
How can I optimize my API requests for performance?
How can I optimize my API requests for performance?
Can I use ZenRows for large-scale data extraction?
Can I use ZenRows for large-scale data extraction?