This guide shows how to scrape Google Shopping with Python: call one endpoint, get products as clean JSON with title, price, store, and rating, then save them to a CSV file. No browser, no HTML parsing.
The hard part of scraping Google Shopping yourself is driving a browser, dodging blocks, and parsing a product grid that keeps changing. Instead you send one HTTP request to a search endpoint and get clean JSON back. First a quick test with curl:
Then the same call in Python with the requests library. Install it with pip install requests, drop in a key, and run. The products live under the shopping key in the response:
Here are the first two products that came back, shown as CSV so they drop straight into Sheets or a spreadsheet:
Change q to any product search you would type into the Shopping box, like 4k monitor or office chair.
One call returns a full page of products in the order Google ranks them. To collect more, pass a page number and loop, gathering each page into one list:
Each product comes back with its title, price, the store selling it, a star rating, the number of ratings, a stable productId, and its rank via position. The first product as CSV, ready for Sheets or a database:
Or the same record as JSON, exactly as the API returns it:
Price is a formatted string with its currency symbol, so store it as text. Some listings leave condition, link, or imageUrl empty; read them with item.get("link", "") so a missing field never crashes your loop.
You can build a Shopping scraper with a headless browser and a parser, and plenty of tutorials show how. The trade is maintenance. Here is the difference in practice.
| Writing it yourself | CrustAPI | |
|---|---|---|
| Setup | Install a headless browser, handle blocks and grid changes | One GET request, no browser |
| Output | Parse the HTML yourself; fields break when the layout changes | Clean JSON from the API, or the same rows as CSV |
| Maintenance | Fix the scraper each time the page changes | We keep it working |
| Free tier | Free, but you pay in time and blocked requests | 3,000 searches / month, no card |
| Cost model | Server, proxy, and developer time | One credit per successful search, however many products come back; empty searches free |
| Storing the data | Yours to manage | No storage limits. Export to CSV or a database |
Prepaid packs, and credits never expire: 25k for $49 · 100k for $149 · 500k for $549 · 2.5M for $1,999 · up to 250M, all self-serve, ex-tax. A search costs one credit no matter how many products come back; a search that returns none costs nothing.
Because the response is plain JSON, Python's built-in csv module writes it to a file in a few lines. No extra libraries. This reads every product from the search and writes one row each:
Open products.csv in Sheets or Excel and you have a finished price list. Swap the query, run it again, and append to build a bigger catalog.
Related: Google Shopping API · Google Shopping Scraper · Google Search API · Scrape Google News with Python · API docs
When a different tool fits better: listing your own products, managing inventory, or a contract with a formal SLA are Google Merchant products, not scraping. This endpoint returns the public product results anyone sees in the Shopping tab, which is what most price research and market work needs, but it is not the official Content API for Shopping.
3,000 free credits covers a real search. Run one query and look at the JSON that comes back.
Get 3,000 free credits