APIs / Search engines / Google Shopping
1 credit per call4 endpoints14 datapointsChecked working 6 Dec 2026
Google Shopping API
Google Shopping API for product results with prices and ratings, product details, merchant links and filters as JSON. 4 endpoints, from 1 credit.
{
"search_parameters": {
"q": "iphone 15",
"gl": "us",
"hl": "en",
"start": 0,
"device": "desktop"
},
"shopping_results": [
{
"position": 1,
"category": "Popular products",
"title": "Apple iPhone 15",
"source": "Walmart - Wireless Source",
"rating": 4.7,
"reviews": 45000,
"extensions": [
" & more"
],
"product_token": "eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDI2MzYwNjAxNzQxMTU2NTk5MiIsImNhdGFsb2dpZCI6IjQwNjgzNTQwNDI3OTIyNjkzOCIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjkwMTI3NzUzOTM1NjQzMzc3MzIiLCJpbWFnZURvY2lkIjoiMTE1NjE0NTY3NjY5MDA5Mzc3NTMiLCJyZHMiOiIiLCJncGNpZCI6IjY2…",
"rank_absolute": 1,
"product_id": "4263606017411565992",
"link": "https://www.google.com/shopping/product/4263606017411565992",
"price": "$393.73",
"extracted_price": 393.73,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
},
{
"position": 2,
"category": "Popular products",
"title": "Apple iPhone 15 128GB",
"source": "Best Buy",
"rating": 4.4,
"reviews": 94,
"extensions": [
" & more"
],
"product_token": "eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDM3OTAzMjYyMzYzODUyOTYzMSIsImNhdGFsb2dpZCI6Ijk0MDI2NTQ2OTYyNDQ5MzAwNzMiLCJoZWFkbGluZU9mZmVyRG9jaWQiOiIxODA3MzUyNjA3OTAxNzkzNzQ3MyIsImltYWdlRG9jaWQiOiI2MDIzMDEzODcyOTA3MTc0NDMiLCJyZHMiOiIiLCJncGNpZCI6IjQx…",
"rank_absolute": 1,
"product_id": "4379032623638529631",
"link": "https://www.google.com/shopping/product/4379032623638529631",
"price": "$441.00",
"extracted_price": 441,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
},
{
"position": 3,
"category": "Popular products",
"title": "Apple iPhone 15 - Black - 128GB (with 36 monthly payments + plan)",
"source": "T-Mobile",
"rating": 4.7,
"reviews": 45000,
"rank_absolute": 1,
"product_id": "8345423428288821281",
"link": "https://www.google.com/shopping/product/8345423428288821281",
"price": "$17.50/mo",
"extracted_price": 17.5,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
}
],
"pagination": {
"current_page": 1,
"start": 0,
"next_start": 10
}
}Sample data
What one call returns
A recorded run of search: the fields and shapes you will get, shortened to 3 items.
| # | positioninteger | categorystring | titlestring | sourcestring | ratingnumber | reviewsinteger | extensionsstring[] | product_tokenstring | rank_absoluteinteger | product_idstring | linkurl | pricestring | extracted_pricenumber | thumbnailstring |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | Popular products | Apple iPhone 15 | Walmart - Wireless Source | 4.7 | 45000 | [1 item] | eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDI2MzYwNjAxNzQxMTU2NTk5MiIsImNhdGFsb2dpZCI6IjQwNjgzNTQwNDI3OTIyNjkzOCIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjkwMTI3NzUzOTM1NjQzMzc3MzIiLCJpbWFnZURvY2lkIjoiMTE1NjE0NTY3NjY5MDA5Mzc3NTMiLCJyZHMiOiIiLCJncGNpZCI6IjY2… | 1 | 4263606017411565992 | https://www.google.com/shopping/product/4263606017411565992 | $393.73 | 393.73 | data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== |
| 2 | 2 | Popular products | Apple iPhone 15 128GB | Best Buy | 4.4 | 94 | [1 item] | eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDM3OTAzMjYyMzYzODUyOTYzMSIsImNhdGFsb2dpZCI6Ijk0MDI2NTQ2OTYyNDQ5MzAwNzMiLCJoZWFkbGluZU9mZmVyRG9jaWQiOiIxODA3MzUyNjA3OTAxNzkzNzQ3MyIsImltYWdlRG9jaWQiOiI2MDIzMDEzODcyOTA3MTc0NDMiLCJyZHMiOiIiLCJncGNpZCI6IjQx… | 1 | 4379032623638529631 | https://www.google.com/shopping/product/4379032623638529631 | $441.00 | 441 | data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== |
| 3 | 3 | Popular products | Apple iPhone 15 - Black - 128GB (with 36 monthly payments + plan) | T-Mobile | 4.7 | 45000 | — | — | 1 | 8345423428288821281 | https://www.google.com/shopping/product/8345423428288821281 | $17.50/mo | 17.5 | data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== |
[
{
"position": 1,
"category": "Popular products",
"title": "Apple iPhone 15",
"source": "Walmart - Wireless Source",
"rating": 4.7,
"reviews": 45000,
"extensions": [
" & more"
],
"product_token": "eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDI2MzYwNjAxNzQxMTU2NTk5MiIsImNhdGFsb2dpZCI6IjQwNjgzNTQwNDI3OTIyNjkzOCIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjkwMTI3NzUzOTM1NjQzMzc3MzIiLCJpbWFnZURvY2lkIjoiMTE1NjE0NTY3NjY5MDA5Mzc3NTMiLCJyZHMiOiIiLCJncGNpZCI6IjY2…",
"rank_absolute": 1,
"product_id": "4263606017411565992",
"link": "https://www.google.com/shopping/product/4263606017411565992",
"price": "$393.73",
"extracted_price": 393.73,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
},
{
"position": 2,
"category": "Popular products",
"title": "Apple iPhone 15 128GB",
"source": "Best Buy",
"rating": 4.4,
"reviews": 94,
"extensions": [
" & more"
],
"product_token": "eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDM3OTAzMjYyMzYzODUyOTYzMSIsImNhdGFsb2dpZCI6Ijk0MDI2NTQ2OTYyNDQ5MzAwNzMiLCJoZWFkbGluZU9mZmVyRG9jaWQiOiIxODA3MzUyNjA3OTAxNzkzNzQ3MyIsImltYWdlRG9jaWQiOiI2MDIzMDEzODcyOTA3MTc0NDMiLCJyZHMiOiIiLCJncGNpZCI6IjQx…",
"rank_absolute": 1,
"product_id": "4379032623638529631",
"link": "https://www.google.com/shopping/product/4379032623638529631",
"price": "$441.00",
"extracted_price": 441,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
},
{
"position": 3,
"category": "Popular products",
"title": "Apple iPhone 15 - Black - 128GB (with 36 monthly payments + plan)",
"source": "T-Mobile",
"rating": 4.7,
"reviews": 45000,
"rank_absolute": 1,
"product_id": "8345423428288821281",
"link": "https://www.google.com/shopping/product/8345423428288821281",
"price": "$17.50/mo",
"extracted_price": 17.5,
"thumbnail": "data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
}
]position,category,title,source,rating,reviews,extensions,product_token,rank_absolute,product_id,link,price,extracted_price,thumbnail 1,Popular products,Apple iPhone 15,Walmart - Wireless Source,4.7,45000,"["" & more""]",eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDI2MzYwNjAxNzQxMTU2NTk5MiIsImNhdGFsb2dpZCI6IjQwNjgzNTQwNDI3OTIyNjkzOCIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjkwMTI3NzUzOTM1NjQzMzc3MzIiLCJpbWFnZURvY2lkIjoiMTE1NjE0NTY3NjY5MDA5Mzc3NTMiLCJyZHMiOiIiLCJncGNpZCI6IjY2…,1,4263606017411565992,https://www.google.com/shopping/product/4263606017411565992,$393.73,393.73,"data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" 2,Popular products,Apple iPhone 15 128GB,Best Buy,4.4,94,"["" & more""]",eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDM3OTAzMjYyMzYzODUyOTYzMSIsImNhdGFsb2dpZCI6Ijk0MDI2NTQ2OTYyNDQ5MzAwNzMiLCJoZWFkbGluZU9mZmVyRG9jaWQiOiIxODA3MzUyNjA3OTAxNzkzNzQ3MyIsImltYWdlRG9jaWQiOiI2MDIzMDEzODcyOTA3MTc0NDMiLCJyZHMiOiIiLCJncGNpZCI6IjQx…,1,4379032623638529631,https://www.google.com/shopping/product/4379032623638529631,$441.00,441,"data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" 3,Popular products,Apple iPhone 15 - Black - 128GB (with 36 monthly payments + plan),T-Mobile,4.7,45000,,,1,8345423428288821281,https://www.google.com/shopping/product/8345423428288821281,$17.50/mo,17.5,"data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
Recorded from our API · 3 items shown · 14 datapoints per itemGET /v1/google-shopping/search?q=iphone+15&gl=us&hl=en
14 datapoints
Identity
- categorystring
- titlestring
- product_idstring
Contact
- linkurl
Reputation
- ratingnumber
- reviewsinteger
Price
- pricestring
- extracted_pricenumber
Other
- positioninteger
- sourcestring
- extensionsstring[]
- product_tokenstring
- rank_absoluteinteger
- thumbnailstring
Playground
Run this API
curl "https://api.perceptlayer.com/v1/google-shopping/search?q=iphone+15&gl=us&hl=en" \
-H "X-API-Key: $API_KEY"Google Shopping · 4 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/google-shopping/filters | q+3 optional | JSON | 2 credits |
GET/v1/google-shopping/merchant-urls | none+7 optional | JSON | 2 credits |
GET/v1/google-shopping/product | none+6 optional | JSON | 2 credits |
GET/v1/google-shopping/search | q+8 optional | search_parametersshopping_resultspagination | 1 credit |
Overview
About the Google Shopping API
What you can get
The Google Shopping API returns Google Shopping results as JSON through 4 endpoints. search takes a query in q, with gl, hl, location, uule, start, device (desktop, mobile or tablet), small_business and shoprs.
The recorded call for "iphone 15" in the US returns shopping_results, each with position, title, source, price and extracted_price, rating, reviews, category, product_id, product_token, link and thumbnail. It also returns pagination with current_page, start and next_start.
- Filters:
filterstakes aq, withgl(us, gb or de),hlandshoprs. - One product:
productandmerchant-urlstake aproduct_id,catalog_id,gpcidorheadline_offer_docid, withgl(us or gb) andhl;merchant-urlsalso takesoffer_ids. Search results carry aproduct_id, the same name these endpoints take.
How a call works
One call per query: GET /v1/google-shopping/search?q=iphone+15&gl=us&hl=en with your key in the X-API-Key header. The recorded call returned next_start 10; the endpoint takes a start parameter. search costs 1 credit, product and merchant-urls cost 5, and filters costs 9; failed calls cost nothing.
More search engines APIs
Use cases
Track prices for a product across sellers
Use the Google Shopping API to track prices for a product across sellersWatch which sellers show up for your product keywords
Use the Google Shopping API to watch which sellers show up for your product keywordsCompare ratings and review counts for competing products
Use the Google Shopping API to compare ratings and review counts for competing productsPull a product's details and merchant links by `product_id`
Use the Google Shopping API to pull a product's details and merchant links by `product_id`FAQ
Questions
Do I need a Google Merchant account?
No. You call this Google Shopping API with your Perceptlayer key in the `X-API-Key` header, and it returns public results for any query, not only your own products.
How much does the Google Shopping API cost?
A `search` call costs one credit, `product` and `merchant-urls` cost five, and `filters` costs nine. New accounts get free credits to start, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side. `price` is the displayed string and `extracted_price` is the number.
Is this the official Google Shopping API?
No. Perceptlayer is an independent service and is not affiliated with Google Shopping. It returns Google Shopping data as JSON with a Perceptlayer key, so there is no Google Shopping developer account, app review or partner approval to get first. It only reads data: if Google Shopping has an official API and you need to act on your own Google Shopping account, such as posting, managing orders or reading private data, use that one.
Should I build a Google Shopping scraper instead?
You can, but a Google Shopping scraper is code you maintain: page changes break it, requests get blocked, and Google Shopping's terms govern how you collect data. The Google Shopping API gives you 4 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the Google Shopping API with 100 free credits
No credit card. Failed calls are never billed.