Google APIs · Shopping

Google Shopping API

Google's Shopping tab as JSON: products with their price, store, rating, reviews and delivery, and the tab's own filters. Then, for any product, every store that sells it and what it asks. Without sponsored products.

Products, then every store's offer

Search the tab with /v1/shopping. Each product carries a product_id: give it to /v1/shopping/product for the stores that sell it, with price, delivery and condition.

curl -G https://api.serpbit.com/v1/shopping \
  -H "Authorization: Bearer $SERPBIT_API_KEY" \
  --data-urlencode "q=running shoes"

{
  "shopping": [{
    "position": 1,
    "title": "Brooks Women's Glycerin Max 2",
    "product_id": "10327006607387456741",
    "source": "Fitness Sports",
    "price": "$149.95", "extracted_price": 149.95,
    "rating": 4.4, "reviews": 407
  }],
  "filters": [{ "type": "Price", "options": [
    { "text": "Under $100", "shoprs": "CAESFhIU…" }
  ] }]
}

What comes back

The same calls in Python and JavaScript

Search the tab, then ask for every store that sells the first product. The clients read the key from SERPBIT_API_KEY and retry a failed call without billing it twice. Any HTTP client works too.

# pip install serpbit
from serpbit import Serpbit

sb = Serpbit()  # reads SERPBIT_API_KEY
answer = sb.shopping("running shoes", gl="us")
for p in answer["shopping"]:
    print(p["position"], p["title"], p.get("source"), p.get("extracted_price"))

# every store that sells the first product with an id
first = next(p for p in answer["shopping"] if p.get("product_id"))
offers = sb.shopping_product(first["product_id"], more_stores=5)
for s in offers["sellers"]:
    print(s["name"], s.get("total_price"), s.get("currency"))
print("whole list:", offers["complete"])
// npm install serpbit
import Serpbit from "serpbit";

const sb = new Serpbit(); // reads SERPBIT_API_KEY
const answer = await sb.shopping("running shoes", { gl: "us" });
for (const p of answer.shopping) {
  console.log(p.position, p.title, p.source, p.extracted_price);
}

// every store that sells the first product with an id
const first = answer.shopping.find((p) => p.product_id);
const offers = await sb.shoppingProduct(first.product_id, { more_stores: 5 });
for (const s of offers.sellers) console.log(s.name, s.total_price, s.currency);
console.log("whole list:", offers.complete);

Response fields

The main fields of both answers. Most are left out when Google shows nothing for them. The reference has every parameter.

FieldTypeWhat it holds
The search
shopping[]arrayThe products, in the tab's order, without sponsored ones.
positionintegerThe product's place, counted on across pages.
titlestringThe product's name as the card shows it.
product_idstringGoogle's catalog id: what /v1/shopping/product takes. Absent for the odd product Google gives none.
product_linkstringThe product's own Google page, for the search's country and language.
sourcestringThe store the card names.
pricestringThe price as Google writes it: "$149.95".
extracted_pricenumberThe same price as a number.
old_price, extracted_old_pricestring, numberThe price before a sale, as written and as a number.
tagstringGoogle's badge on the card: "20% OFF".
deliverystringWhat the card says about delivery: "Free delivery".
rating, reviewsnumber, integerThe product's rating out of 5, and its number of reviews.
thumbnailstringThe product's picture.
categorystringThe heading of the row Google shows the product in: "Trail Running Shoes".
filters[]arrayThe tab's filters by group: type ("Price", "Brand"…) and options, each with text, q and shoprs.
pagination.next_startinteger or nullWhere the next page starts; null when Google has no more.
A product's stores
productobjectThe product: catalog_id, title, brand and images.
sellers[]arrayThe stores that sell it, in Google's order.
name, domainstringThe store's name, and its own domain, never Google's.
linkstringThe store's page for the product, with no Google redirect to follow.
price, currencynumber, stringThe store's price and its currency: "USD".
delivery_pricenumberWhat delivery costs; 0 when it is free, absent when Google does not say.
total_pricenumberThe price with delivery, when both are known.
conditionstring"Pre-owned" or "Refurbished"; absent on a new one.
store_rating, store_reviewsnumber, integerThe store's rating with Google, not the product's.
sellers_countintegerHow many stores sellers holds.
completebooleanWhether sellers is the product's whole list.
Both answers
meta.creditsintegerThe credits the call spent.
request_idstringThe call's id, to quote to support.

What it is used for

Track where a product's price lands

Search your product's name each day and keep position, source and extracted_price. You see which stores show it, in what order, and at what price.

Compare every store's offer

Give a product_id to /v1/shopping/product and sort the stores by total_price: the cheapest offer with delivery comes first.

Watch a category's sales

Search a category, such as "trail running shoes". old_price and tag show which products are on sale today, and by how much.

See prices by country

Ask the same search with another gl and hl, or a location. The product's stores are for US buyers, in English.

What 1,000 cost

2 credits a page of products, on the same key and credits as every other API. A call that fails is free, and so is the same call again within the hour.

PlanPrice a monthPages a monthPer 1,000
Free$0500free
Starter$2512,500$2.00
Developer$7550,000$1.50
Production$150150,000$1.00
Scale$350400,000$0.88

In US dollars before tax. All plans and credit packs are on the pricing page.

Questions

Are sponsored products included?

No. The answer is the Shopping tab's own listings, without the sponsored ones.

What does a product's offers call cost?

1 credit a product. A product Google does not know answers 404 and is free. The stores are for US buyers, in English.

Can I filter by price or brand?

Yes, with Google's own filters: every answer lists them in filters[], and an option's shoprs token sent with its q gives the filtered page.

Can I get more than one page at once?

Yes. pages=3 returns pages 1 to 3 in one call as one list; each page is billed.

Can an AI agent use it?

Yes. Our MCP server has it as the google_shopping and google_shopping_product tools: add https://api.serpbit.com/mcp as a connector in Claude, ChatGPT or Cursor and sign in.

Is Serpbit part of Google?

No. Serpbit is not affiliated with Google; Google is a trademark of Google LLC.

Start with 1,000 free credits.

Every month. No card.