The google_shopping_pricing source is designed to retrieve pages containing lists of offers available for a product ID of your choice.
Request samples
In the code example below, we make a request to retrieve the product pricing page for product ID 5007040952399054528 from Google Shopping on google.com.
We use synchronous integration method in our examples. If you would like to use or asynchronous integration, refer to the section.
Request parameter values
Generic
Basic setup and customization for scraping Google Shopping pages with offers for a chosen product ID.
Parameter
Description
Default Value
source
Sets the scraper.
google_shopping_pricing
query
UTF-encoded product code.
-
render
-
parse
false
callback_url
-
user_agent_type
desktop
- mandatory parameter
Localization
Adapt results to specific geographical locations, domains, and languages.
Parameter
Description
Default Value
geo_location
-
domain
com
locale
-
context:
results_language
-
Pagination
Controls for managing the pagination and retrieval of search results.
Parameter
Description
Default Value
start_page
Starting page number.
1
pages
Number of pages to retrieve.
1
Structured data
Below you can find a structured output example for google_shopping_pricing.
Output data dictionary
HTML example
JSON structure
The table below presents a detailed list of each element we parse, along with its description and data type. The table also includes some metadata.
Key
Description
Type
url
The URL to the product page on Google Shopping.
string
title
The title of the product.
string
rating (optional)
The average user rating of the product, typically out of 5.
integer
pricing
An array of objects containing pricing information from different sellers.
array
pricing.price
The price of the product in the specified currency.
integer
pricing.seller
The name of the seller offering the product.
string
pricing.details
Additional details about the purchase, such as delivery and return policies.
string
pricing.currency
The currency code for the product price.
string
pricing.condition
The condition of the product, typically "New" or "Used".
string
pricing.price_tax
The amount of tax applied to the product price.
integer
pricing.price_total
The total price of the product, including tax.
integer
pricing.seller_link
The URL to the seller's page for the product.
string
pricing.price_shipping
The shipping cost for the product.
integer
review_count (optional)
The total number of reviews for the product.
integer
parse_status_code
integer
created_at
The timestamp when the scraping job was created.
timestamp
updated_at
The timestamp when the scraping job was finished.
timestamp
status_code
integer
job_id
The ID of the job associated with the scraping job.
string
Enables JavaScript rendering when set to html. .
Returns parsed data when set to true. Explore output .
URL to your callback endpoint. .
Device type and browser. The full list can be found .
The geographical location that the result should be adapted for. Using this parameter correctly is extremely important to get the right data. For more information, read about our suggested geo_location parameter structures .
Domain localization for Google. The full list of available domains can be found .
Accept-Language header value which changes your Google search page web interface language. .
Results language. List of supported Google languages can be found .
The status code of the parsing job. You can see the parser status codes described .
The status code of the scraping job. You can see the scraper status codes described .