SerpBase
Back to Blog

Google Shopping API: Shopping Tab Offers, Prices and Stores as JSON

POST a product name to /google/shopping to get Google Shopping's offers as JSON. Tested: 50 offers from 29 stores, with the price-format catch to know.

December 3, 2026
By SerpBase Team2 min read

Short answer: POST a product name to /google/shopping and you get Google Shopping's product grid as JSON — title, price, merchant, rating and delivery text for each offer. On 2 December 2026 one request returned 50 offers from 29 different stores.

This is the Shopping tab itself. If you only need the few product cards that appear on a normal results page, read shopping_results from /google/search instead (see the Google Shopping results guide).

The request

curl -X POST 'https://api.serpbase.dev/google/shopping' \
  -H 'Content-Type: application/json' \
  -H 'X-API-Key: YOUR_API_KEY' \
  -d '{"query":"espresso machine"}'

What came back

Two tests on 2 December 2026:

queryoffersstoresoffers with a rating
espresso machine502948
noise cancelling headphones503048

The first offers for "espresso machine", shortened:

{
  "status": 0,
  "credits_charged": 2,
  "query": "espresso machine",
  "search_type": "shopping",
  "offers": [
    {
      "rank": 1,
      "title": "CASABREWS 5418 Basic 20-Bar Espresso Machine with Steam Wand",
      "price": "$98.00$139",
      "merchant": "Walmart",
      "rating": 4.3,
      "delivery": "Free delivery by Fri",
      "link": "https://www.google.com/search?ibp=oshop&q=CASABREWS+5418+Basic+20-Bar+..."
    },
    {
      "rank": 5,
      "title": "Fellow Series 1 Espresso Machine",
      "price": "$1,599.95",
      "merchant": "Fellow",
      "rating": 4.4,
      "delivery": "Free delivery by Mon"
    }
  ]
}

The same list is also returned as shopping and shopping_results, so older client code that reads either name keeps working. Most offers also carry shipping (42 of 50); only 8 of 50 had a thumbnail.

Python: cheapest offer per store

import re, requests

r = requests.post(
    "https://api.serpbase.dev/google/shopping",
    headers={"X-API-Key": "YOUR_API_KEY"},
    json={"query": "espresso machine"},
    timeout=60,
).json()
if r["status"] != 0:
    raise SystemExit(r.get("error"))

def first_amount(text):
    m = re.search(r"[\d,]+(?:\.\d+)?", text or "")
    return float(m.group().replace(",", "")) if m else None

best = {}
for o in r["offers"]:
    p = first_amount(o.get("price"))
    if p is not None and (o["merchant"] not in best or p < best[o["merchant"]][0]):
        best[o["merchant"]] = (p, o["title"])
for store, (p, title) in sorted(best.items(), key=lambda kv: kv[1][0])[:10]:
    print(f"{p:>9.2f}  {store:<20} {title[:60]}")

Things that trip people up

  • Sale prices come as one string. In our tests, 26 of 50 espresso prices and 27 of 50 headphone prices held two amounts, the current price followed by the earlier one: "$98.00$139", "$35.99Usually $40". Take the first amount as the price you pay.
  • The link opens Google's product view, not the store page. Use merchant to tell stores apart.
  • It is a snapshot. Prices and delivery dates change during the day; store the date with each price if you track them.
  • Prices are text with a currency sign. Parse them yourself and keep the original string.

Cost and docs

Each Shopping request is 2 credits. Failed requests are not charged, and new accounts get 500 free credits.