Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions api-reference/google/google-shopping/offers.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "Seller offers"
description: "Get the seller offers Google Shopping lists for one product, by catalog ID or barcode."
openapi: "GET /v1/google/shopping/offers"
---

Returns the sellers Google Shopping lists for one product: one entry per merchant `source`, each with its own `price` and `link`. Pass exactly one of `catalog_id` or `barcode`.

A call costs **25 credits**, whichever identifier you pass.

## Identifying the product

- **`catalog_id`**: Google's Shopping catalog identifier. A [Shopping search](/api-reference/google/google-shopping/search-products) result carries it as `catalog_id` when Google ships it on that page, and a Google Shopping product URL carries it as `prds=catalogid:<id>`. The sellers are read from Google's product page, so there is no lookup step and no doubt about which product you get. Up to 60 offers come back, and `total_offers` says how many sellers Google lists.
- **`barcode`**: a GTIN-8, UPC-A, EAN-13 or GTIN-14. Google Shopping does not match raw barcodes, so the barcode is first resolved to a product through a Google web search. The match is returned as `resolved_query`, and the offers come from a Shopping search for it.

```bash cURL
curl "https://scrapebadger.com/v1/google/shopping/offers?catalog_id=762120719996356571&gl=de&hl=de" \
-H "x-api-key: YOUR_API_KEY"
```

## Offer fields

| Field | Description |
|---|---|
| `offers[].source` | The merchant name, for example `Walmart` or `Best Buy`. |
| `offers[].price` | `value`, `currency` and `extracted` (the price as Google shows it). |
| `offers[].link` | The merchant's product page URL, resolved from Google's redirect. If Google does not release the destination in time, it is Google's redirect (`https://www.google.com/goto?url=…`), which still opens the merchant page in a browser. |
| `offers[].delivery` | Shipping line as Google shows it. |
| `offers[].extensions` | Availability, shipping and returns lines. |

For a product's full detail (description, specs, images, variants) together with its merchant offers, use [Immersive product detail](/api-reference/google/google-products/immersive-product-detail) with `include_offers=true`. The [Shopping offers guide](/google/shopping-offers) has more examples.
5 changes: 0 additions & 5 deletions api-reference/google/google-shopping/product-details.mdx

This file was deleted.

This file was deleted.

12 changes: 6 additions & 6 deletions cli/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,12 @@ scrapebadger google jobs "software engineer" \ --location "San Francisco, CA" --
```bash
scrapebadger google shopping <query> # Product search
scrapebadger google shopping --min-price 500 --max-price 2000 --sort-by price_low
scrapebadger google shopping-product <product_id> # Product detail + sellers
scrapebadger google shopping-click "<product title>" --source <merchant>
scrapebadger google shopping-offers --catalog-id <catalog_id> # Seller offers for one product
scrapebadger google shopping-offers <barcode> --gl us # Seller offers by GTIN/UPC/EAN
scrapebadger google product-detail <gpcid> -q <query> --include-offers # Full detail + merchant offers
```

<Tip> The `shopping-click` command resolves the real merchant URL for a product by title. Google has removed direct merchant links from organic Shopping HTML; this command uses an "I'm Feeling Lucky" redirect scoped to the source merchant (via `site:` operator) to materialize the product page URL. Costs **1 credit per call**.
</Tip> ### Patents, Scholar, Finance, Products
### Patents, Scholar, Finance, Products

```bash
scrapebadger google patents <query> --inventor Smith --assignee Google
Expand All @@ -141,8 +141,8 @@ scrapebadger google product-detail <product_id> # Immersive product
```bash
# Export top 20 SERP results as CSV
scrapebadger google search "python 3.13" --num 20 -o csv > results.csv # Pipe to jq
scrapebadger google shopping "laptop" | jq '.results[].title' # Full shopping search → click enrichment workflow
scrapebadger google shopping "laptop" | \ jq -r '.results[0] | [.title,.source] | @tsv' | \ while IFS=$'\t' read -r title source; do scrapebadger google shopping-click "$title" --source "$source" done
scrapebadger google shopping "laptop" | jq '.results[].title' # Shopping search → seller offers for the first result
scrapebadger google shopping "laptop" | \ jq -r '.results[0].catalog_id // empty' | \ xargs -I{} scrapebadger google shopping-offers --catalog-id {}
``` ---

## Vinted Commands All Vinted commands are under `scrapebadger vinted`.
Expand Down
6 changes: 3 additions & 3 deletions cli/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ scrapebadger twitter search "AI agents" --output table
# Google web search
scrapebadger google search "python 3.13" --gl us --num 20

# Google shopping + per-product merchant URL enrichment
# Google shopping search + seller offers for a product
scrapebadger google shopping "laptop" --max-price 2000
scrapebadger google shopping-click "Lenovo IdeaPad 5" --source "Walmart"
scrapebadger google shopping-offers --catalog-id 762120719996356571 --gl de

# Search Vinted in Germany
scrapebadger vinted search "nike shoes" --market de
Expand Down Expand Up @@ -89,7 +89,7 @@ scrapebadger twitter trends -o csv -f name,domain_context
|-------|----------|
| **Account** | `auth`, `credits`, `logout` |
| **Twitter** | `user`, `tweets`, `tweet`, `search`, `followers`, `following`, `mentions`, `trends`, `replies`, `quotes`, `retweeters`, `community`, `list`, `space` + more |
| **Google** | `search`, `maps-search`, `maps-place`, `maps-reviews`, `maps-photos`, `maps-posts`, `news`, `news-topics`, `news-trending`, `hotels`, `hotels-details`, `trends`, `trends-regions`, `trends-related`, `trends-trending`, `jobs`, `shopping`, `shopping-product`, `shopping-click`, `patents`, `patent`, `scholar`, `autocomplete`, `images`, `videos`, `finance`, `ai-mode`, `lens`, `product-detail` (29 commands covering 16 Google products) |
| **Google** | `search`, `maps-search`, `maps-place`, `maps-reviews`, `maps-photos`, `maps-posts`, `news`, `news-topics`, `news-trending`, `hotels`, `hotels-details`, `trends`, `trends-regions`, `trends-related`, `trends-trending`, `jobs`, `shopping`, `shopping-offers`, `patents`, `patent`, `scholar`, `autocomplete`, `images`, `videos`, `finance`, `ai-mode`, `lens`, `product-detail` (28 commands covering 16 Google products) |
| **Vinted** | `search`, `item`, `user`, `user-items`, `brands`, `markets` |
| **Web** | `scrape`, `detect`, `screenshot`, `extract`, `batch`, `batch-status` |

Expand Down
19 changes: 16 additions & 3 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@
"group": "Overview",
"pages": [
"google/overview",
"google/shopping-click-enrichment",
"google/shopping-offers",
"google-light/overview"
]
Expand Down Expand Up @@ -164,8 +163,7 @@
"group": "Shopping",
"pages": [
"api-reference/google/google-shopping/search-products",
"api-reference/google/google-shopping/product-details",
"api-reference/google/google-shopping/resolve-merchant-url-for-a-product"
"api-reference/google/google-shopping/offers"
]
},
{
Expand Down Expand Up @@ -2029,6 +2027,21 @@
"source": "/api-reference/endpoint/facebook/search",
"destination": "/api-reference/endpoint/facebook/marketplace-search",
"permanent": true
},
{
"source": "/google/shopping-click-enrichment",
"destination": "/google/shopping-offers",
"permanent": true
},
{
"source": "/api-reference/google/google-shopping/resolve-merchant-url-for-a-product",
"destination": "/api-reference/google/google-shopping/offers",
"permanent": true
},
{
"source": "/api-reference/google/google-shopping/product-details",
"destination": "/api-reference/google/google-products/immersive-product-detail",
"permanent": true
}
]
}
27 changes: 12 additions & 15 deletions google/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ retained. See
Job listings aggregated across the web with filters for type, date, and location.
</Card>
<Card title="Shopping" icon="cart-shopping">
Product listings with prices, ratings, filters — plus per-product merchant URL enrichment.
Product listings with prices, ratings, filters — plus seller offers by catalog ID or barcode.
</Card>
<Card title="Patents" icon="file-signature">
Patent document search and full-detail retrieval by patent number.
Expand Down Expand Up @@ -119,14 +119,14 @@ for (const r of serp.organic_results) {
console.log(r.title, r.link);
}

// Shopping search + per-product merchant URL enrichment
// Shopping search + product detail with merchant offers
const products = await client.google.shopping.search({ q: "laptop" });
const first = products.results[0];
const enriched = await client.google.shopping.click({
title: first.title,
source: first.source,
const detail = await client.google.products.detail({
product_id: first.gpcid,
q: "laptop",
include_offers: true,
});
console.log("Merchant URL:", enriched.merchant_url);
```

```python Python
Expand All @@ -141,14 +141,12 @@ async with ScrapeBadger(api_key="YOUR_API_KEY") as client:
# Maps search
places = await client.google.maps.search("coffee shops in san francisco")

# Shopping search + click enrichment
# Shopping search + product detail with merchant offers
products = await client.google.shopping.search("laptop")
first = products["results"][0]
enriched = await client.google.shopping.click(
title=first["title"],
source=first["source"],
detail = await client.google.products.detail(
first["gpcid"], q="laptop", include_offers=True
)
print("Merchant URL:", enriched["merchant_url"])
```

```bash cURL
Expand All @@ -160,8 +158,8 @@ curl "https://scrapebadger.com/v1/google/search?q=python+3.13&gl=us&hl=en" \
curl "https://scrapebadger.com/v1/google/shopping/search?q=laptop" \
-H "x-api-key: YOUR_API_KEY"

# Per-product merchant URL enrichment
curl "https://scrapebadger.com/v1/google/shopping/product/click?title=Lenovo+IdeaPad+5&source=Walmart" \
# Seller offers for a product by catalog ID
curl "https://scrapebadger.com/v1/google/shopping/offers?catalog_id=762120719996356571&gl=de&hl=de" \
-H "x-api-key: YOUR_API_KEY"
```

Expand Down Expand Up @@ -226,8 +224,7 @@ A full Search query that contains a `site:` operator, such as `"Jane Doe" "Acme"
| Endpoint | Description |
|---|---|
| `GET /v1/google/shopping/search` | Product search with filters + ads |
| `GET /v1/google/shopping/product` | Product detail with seller list |
| `GET /v1/google/shopping/product/click` | Resolve merchant URL per product (lightweight HTTP lookup) |
| `GET /v1/google/shopping/offers` | Seller offers for one product by `catalog_id` or `barcode` |
</Tab>
<Tab title="News & Content">
| Endpoint | Description |
Expand Down
50 changes: 0 additions & 50 deletions google/shopping-click-enrichment.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion google/shopping-offers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: "Get multi-seller Google Shopping prices for a product looked up by

# Shopping Offers by Barcode or Catalog ID

`/v1/google/shopping/offers` returns a product's Google Shopping **seller offers** — one entry per merchant `source`, each with its own `price` and merchant `link`. Identify the product one of two ways (exactly one is required):
`/v1/google/shopping/offers` returns a product's Google Shopping **seller offers** — one entry per merchant `source`, each with its own `price`, merchant `link` (the product page on the merchant's site, resolved from Google's redirect) and `extensions` such as stock and delivery (`"In stock online"`, `"Free delivery"`). Identify the product one of two ways (exactly one is required):

- **`barcode`** — Google Shopping no longer matches raw GTIN/UPC/EAN codes, so the barcode is first **resolved to a product** via a Google web search, then the Shopping seller list is fetched.
- **`catalog_id`** — Google's own Shopping catalog identifier: what a Google Shopping product URL carries as `prds=catalogid:<id>`, and the `catalog_id` field on [Shopping Search](/api-reference/google/google-shopping/search-products) tiles when Google exposes it there (for example `https://www.google.com/search?ibp=oshop&prds=catalogid:762120719996356571&gl=de&hl=de`). The seller list is read straight off Google's product page, every page of sellers fetched in parallel, so there is no resolve hop and no ambiguity about which product you get.
Expand Down
2 changes: 1 addition & 1 deletion mcp/integrations/chatgpt.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ Once connected, ChatGPT can call any of ScrapeBadger's 344 tools (Twitter/X, Goo

> "Find me a 16-inch laptop on Google Shopping under $1500 and tell me where to buy it"

ChatGPT will pick `google_news_search` and `google_shopping_search` + `google_shopping_product_click` automatically.
ChatGPT will pick `google_news_search` and `google_shopping_search` + `google_shopping_offers` automatically.
4 changes: 2 additions & 2 deletions mcp/integrations/claude-code.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ Once connected, ask Claude Code natural-language questions and it will pick the

Claude Code calls `google_search`.

> "Find me a laptop under $1500 on Google Shopping and give me the merchant URL for the cheapest one"
> "Find me a laptop under $1500 on Google Shopping and list the stores selling the cheapest one"

Claude Code chains `google_shopping_search` → `google_shopping_product_click`.
Claude Code chains `google_shopping_search` → `google_shopping_offers`.
4 changes: 2 additions & 2 deletions mcp/integrations/claude-desktop.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,6 @@ Try asking Claude:

Claude will call the `twitter_advanced_search` tool automatically.

> "Find the top 3 laptops on Google Shopping under $1500 and resolve the merchant URL for each"
> "Find the top 3 laptops on Google Shopping under $1500 and list the stores selling each"

Claude will chain `google_shopping_search` with `google_shopping_product_click` for each result.
Claude will chain `google_shopping_search` with `google_shopping_offers` for each result.
4 changes: 2 additions & 2 deletions mcp/integrations/cline.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ After saving, Cline automatically detects the available tools. You should see 34

Try asking Cline to use a Google tool:

> "Search Google Shopping for laptops under $1500 and resolve the merchant URL for the top result"
> "Search Google Shopping for laptops under $1500 and list the stores selling the top result"

Cline will call `google_shopping_search` followed by `google_shopping_product_click` automatically.
Cline will call `google_shopping_search` followed by `google_shopping_offers` automatically.
4 changes: 2 additions & 2 deletions mcp/integrations/continue-dev.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ Continue.dev can import JSON configs from Claude Desktop, Cursor, or Cline direc

ScrapeBadger exposes 344 tools to Continue.dev across Twitter/X, Google, YouTube, TikTok, Amazon, eBay, Reddit, real estate, and web scraping. In Agent mode, ask things like:

> "Search Google Shopping for the cheapest 16-inch laptop and resolve the merchant URL"
> "Search Google Shopping for the cheapest 16-inch laptop and list the stores selling it"

Continue.dev will call `google_shopping_search` followed by `google_shopping_product_click`.
Continue.dev will call `google_shopping_search` followed by `google_shopping_offers`.
2 changes: 1 addition & 1 deletion mcp/integrations/gemini.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ gemini "Search Google for 'best react state management 2026' and list the top 5
```

```bash
gemini "Find a Razer gaming headset on Google Shopping and resolve the merchant URL"
gemini "Find a Razer gaming headset on Google Shopping and list the stores selling it"
```

Gemini will discover and call the appropriate `google_search` / `google_shopping_*` tools.
Loading
Loading