Skip to main content

Product Search Scraper

The Product Search scraper type generates scrapers that extract product listings from search results pages. This includes every product in the search results along with search metadata, pagination information, and related searches.


When to Use

Use the Product Search scraper type when your target URLs are search results pages — pages that display a list of products matching a search query.

Example URLs:

  • https://www.amazon.com/s?k=wireless+headphones
  • https://www.walmart.com/search?q=laptop
  • https://www.ebay.com/sch/i.html?_nkw=iphone+case
  • https://www.target.com/s?searchTerm=running+shoes
Improving Scraper Accuracy

Provide 2–5 search result URLs from the same website with different search queries. This helps the AI understand variations in the page layout and generate more robust extraction code.


Data Schema

The Product Search scraper extracts the following fields:

Search Metadata

FieldTypeDescription
searchMetadata.querystringThe search query or keywords used
searchMetadata.totalResultsnumberTotal number of search results found
searchMetadata.resultsDisplayednumberNumber of results displayed on current page
searchMetadata.searchUrlstringURL of the current search page
searchMetadata.searchTypestringType of search: keyword, category, brand, or filtered

Pagination

FieldTypeDescription
pagination.currentPagenumberCurrent page number
pagination.totalPagesnumberTotal number of pages available
pagination.hasNextPagebooleanWhether there is a next page
pagination.hasPreviousPagebooleanWhether there is a previous page
pagination.nextPageUrlstringURL to the next page of results
pagination.previousPageUrlstringURL to the previous page of results
FieldTypeDescription
breadcrumbsarrayNavigation breadcrumbs for the search page
breadcrumbs[].namestringName of the breadcrumb item
breadcrumbs[].urlstringURL of the breadcrumb link
FieldTypeDescription
relatedSearchesarrayRelated or suggested search terms
relatedSearches[].searchTermstringRelated search term
relatedSearches[].urlstringURL for the related search

Products

Each product in the products array contains:

FieldTypeDescription
namestringProduct name as displayed in search results
productIdstringUnique identifier for the product
urlstringURL to the product detail page
brandstringBrand name, if displayed
pricenumberCurrent price
currencystringCurrency code (e.g., USD, GBP)
preDiscountPricenumberOriginal price before discount, if shown
priceRange.minPricenumberMinimum price for products with variants
priceRange.maxPricenumberMaximum price for products with variants
priceRange.currencystringCurrency for the price range
availabilitystringAvailability status: in_stock, out_of_stock, pre_order, or discontinued
availabilityMessagestringAdditional availability text (e.g., "Ships in 2–3 days")
imagesarrayProduct images from search results
images[].urlstringAbsolute image URL
images[].altTextstringAlternative text for the image
aggregateRating.ratingValuenumberAverage rating value
aggregateRating.reviewCountnumberNumber of reviews
shipping.freeShippingbooleanWhether free shipping is available
shipping.shippingCostnumberShipping cost, if displayed
shipping.estimatedDeliverystringEstimated delivery information

Example JSON Output

{
"searchMetadata": {
"query": "wireless headphones",
"totalResults": 10000,
"resultsDisplayed": 48,
"searchUrl": "https://www.amazon.com/s?k=wireless+headphones",
"searchType": "keyword"
},
"pagination": {
"currentPage": 1,
"totalPages": 20,
"hasNextPage": true,
"hasPreviousPage": false,
"nextPageUrl": "https://www.amazon.com/s?k=wireless+headphones&page=2",
"previousPageUrl": null
},
"breadcrumbs": [
{
"name": "Electronics",
"url": "https://www.amazon.com/electronics/b?node=172282"
}
],
"relatedSearches": [
{
"searchTerm": "bluetooth headphones",
"url": "https://www.amazon.com/s?k=bluetooth+headphones"
},
{
"searchTerm": "noise cancelling headphones",
"url": "https://www.amazon.com/s?k=noise+cancelling+headphones"
}
],
"products": [
{
"name": "Sony WH-1000XM5 Wireless Noise Canceling Headphones",
"productId": "B0BX2L8PCS",
"url": "https://www.amazon.com/dp/B0BX2L8PCS",
"brand": "Sony",
"price": 328.00,
"currency": "USD",
"preDiscountPrice": 399.99,
"priceRange": null,
"availability": "in_stock",
"availabilityMessage": null,
"images": [
{
"url": "https://m.media-amazon.com/images/I/51aXvjzcukL._AC_UL320_.jpg",
"altText": "Sony WH-1000XM5 Wireless Noise Canceling Headphones"
}
],
"aggregateRating": {
"ratingValue": 4.6,
"reviewCount": 12543
},
"shipping": {
"freeShipping": true,
"shippingCost": 0,
"estimatedDelivery": "Tomorrow"
}
},
{
"name": "Apple AirPods Max Wireless Over-Ear Headphones",
"productId": "B08PZHYWJS",
"url": "https://www.amazon.com/dp/B08PZHYWJS",
"brand": "Apple",
"price": 449.00,
"currency": "USD",
"preDiscountPrice": 549.00,
"priceRange": null,
"availability": "in_stock",
"availabilityMessage": null,
"images": [
{
"url": "https://m.media-amazon.com/images/I/81-58z+YelL._AC_UL320_.jpg",
"altText": "Apple AirPods Max Wireless Over-Ear Headphones"
}
],
"aggregateRating": {
"ratingValue": 4.5,
"reviewCount": 34210
},
"shipping": {
"freeShipping": true,
"shippingCost": 0,
"estimatedDelivery": "Wed, Feb 19"
}
}
]
}

Usage Tips

  • Use different search queries — When providing multiple URLs, use different search terms on the same site to help the AI handle varied result layouts
  • Pagination support — The scraper extracts pagination data so you can iterate through all result pages programmatically
  • Country geotargeting — Set the country to match your target market for accurate localized search results, prices, and availability
  • Not all fields on every site — Some fields (e.g., priceRange, shipping, relatedSearches) may return empty depending on the website