How to Find the Correct ID or Query for Your URL
When using ZenRows, knowing the right identifier (ID) or query for a given URL is crucial. Whether you’re extracting product details, searching for listings, or retrieving reviews, each platform has a unique way of structuring URLs. This guide explains how to find the correct ID or query for different APIs so you can make accurate and efficient requests.
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/B07FZ8S74R
Amazon 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+Dot
Walmart 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/5074872077
Walmart 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/5074872077
Walmart 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+Headphones
Idealista 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-madrid
Zillow 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 a zpid
, 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=14
Was this page helpful?