The Google Product API allows users to retrieve detailed product information from Google, with options to specify product ID, location, search type, and filters for offers and reviews.

Get Your API Key

Sign in at hasdata.com, go to your account settings, and copy your API key. All requests must include your key in the x-api-key header.

Make Your First Request

curl --request GET \
  --url 'https://api.hasdata.com/scrape/google/product?productId=6543846486633453096&location=Austin%2CTexas%2CUnited%20States' \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <your-api-key>'

API Parameters

ParameterDefault ValueRequiredDescription
productId6543846486633453096YesThe product ID to get results for.
locationAustin,Texas,United StatesNoGoogle canonical location for the search.
uule-NoThe encoded location parameter.
domain-NoGoogle domain to use. Default is google.com.
gl-NoThe two-letter country code for the country you want to limit the search to.
hl-NoThe two-letter language code for the language you want to use for the search.
searchType-NoParameter for fetching specific product information, such as ‘offers’, ‘specs’, or ‘reviews’.
start-NoThis parameter specifies the number of search results to skip and is used for pagination. For example, a value of 0 (default) indicates the first page of results, 10 refers to the second page, and 20 to the third page.

This parameter is applicable only when searchType=offers is specified. For reviews pagination use filter parameter.
filter-NoFilter parameter for refining search results. Supports various filters for offers and reviews. Multiple filters can be passed using a comma. The available filters are:

Offers filters:
- freeship:1: Show only products with free shipping.
- ucond:1: Show only used products.
- scoring:p: Sort by base price.
- scoring:tp: Sort by total price.
- scoring:cpd: Sort by current promotion deals (special offers).
- scoring:mrd: Sort by seller’s rating.

Reviews filters:
- rnum:{number}: Number of results (100 is max).