Price alert Hurry up! Google SERP API from $0.03/1K calls — prices likely to rise 10× from 1 January 2027.Hurry up! Google SERP from $0.03/1K — likely 10× from 1 Jan 2027Google SERP $0.03/1K · likely 10× from 1 Jan$0.03/1K · likely 10× in Jan Deposit Now

How to Use Google Shopping Data for Price Monitoring

By Anurag Pathak · · 18 min read

Google Shopping data lets you watch a product’s price over time and across countries by saving each day’s answer and comparing it with the last. Keep each product’s price, store and link, and alert when a price falls.

Short answer: To watch a product, run its search once a day, log every listed product whose title matches (date, country, store, link, numeric price) and alert when a product is 5 percent or more below its last logged price. For the lowest price in a list, sort the day’s rows by price. For sets and packs, divide by the count in the title. For several countries, keep each country’s currency and compare only where the currency matches. A watchlist of 200 products in 3 countries, checked daily, is 18,000 calls a month: $6.30 at $0.35 per 1K API calls at the default rate.

A Google Shopping search is different from watching one store’s page: one call returns a list of priced products for a query, the same query can answer differently in each country, and the title often carries the pack size. Those three facts decide how a monitor is built.

Two earlier posts cover the loop itself: the shopping price monitoring playbook and price drop alerts with a shopping API. This post covers what is specific to Google Shopping data: the lowest price in a list, price per unit and several countries.

Every output below comes from live calls to the Google Shopping API made in production on 2 December 2026 at about 14:00 UTC, for iphone 16 case and kitchen knife set (country=us), plus one query of nonsense words to see an empty answer. The three answers are saved in the evidence folder, and the code runs on them.

What does Google Shopping data tell you about price?

It tells you the price listed for a product, for one query in one country at the moment you asked. It is a snapshot, so a price history exists only because you save one every day.

That is enough to watch a product over time, find the lowest and highest price in today’s list, put a set and a single item on the same footing with a price per unit, and read how a product is priced in different countries. It cannot tell you what a store charges at checkout or why a price moved.

What does one call give you?

One call returns the listed products for one query in one country. Send your key in the X-API-Key header and the query as q (required), with country (default us), num from 1 to 100, a two-letter language and format set to full or simple. The answer holds success, query, type, country, results (the shopping list and totalResults) and meta. A field is null when the listing does not show it. This excerpt of product 16 in the live iphone 16 case answer shows the fields a monitor reads; the dots mark fields left out:

{
  "position": 16,
  "title": "iPhone 16 Silicone Case with MagSafe – Black",
  "link": "https://www.apple.com/shop/product/myy13zm/a/iphone-16-silicone-case-with-magsafe-black",
  "source": "Apple",
  "price": "$49.00",
  "currency": "USD",
  ...
  "shipping": null,
  "availability": null,
  "extracted_price": 49,
  "product_id": null,
  ...
}
The fields a price monitor uses
FieldWhat it isUse in a monitor
extracted_priceThe price as a numberCompare and store this one
price, currencyThe price as shown, and its currency codeKeep the code with every price
sourceThe storeKeep it in each row, so you know where a price was listed
titleThe product titleFilter by phrase; read a pack or piece count
link, product_idThe product page; an id when the listing has oneThe key of a product: the id, else the link and title
shipping, delivery, availability, condition, product_ratingExtra listing detailsUse when present; skip when null

The code keys a product on product_id when the listing has one and on the link plus the title otherwise. The title matters: in the live knife-set answer all six products share one link, so the link alone would merge them into one. The code also skips a product with no numeric price. An answer can hold fewer products than num; the code loops over what came back, and an empty list is an ordinary answer.

How do you build a daily price log?

Describe each product as a watch: a name, the query, the countries to ask and the words every matching title must contain. The module calls each query once per country, keeps the products that show a numeric price and match the words, and appends them to a CSV file.

The words matter. The iphone 16 case answer holds 16 products, but only four are iPhone 16 cases; the rest are other accessories such as wallet stands, grips and pouches. So the watch asks for titles containing both iphone 16 and case. The kitchen knife set watch asks for no words: all 6 products in that answer are knife sets, and a filter on the word knife would have dropped 3 of them, because their titles say Knives or only Set.

Two choices are deliberate. A failed call writes nothing, because a missing row is honest and a price of 0 would read as a collapse. And a second run on the same day skips any product that already has rows today, so a restarted job does not pay twice.

import csv
import os
import re
import time
from datetime import date

import requests

API_KEY = os.environ.get("SERPENT_API_KEY", "sk_live_your_api_key")
URL = "https://apiserpent.com/api/google/shopping"
LOG = "price_log.csv"
FIELDS = ["date", "watch", "country", "key", "store", "title", "price", "currency", "position"]
DROP_PCT = 5.0  # alert when a product is at least this many percent below its last logged price

WATCHES = [
    {"name": "iphone-16-case", "q": "iphone 16 case", "countries": ["us"], "must": ["iphone 16", "case"]},
    {"name": "knife-set", "q": "kitchen knife set", "countries": ["us"], "must": []},  # no phrase: keep every priced product
]
PACK = re.compile(r"\b(\d+)[- ]?(?:pc|pcs|piece|pieces|pack|pk|count|ct)\b", re.I)


def fetch(q, country, num=20):
    """One call: the listed products for one query in one country ([] when there are none)."""
    r = requests.get(URL, params={"q": q, "country": country, "num": num},
                     headers={"X-API-Key": API_KEY}, timeout=60)
    r.raise_for_status()
    return (r.json().get("results") or {}).get("shopping") or []


def offers(items, must):
    """Products with a numeric price whose title holds every wanted phrase. Other fields may be null."""
    out = []
    for c in items:
        price = c.get("extracted_price")
        title = (c.get("title") or "").lower()
        if isinstance(price, (int, float)) and all(w in title for w in must):
            out.append(c)
    return out


def read_log():
    if not os.path.exists(LOG):
        return []
    with open(LOG, newline="", encoding="utf-8") as f:
        rows = list(csv.DictReader(f))
    for r in rows:
        r["price"] = float(r["price"])
    return rows


def log_day(watches, day=None):
    """Append today's matching products to the log. A failed call writes nothing: no row beats a wrong 0."""
    day = day or date.today().isoformat()
    done = {(r["date"], r["watch"], r["country"]) for r in read_log()}
    new = []
    for w in watches:
        for country in w["countries"]:
            if (day, w["name"], country) in done:
                continue  # this product already has rows today: a second run skips it
            try:
                items = fetch(w["q"], country)
            except requests.RequestException as e:
                print("skipped", w["name"], country, e)
                continue
            for c in offers(items, w["must"]):
                new.append({"date": day, "watch": w["name"], "country": country,
                            "key": c.get("product_id") or f"{c.get('link')}|{c.get('title')}",
                            "store": c.get("source") or "", "title": c.get("title") or "",
                            "price": c["extracted_price"], "currency": c.get("currency") or "",
                            "position": c.get("position")})
            time.sleep(0.5)
    if new:
        fresh = not os.path.exists(LOG)
        with open(LOG, "a", newline="", encoding="utf-8") as f:
            out = csv.DictWriter(f, fieldnames=FIELDS)
            if fresh:
                out.writeheader()
            out.writerows(new)
    return new


def report(day):
    """One line per watch and country: products logged today and the lowest price."""
    rows = [r for r in read_log() if r["date"] == day]
    for watch, country in sorted({(r["watch"], r["country"]) for r in rows}):
        mine = [r for r in rows if (r["watch"], r["country"]) == (watch, country)]
        low = min(mine, key=lambda r: r["price"])
        print(f"{watch} {country}: {len(mine)} products logged, lowest {low['price']:.2f} {low['currency']} ({low['title'][:60]})")

I ran the file unchanged against a stand-in that replays the live answers. On day one its report() prints:

iphone-16-case us: 4 products logged, lowest 49.00 USD (iPhone 16 Silicone Case with MagSafe – Ultramarine)
knife-set us: 6 products logged, lowest 149.99 USD (Best Value Set: Ginsu Gourmet Chikara Series 8-Piece Set)

That is 4 of the 16 phone-case products kept and all 6 knife-set products. The query of nonsense words (xqzvbn plorf wuggle 9981) came back with 0 products, and the module wrote no rows for it. Schedule python price_watch.py once a day at the same hour. In Node, keep the same three parts: the title filter, the product key and the rule that a failed call writes no row.

How do you turn the log into drop alerts?

Compare each product with its own last logged price and alert when it is at least a set percentage lower. alerts() uses 5 percent by default and also prints each watch’s lowest price of the day, marking it when it is the lowest in the log. Tracking each product, not only the cheapest, stops a different cheaper product entering the list from looking like a drop.

Pick the threshold from your own log: a small one fires on every rounding change and a large one misses a real sale. For where to send the message, see the alert architecture post.

To test the rule I made day-two copies of the live answers and lowered three prices by hand: the black silicone case from $49.00 to $44.00 (10.2 percent), the clear case from $49.00 to $47.00 (4.1 percent) and the 8-piece Ginsu Gourmet Chikara set from $149.99 to $139.99 (6.7 percent). These are test inputs, not real price moves. Day two prints:

DROP iphone-16-case us: iPhone 16 Silicone Case with MagSafe – Black at Apple, 49.00 -> 44.00 USD (-10.2%)
LOWEST iphone-16-case us: 44.00 USD at Apple (lowest in the log)
DROP knife-set us: Best Value Set: Ginsu Gourmet Chikara Series 8-P at Food Network, 149.99 -> 139.99 USD (-6.7%)
LOWEST knife-set us: 139.99 USD at Food Network (lowest in the log)

The clear case did not fire, because 4.1 percent is under the threshold, and an unchanged day three printed only the two LOWEST lines. That tests the function. It says nothing about how often real prices move.

How do you find the lowest and highest price in a list?

Sort the day’s rows by price. cheapest_first() keeps the latest row of each product and returns them cheapest first, so the first row is the lowest price, the last is the highest, and the gap between them is how wide the list is. Match the title words first, so you compare like with like.

def cheapest_first(rows):
    """One row per product (its latest row), cheapest first: the first is the lowest price, the last the highest."""
    latest = {}
    for r in rows:
        if r["key"] not in latest or r["date"] >= latest[r["key"]]["date"]:
            latest[r["key"]] = r
    return sorted(latest.values(), key=lambda r: r["price"])


def units(title):
    """Pack or piece count named in a title (2 Pack, 11-pc, 18-Piece); 1 when it names none."""
    m = PACK.search(title or "")
    return int(m.group(1)) if m else 1


def per_unit(row):
    return row["price"] / units(row["title"])

On the live knife-set answer it returns:

lowest   149.99  Best Value Set: Ginsu Gourmet Chikara Series 8-Piece Set
highest  665.00  Best Overall: Wusthof Classic 9-Piece Knife Block Set
6 products between 149.99 and 665.00
hand-made list, one product listed on two days: the latest row of each product was kept, cheapest first

I also checked it on a hand-made test list where one product appears on two days: only its latest row was kept, and the rows came back in price order.

How do you compare price per unit?

Read the count from the title and divide. units() looks for a number followed by pack, pc, piece, count or similar, such as 2 Pack or 11-pc, and returns 1 when it finds none. In the iphone 16 case answer only one title names a count: the Tech21 wrist lanyard at $19.95 for 2 Pack is $9.975 each.

The knife sets show why it is worth doing. Four of the 6 titles name a piece count. The 8-piece Ginsu Gourmet Chikara set at $149.99 is $18.75 a piece and the 15-piece Henckels Classic Precision set at $299.95 is $20.00. The 5-piece Shun Classic starter set at $295.95 is $59.19 a piece, and the 9-piece Wusthof Classic set at $665.00 is $73.89. The Shun and Henckels sets differ by only $4.00 in price, yet the Henckels set has three times the pieces. The other two titles name no count, so units() returns 1 for them and the printed list leaves them out, with their prices. The printed list:

  18.75 per piece   149.99 for  8  Best Value Set: Ginsu Gourmet Chikara Series 8-Piece Set
  20.00 per piece   299.95 for 15  Best Self-Sharpening Set: Henckels Classic Precision Self-Sh
  59.19 per piece   295.95 for  5  Best Asian Knife Set: Shun Classic 5-Piece Starter Block Set
  73.89 per piece   665.00 for  9  Best Overall: Wusthof Classic 9-Piece Knife Block Set
4 of 6 titles name a count
no count in the title: 279.00  Best Basic Set: Misen Essentials Knife Set
no count in the title: 355.00  Best Design Statement: Material The Knives + Stand

Treat the result as a first sort. What a listing counts as a piece differs from set to set, so a low price per piece is a prompt to look at the set, not a verdict, and a title that names no count falls back to 1.

How do you compare the same product in several countries?

Send the same query with each market’s country code, log each country’s products under that code and compare only prices in the same currency. Put the countries in the watch, for example ["us", "gb", "de", "fr"]; each is a separate call.

compare_countries() prints each country’s lowest price in its own currency. Where all countries share a currency, such as the euro in Germany and France, it adds the gap to the cheapest; where they do not, it says the currencies differ and leaves the conversion to you. I left conversion out on purpose: the rate and its date change the answer, so choose them and write them down.

def alerts(day, pct=DROP_PCT):
    """Products that fell pct percent or more since their last logged price, and each watch's lowest price."""
    groups = {}
    for r in read_log():
        groups.setdefault((r["watch"], r["country"]), []).append(r)
    lines = []
    for (watch, country), rows in sorted(groups.items()):
        today = [r for r in rows if r["date"] == day]
        before = sorted((r for r in rows if r["date"] < day), key=lambda r: r["date"])
        if not today or not before:
            continue
        if len({r["currency"] for r in rows}) > 1:
            lines.append(f"{watch} {country}: more than one currency in the log, no comparison")
            continue
        last = {r["key"]: r for r in before}  # the latest earlier row per product
        for r in today:
            p = last.get(r["key"])
            if p and r["price"] <= p["price"] * (1 - pct / 100):
                drop = (p["price"] - r["price"]) / p["price"] * 100
                lines.append(f"DROP {watch} {country}: {r['title'][:48]} at {r['store']}, "
                             f"{p['price']:.2f} -> {r['price']:.2f} {r['currency']} (-{drop:.1f}%)")
        low = min(today, key=lambda r: r["price"])
        low_before = min(before, key=lambda r: r["price"])
        flag = " (lowest in the log)" if low["price"] < low_before["price"] else ""
        lines.append(f"LOWEST {watch} {country}: {low['price']:.2f} {low['currency']} at {low['store']}{flag}")
    return lines


def compare_countries(day, watch):
    """Each country's lowest price today; the gap is shown only where the currency is the same."""
    low = {}
    for r in read_log():
        if r["date"] == day and r["watch"] == watch:
            if r["country"] not in low or r["price"] < low[r["country"]]["price"]:
                low[r["country"]] = r
    currencies = {r["currency"] for r in low.values()}
    ordered = sorted(low.values(), key=lambda r: (r["price"] if len(currencies) == 1 else 0, r["country"]))
    lines = []
    for r in ordered:
        gap = ""
        if len(currencies) == 1 and r is not ordered[0]:
            gap = f"  +{r['price'] - ordered[0]['price']:.2f} vs {ordered[0]['country']}"
        lines.append(f"{r['country']}  {r['price']:.2f} {r['currency']}  {r['store']}{gap}")
    if len(currencies) > 1:
        lines.append("currencies differ: convert at a rate you choose before comparing")
    return lines


if __name__ == "__main__":
    today = date.today().isoformat()
    log_day(WATCHES, today)
    report(today)
    for line in alerts(today):
        print(line)

A price gap between countries need not be a bargain. Google’s Merchant Center help, which I read on 2 December 2026, says tax inclusion policies can differ across countries, for example that in Germany tax is included in product prices and in Canada it is not. An answer does not say whether a price includes tax, so compare each country with itself over time before you compare countries with each other.

I tested the country code on made-up answers, not real prices: the live phone-case answer with prices changed and the currency set to GBP for gb and EUR for de and fr. It printed the de to fr gap in euros and, with all four countries, a line saying the currencies differ.

What can a Shopping search not tell you?

A search returns the products listed for that query and country at that time, and that sets the limits of everything above.

What does a watchlist cost?

Each product query in each country is one call a day, so a month is queries times countries times 30 days. One call is one charge at the Shopping rate, $0.35 per 1K API calls at the default rate. An answer with no products is charged too, and errors and timeouts on our side are free. New accounts get 10 free API calls shared across services. The table is arithmetic on the rate, not a bill.

Monthly cost of a daily watchlist at the default rate, 30 runs
Products watched1 country (calls)1 country (cost)3 countries (calls)3 countries (cost)
501,500$0.5254,500$1.575
2006,000$2.1018,000$6.30
1,00030,000$10.5090,000$31.50

The 200-product, 3-country row is 18,000 calls: $6.30 at the default rate, and $3.24 at the lowest rate, $0.18 per 1K API calls at the Enterprise Plus tier ($1,250 deposit). For how other sellers price the same calls, see What Is the Cheapest Google Shopping API?, which sets them side by side.

Which setup should you pick?

Start with one watch per product per market and the 5 percent product rule, add cheapest_first() when you want the lowest and highest price in a list and the price per unit for packs and sets, and compare countries only where the currency matches. The request code in Python and Node is in Get Google Shopping Product Data in Python and Node.

How we checked this

What I did. I ran the Python module above unchanged against a stand-in for the network call that replays the three live answers (calls made in production on 2 December 2026 at about 14:00 UTC) for the exact query and country they hold and refuses everything else, checking the base URL, the X-API-Key header and the parameter names. I syntax-checked the code as it appears on this page and compared it with the file I ran. The cost figures are arithmetic on the rate, and the per-piece prices are the live prices divided by the counts in the titles. I read Google’s Merchant Center help page on 2 December 2026. Not verified: prices across countries, because that code was tested on hand-made answers only, and how often real prices move, so the 5 percent threshold is a starting point.

Start your price log

Serpent’s Google Shopping API is $0.35 per 1K API calls at the default rate — pay as you go, no subscription. New accounts get 10 free API calls shared across services.

Get Your API Key

Explore: Google Shopping API · Pricing

FAQ

Can I compare the same product's price in several countries?

Yes. Send the same query with each market's two-letter country code and log each country under its own code. Compare countries only where the currency matches, such as Germany and France in euros, and convert the rest at a rate you choose. Google says tax inclusion differs by country, so a gap can include tax.

How much does it cost to monitor 200 products in 3 countries every day?

That is 600 calls a day and 18,000 in a 30-day month. At $0.35 per 1K API calls at the default rate it is $6.30 a month, and at $0.18 per 1K API calls, the lowest rate, at the Enterprise Plus tier ($1,250 deposit), it is $3.24. An answer with no products is charged too, and errors and timeouts on our side are free.

What if a product is missing from today's answer?

Treat it as not seen today. A search returns the products listed for that query and country at that time, so a product can be absent one day and back the next. Write no price for it, leave yesterday's row alone, and alert only when you have two real prices to compare.

Is the price in an answer the price I would pay?

It is the price listed with the product. Shipping, delivery and availability are separate fields, null when the listing does not show them, coupons are not in it and tax inclusion differs by country. Use it to watch change and rank products by price, and check the product page before you quote it.

How do I compare a 5-piece set with a 15-piece set?

Divide each price by the count in the title. In the live knife-set answer the 5-piece Shun Classic set is $295.95, which is $59.19 a piece, and the 15-piece Henckels Classic Precision set is $299.95, which is $20.00 a piece. Counts are read from titles and listings count pieces differently, so use the result as a first sort.