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.

Google Shopping
GET/v1/google-shopping/search?q=iphone+15&gl=us&hl=en
{
  "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
  }
}
200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.

Sample data

What one call returns

A recorded run of search: the fields and shapes you will get, shortened to 3 items.

#positionintegercategorystringtitlestringsourcestringratingnumberreviewsintegerextensionsstring[]product_tokenstringrank_absoluteintegerproduct_idstringlinkurlpricestringextracted_pricenumberthumbnailstring
11Popular productsApple iPhone 15Walmart - Wireless Source4.745000[1 item]eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDI2MzYwNjAxNzQxMTU2NTk5MiIsImNhdGFsb2dpZCI6IjQwNjgzNTQwNDI3OTIyNjkzOCIsImhlYWRsaW5lT2ZmZXJEb2NpZCI6IjkwMTI3NzUzOTM1NjQzMzc3MzIiLCJpbWFnZURvY2lkIjoiMTE1NjE0NTY3NjY5MDA5Mzc3NTMiLCJyZHMiOiIiLCJncGNpZCI6IjY2…14263606017411565992https://www.google.com/shopping/product/4263606017411565992$393.73393.73data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
22Popular productsApple iPhone 15 128GBBest Buy4.494[1 item]eyJlaSI6InZaeUE0IiwicHJvZHVjdGlkIjoiNDM3OTAzMjYyMzYzODUyOTYzMSIsImNhdGFsb2dpZCI6Ijk0MDI2NTQ2OTYyNDQ5MzAwNzMiLCJoZWFkbGluZU9mZmVyRG9jaWQiOiIxODA3MzUyNjA3OTAxNzkzNzQ3MyIsImltYWdlRG9jaWQiOiI2MDIzMDEzODcyOTA3MTc0NDMiLCJyZHMiOiIiLCJncGNpZCI6IjQx…14379032623638529631https://www.google.com/shopping/product/4379032623638529631$441.00441data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
33Popular productsApple iPhone 15 - Black - 128GB (with 36 monthly payments + plan)T-Mobile4.745000——18345423428288821281https://www.google.com/shopping/product/8345423428288821281$17.50/mo17.5data: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

cURLshell
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.

EndpointRequired parametersReturnsCost
GET/v1/google-shopping/filters
q+3 optional
JSON2 credits
GET/v1/google-shopping/merchant-urls
none+7 optional
JSON2 credits
GET/v1/google-shopping/product
none+6 optional
JSON2 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: filters takes a q, with gl (us, gb or de), hl and shoprs.
  • One product: product and merchant-urls take a product_id, catalog_id, gpcid or headline_offer_docid, with gl (us or gb) and hl; merchant-urls also takes offer_ids. Search results carry a product_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.

Search enginesJSONRESTMCP

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 sellers

Watch which sellers show up for your product keywords

Use the Google Shopping API to watch which sellers show up for your product keywords

Compare ratings and review counts for competing products

Use the Google Shopping API to compare ratings and review counts for competing products

Pull 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.