Google Shopping Product API
View as MarkdownFetch the full product page (sellers, variants, specs, reviews, videos) for a single Google Shopping product as structured JSON
The Google Shopping Product API is the companion endpoint to /plugin/google/shopping. It fetches the full product page for a single Google Shopping product — seller offers, variants, specs, reviews, videos, and related discussions — as structured JSON.
The recommended flow is three steps: call /plugin/google/shopping to find a product, capture its catalog_id, hit this endpoint to get the product page with its first ~13 sellers, then replay the next_page_token against /plugin/google/shopping/product/stores to walk the rest of the seller list. Add gpcid when you need the offers from the specific cluster opened by a Google Shopping result card instead of the catalog-wide seller list.
Credit Usage: Standard successful requests cost 10 credits. A request with all_stores=true costs 25 credits when the walk loads continuation pages beyond the product page, usually returning more than ~13 sellers; after duplicates are removed a 25-credit response can hold fewer. If the product page has no further sellers, the standard rate applies. For bulk processing, use the Async API with plugins.
Identifier choice: catalog_id is the durable input — persist it in your DB and replay it weeks or months later. You can optionally pair it with the product query (q) or an offer-cluster ID (gpcid). immersive_product_page_token is short-lived (a few hours) and best used inside the same workflow that produced it. product_id is accepted for existing integrations and is served in catalog mode like catalog_id.
Catalog IDs are region-specific. Google maintains a separate catalog graph per market, so the same product has a different catalog_id in each region. If you need US, DE, and FR sellers for the same product, run /plugin/google/shopping once per region (passing gl=us / gl=de / gl=fr) and persist the catalog_id you receive in each market.
Key Features
- Durable Catalog Input: Pass
catalog_idto look up a product by its long-lived Google catalog identifier. Catalog IDs are stable per region, so you can save them in your own storage and replay them later. - Offer Cluster Targeting: Add the
gpcidfrom a Google Shopping product link to return every seller shown on that result card's cluster page without mixing in offers from other clusters. - Rich Product Data: Catalog mode returns the title, gallery, typical price range, description, discussions, related products, and seller offers. Token mode adds variants, specs, ratings, videos, reviews, and other viewer details.
- Large Seller Lists: The default catalog response returns the product page's sellers plus the next page, about 13 offers, and a continuation token (
next_page_token) when pagination may continue. Replay it against/plugin/google/shopping/product/storesto walk up to ~1,000 sellers. Passall_stores=trueto load up to ~100 sellers in one request. - Variant Filtering: In token mode, pass
pvfto narrowstores[]to one variant's offers (a colour, a size, a storage capacity) instead of the union of every variant's offers. See Variant filter. - Per-seller Detail: Price, shipping, total, payment methods, delivery / returns details, merchant ID, thumbnail, badge text, sale & strikethrough prices, and carrier-style monthly installment plans (
installment_months,installment_down_now,total) when applicable. - Google-style HTML Output: Pass
include_html=trueto receive a standalone product page alongside the JSON, including the gallery, typical price range, description, product attributes, related content, and returned sellers. - Two Response Modes:
catalog_oapv(catalog mode, recommended) andoapv(token mode, rich short-lived payload). The chosen mode is echoed inproduct_results.source. - Worldwide Coverage: Locale via
gl+hl, withlocation/uuleavailable in token mode; carrier financing and EU comma-decimal formatting handled automatically. - Device Emulation: Desktop, mobile, or tablet layout with the
deviceparameter. - No Blocks or CAPTCHAs: All anti-bot measures are handled automatically by Scrape.do.
Endpoint
GET https://api.scrape.do/plugin/google/shopping/productParameter keys are case-insensitive. You can use product_id, Product_ID, gl, GL, etc.
Request Parameters
Required
| Parameter | Type | Description |
|---|---|---|
token | string | Your Scrape.do API authentication token |
Identity (choose one)
Provide one of the identifiers below. When you supply more than one, the priority is catalog_id > immersive_product_page_token > product_id.
| Input | Type | Description |
|---|---|---|
catalog_id | string | Recommended. Durable catalog identifier (digit-only) from /plugin/google/shopping or the catalogid: value in a Google Shopping link's prds parameter. Returns the catalog response (source: "catalog_oapv"): full product page + the first ~13 sellers + a next_page_token when pagination may continue. q and gpcid are optional. For catalogs with multiple variants, every seller page stays on the variant Google selected for that catalog_id. A search result without catalog_id is a single listing; pass its product_id to retrieve that listing and its seller without pagination. |
immersive_product_page_token | string | Short-lived opaque base64 token from a shopping_results[] entry on /plugin/google/shopping. A fresh token returns the rich token response (source: "oapv"): variants, specs, reviews, videos, and seller offers. Without a variant filter, seller offers can span multiple variants. After its upstream session expires, a request without pvf is served in catalog mode (source: "catalog_oapv") from the token's catalog ID, or from its product ID when the token belongs to a single listing. Best used inside the same workflow that produced it. The only path that supports the pvf variant filter. |
page_token | string | Alias for immersive_product_page_token. Behaves identically. |
product_id | string | Google product identifier (digit-only). Served in catalog mode like catalog_id. For a search result without a catalog, it returns that single listing and its seller without a next_page_token. |
Offer cluster
| Parameter | Type | Default | Description |
|---|---|---|---|
q | string | — | Catalog mode only. Optional search query for the product, such as its title. When omitted, the product page opens with a blank query, matching Google's own product links. |
gpcid | string | — | Catalog mode only. Digit-only offer-cluster ID from the gpcid: value in a Google Shopping link's prds parameter. Requires catalog_id and cannot be combined with sort_by or all_stores. |
Google can divide one catalog into multiple offer clusters. A link containing only prds=catalogid:11098835974841238015 opens the catalog-wide product page. A link containing prds=catalogid:11098835974841238015,gpcid:3719569561376036875,… opens one cluster, which can have a different title and seller list.
Pass catalog_id alone for catalog-wide price comparison. Add gpcid when you need every seller shown on the specific cluster page opened by a result card. A cluster response usually contains 1–5 offers, does not include next_page_token, and cannot be combined with all_stores=true, so sellers from other clusters are never mixed into the result.
Do not send next_page_token to this endpoint. Continuation cursors go to /plugin/google/shopping/product/stores. Sending one here returns HTTP 400 with a redirect message.
Device
| Parameter | Type | Default | Description |
|---|---|---|---|
device | string | desktop | Device type. One of desktop, mobile, tablet. |
Routing
| Parameter | Type | Default | Description |
|---|---|---|---|
google_domain | string | google.com | Google domain to query in token mode (e.g., google.de, google.com.tr). Catalog mode (catalog_id, product_id, sort_by, or all_stores) always uses google.com and takes its locale from gl and hl. |
Sort
| Parameter | Type | Default | Description |
|---|---|---|---|
sort_by | string | — | Seller sort order in catalog mode. One of base_price, total_price, promotion, seller_rating. Sorts the sellers in this response (about 13). When more sellers exist, the response keeps next_page_token; continuation pages use Google's default order. |
| Value | Behavior |
|---|---|
base_price | Item price, low to high |
total_price | extracted_total, low to high; falls back to price plus shipping when no total is shown |
promotion | Largest discount first, based on extracted_original_price versus extracted_price |
seller_rating | Merchant rating, high to low |
Sellers without the value being sorted keep their relevance order after the sortable sellers, and position is renumbered after sorting. Installment offers sort by extracted_total for total_price and after lump-sum offers for base_price.
Specifying sort_by selects catalog mode. When used with an immersive_product_page_token, the token's catalog ID and query are used, but token-only fields such as variants, specs, ratings histograms, and videos are not included. When more sellers exist, the response also includes Scrape.do-Auto-Page-Truncated: true.
Variant filter
| Parameter | Type | Default | Description |
|---|---|---|---|
pvf | string | — | Token mode only. Narrows the seller list to a single product variant — a colour, a size, a storage capacity. Take the value from product_results.variants[].options[].pvf on a previous call to this endpoint. |
Without pvf, stores[] is the union of every variant's offers — the same list Google shows before you pick a swatch. A product sold in three colours and three capacities returns offers mixing all nine combinations, so a price comparison across them is not like-for-like.
Filtering takes two calls:
- Call the endpoint with no
pvfand readproduct_results.variants[]. Every option you can switch to carries thepvfvalue that selects it; the option already selected and the "Any" option (such asAny Color) have none. - Call the endpoint again with that value as
pvf.stores[]now contains only offers for that variant, andvariants[].options[].selectedflags the option you applied.
selected appears only on the option currently applied on that variant axis — it previously came back on every option, so code that filtered on it used to match the whole list.
pvf values are durable — the product token is not. A pvf encodes the variant, not your session, so you can store one and reuse it later. Every call still needs a freshly minted immersive_product_page_token, so replay a stored pvf against a new token. Treat the value as opaque: Google may encode a variant with text labels or numeric attribute and value IDs. Only values returned in a response are accepted; a hand-built one is rejected with 400, because the attribute names inside it follow the page language (colour on gl=ca, color on gl=us) and a guessed name would quietly return an unfiltered list.
product_results.applied_pvf echoes the filter Google actually applied. It is absent when you sent no pvf — so if you did send one and applied_pvf is missing, the filter did not take effect and stores[] is unfiltered. If the product token's upstream session has expired, a pvf request returns HTTP 410 instead of an unfiltered seller list. Fetch a fresh token from /plugin/google/shopping and retry with the same pvf.
pvf combines with more_stores, which widens the seller window from ~5 to ~10. A filtered list does not paginate beyond that — no next_page_token is returned on a pvf-filtered response, because a continuation cursor cannot carry the filter and would page you back into unfiltered results. It does not combine with sort_by, all_stores, product_id, or catalog_id: those select catalog mode, which cannot filter variants, so they return 400 rather than silently ignoring the filter.
Seller list expansion
| Parameter | Type | Default | Description |
|---|---|---|---|
all_stores | boolean | false | Catalog mode only; cannot be combined with gpcid or pvf. Loads up to 10 continuation pages in one call, for about 100 sellers beyond the product page. Costs 25 credits when the walk loads continuation pages beyond the product page (usually more than ~13 sellers; after duplicates are removed, fewer can come back). See Loading more sellers in one call. |
load_all_stores | boolean | false | Deprecated; no effect. Use all_stores=true for up to ~100 sellers in one call, or replay next_page_token against /plugin/google/shopping/product/stores. |
more_stores | boolean | false | Token mode only (legacy). When true, asks the legacy token flow to expand the seller list inline. Catalog mode uses next_page_token + /plugin/google/shopping/product/stores instead. |
Cursor opacity: next_page_token is an opaque, signed string the gateway emits in the response. Replay it verbatim against /plugin/google/shopping/product/stores — do not parse, transform, or generate cursors yourself. Treat the token as “there may be more,” not as a guarantee that another seller exists: Google does not publish a seller total, so the next call can legitimately return no sellers and no further token. The cursor is omitted when Google confirms the list is exhausted, on gpcid responses, and when continuation reaches its ~1,000-seller safety limit.
Output
| Parameter | Type | Default | Description |
|---|---|---|---|
include_html | boolean | false | When true (or 1), adds a top-level html field containing a standalone page laid out like Google's product page. It is built from the same product_results and includes the title, gallery, typical price range, description, product attribute rows, discussions, more options, and every seller in stores[]. Also accepted on /plugin/google/shopping/product/stores. There is no extra cost. |
The HTML reflects the JSON returned by that request. When combined with all_stores=true, it includes every seller loaded by that request. Image URLs continue to point to Google's image servers, and sections without data are omitted.
Localization
| Parameter | Type | Default | Description |
|---|---|---|---|
hl | string | en | Host language. Overrides the language embedded in immersive_product_page_token when both are present. |
gl | string | us | Country perspective. Overrides the country embedded in immersive_product_page_token when both are present. One exception on the token (seller-list) path: the upstream session the token replays into is region-bound, so a gl that would move the request to a different market than the token was minted in yields to the token's country there. A gl from the same market as the token is still honored, and the hl language is unaffected. |
location | string | — | Token mode only. Location name (e.g., Austin,Texas,United States). Auto-encoded to UULE when uule is not set. |
uule | string | — | Token mode only. Google-encoded location parameter. Overrides location when both are set. |
See Localization for the full list of supported hl, gl, and google_domain values.
Example Usage
By catalog_id (recommended — durable input)
# 1. Look up the product and grab its catalog_id
CID=$(curl -s "https://api.scrape.do/plugin/google/shopping?q=PodTrak+P8+ZP8&hl=en&gl=us&token=YOUR_TOKEN" \
| jq -r '.shopping_results[0].catalog_id')
# 2. Fetch the product page + first ~13 sellers + continuation token
curl "https://api.scrape.do/plugin/google/shopping/product?catalog_id=$CID&q=PodTrak+P8+ZP8&hl=en&gl=us&token=YOUR_TOKEN"q is optional. If you already have a Google Shopping product link, you can call the endpoint with its catalogid: value alone:
curl "https://api.scrape.do/plugin/google/shopping/product?catalog_id=11098835974841238015&gl=us&token=YOUR_TOKEN"By offer cluster
Use the catalogid: and gpcid: values from the same product link to return all offers on that cluster page:
curl "https://api.scrape.do/plugin/google/shopping/product?catalog_id=11098835974841238015&gpcid=3719569561376036875&gl=us&token=YOUR_TOKEN"Catalog mode in another market
# Same product, German market — re-search per region to get the region-scoped catalog_id
CID=$(curl -s "https://api.scrape.do/plugin/google/shopping?q=iPhone+17+Pro&hl=de&gl=de&token=YOUR_TOKEN" \
| jq -r '.shopping_results[0].catalog_id')
curl "https://api.scrape.do/plugin/google/shopping/product?catalog_id=$CID&q=iPhone+17+Pro&hl=de&gl=de&token=YOUR_TOKEN"Load up to ~100 sellers in one call
curl "https://api.scrape.do/plugin/google/shopping/product?catalog_id=$CID&q=PodTrak+P8+ZP8&all_stores=true&token=YOUR_TOKEN"This request costs 25 credits when the walk loads continuation pages beyond the product page, usually returning more than ~13 sellers; after duplicates are removed a 25-credit response can hold fewer. If the product page has no further sellers, the standard rate applies.
Include a standalone HTML product page
curl "https://api.scrape.do/plugin/google/shopping/product?catalog_id=17755277695162489284&gl=us&include_html=true&token=YOUR_TOKEN"By immersive_product_page_token (rich short-lived response)
# 1. Mint a token from the search endpoint
TOKEN=$(curl -s "https://api.scrape.do/plugin/google/shopping?q=Sony+WH-1000XM5&token=YOUR_TOKEN" \
| jq -r '.shopping_results[0].immersive_product_page_token')
# 2. Replay it against the product endpoint (variants/specs/reviews/videos returned)
curl "https://api.scrape.do/plugin/google/shopping/product?immersive_product_page_token=$TOKEN&token=YOUR_TOKEN"Filter by variant (pvf, token mode)
# 1. Mint a token from the search endpoint
TOKEN=$(curl -s "https://api.scrape.do/plugin/google/shopping?q=Sony+WH-1000XM5&token=YOUR_TOKEN" \
| jq -r '.shopping_results[0].immersive_product_page_token')
# 2. Fetch the product with no filter and read the options.
# stores[] mixes every variant; each option carries the pvf that selects it.
curl "https://api.scrape.do/plugin/google/shopping/product?immersive_product_page_token=$TOKEN&token=YOUR_TOKEN"
# 3. Call again with the pvf of the option you want.
curl "https://api.scrape.do/plugin/google/shopping/product?immersive_product_page_token=$TOKEN&pvf=Eg8iBWNvbG9yKgZzaWx2ZXI&token=YOUR_TOKEN"
# → every row in stores[] is an offer for that variant, and applied_pvf echoes the filterBy product_id (catalog mode)
curl "https://api.scrape.do/plugin/google/shopping/product?product_id=17755277695162489284&token=YOUR_TOKEN"Sort the sellers in a response
curl "https://api.scrape.do/plugin/google/shopping/product?catalog_id=$CID&sort_by=total_price&token=YOUR_TOKEN"Response
Top-Level Structure
{
"search_parameters": { ... },
"product_results": { ... },
"html": "<!DOCTYPE html>..."
}html is present only when you send include_html=true.
search_parameters
Echo of the request parameters sent by the client.
{
"engine": "google_shopping_product",
"product_id": "17755277695162489284",
"page_token": "eyJlaSI6ImFhX1Nh...",
"google_domain": "google.com",
"hl": "en",
"gl": "us",
"device": "desktop",
"more_stores": false,
"next_page_token": ""
}This sample is a token-mode echo; pvf, location, and uule (also filled in when you send location) appear only when sent. Catalog mode echoes catalog_id, product_id, q (empty when you omit it), and the deprecated load_all_stores field, plus gpcid, sort_by, and all_stores when sent (the load_all_stores echo does not show whether all_stores was applied); it does not echo page_token, more_stores, or next_page_token. include_html is not echoed.
product_results (rich path)
Returned when a fresh immersive_product_page_token is served in token mode without sort_by or all_stores. source is "oapv". If the token's upstream session has expired and you did not send pvf, the endpoint falls back to catalog mode, returns source: "catalog_oapv", and omits token-only fields such as variants and specs.
{
"title": "Sony WH-1000XM5 Wireless Noise Canceling Headphones",
"product_id": "17755277695162489284",
"brand": "Sony",
"rating": 4.6,
"reviews": 4800,
"reviews_label": "4,800 reviews",
"ratings": [
{ "stars": 5, "count": 3400 },
{ "stars": 4, "count": 900 }
],
"thumbnails": [ "https://encrypted-tbn0.gstatic.com/...", "..." ],
"reviews_images": [ "https://encrypted-tbn0.gstatic.com/...", "..." ],
"stores": [ { /* see stores[] table below */ } ],
"next_page_token": "eyJzb3JpIjo1LCJtbm8iOjEwfQ",
"variants": [ { "type": "Color", "options": [ { "text": "Any Color" }, { "text": "Black", "selected": true }, { "text": "Silver", "pvf": "Eg8iBWNvbG9yKgZzaWx2ZXI", "shoprs": "Eg8iBWNvbG9yKgZzaWx2ZXI" } ] } ],
"specs": [ { "section": "General", "items": [ { "label": "Wireless", "value": "Yes" } ] } ],
"videos": [ { "title": "Sony WH-1000XM5 Review", "source": "youtube.com", "thumbnail": "...", "link": "..." } ],
"user_reviews": [ { "rating": 5, "title": "Best headphones", "body": "...", "author": "John D." } ],
"top_insights": [ { "section": "Sound quality", "items": [ "Crystal-clear audio", "Strong bass" ] } ],
"about_the_product": { "description": "..." },
"more_options": [ { "title": "Sony WH-1000XM4", "link": "...", "thumbnail": "..." } ],
"discussions_and_forums": [ { "title": "...", "source": "reddit.com", "link": "...", "snippet": "..." } ],
"extension_ids": { "catalog_id": "...", "gpcid": "..." },
"source": "oapv"
}product_results (catalog mode)
Returned when you pass catalog_id or product_id, or when you specify sort_by or all_stores. source is "catalog_oapv". Catalog mode includes the product gallery, typical price range, description, discussions, related products, the first ~13 sellers, and a continuation token when more sellers may exist. It does not include token-only fields such as variants, specs, ratings, ratings histograms, videos, or user reviews.
{
"title": "Sony WH-1000XM5 Wireless Noise Canceling Headphones",
"product_id": "17755277695162489284",
"thumbnails": [ "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:...", "..." ],
"price_range": "$199–$300",
"about_the_product": { "description": "Active Noise Cancelation From airplane noise to people’s voices..." },
"discussions_and_forums": [ { "title": "...", "link": "...", "source": "Lemon8", "icon": "...", "date": "3 years ago" } ],
"stores": [ { /* see stores[] table below */ } ],
"next_page_token": "eyJ2Ijoic3RvcmVzLTEi...",
"source": "catalog_oapv"
}Catalog product sections
| Field | Type | Description |
|---|---|---|
thumbnails | string[] | Product gallery image URLs. Available in catalog and token modes. |
price_range | string | Typical price range shown on the product page (e.g. "$199–$300"). Absent when Google does not show one. |
about_the_product | object | Product information block. Catalog mode populates description, and features[] (attribute rows as { "title", "value" }) when Google shows attribute rows (for example on gpcid cluster pages; catalog-wide pages often have none). features[] includes every available row, including those Google places behind More details after the first three. Token mode can also include title, link, displayed_link, icon, and features[]. |
more_options | array | Related products with title, thumbnail, price, extracted_price, original_price, extracted_original_price, rating, reviews, and product_id when available. |
discussions_and_forums | array | Related forum threads with title, link, source, icon, date, and nested snippet/link items. |
stores[] Fields
Each entry in product_results.stores[] describes a single merchant offer for the product.
| Field | Type | Always present | Description |
|---|---|---|---|
position | int | yes | 1-based position in the seller list |
name | string | yes | Merchant name (e.g., "Best Buy", "Amazon.com") |
logo | string | Merchant favicon URL. Available on rich, catalog, and continuation seller rows when Google provides one. | |
link | string | Direct link to the merchant's product page. In rare cases where the merchant URL cannot be resolved before the request completes, this is an absolute https://www.google.com/goto?url=… link that redirects to it. | |
title | string | Product title as listed on the merchant's site (may differ slightly from product_results.title). Available in rich and catalog responses. | |
rating | float | Merchant rating out of 5 | |
reviews | float | Merchant review count (suffix-aware, e.g., 1.2K is parsed as 1200) | |
price | string | Formatted base price ("$248.00", "1.299,00 TL") | |
extracted_price | float | Numeric base price | |
currency | string | ISO currency code when detected ("USD", "EUR", "TRY") | |
shipping | string | Shipping line as displayed ("+ 7,99 €", "Lieferung: 6,95 €", "Free delivery") | |
shipping_extracted | float | Numeric shipping cost. Omitted when delivery is free or the shipping line has no amount. | |
tax_hint | string | Tax hint shown by Google when an exact tax line isn't available (e.g., "+tax") | |
total | string | Formatted total as displayed | |
extracted_total | float | Numeric total | |
payment_methods | string | Accepted payment methods (e.g., "PayPal, Affirm accepted") | |
details_and_offers | string[] | Per-offer notes — delivery window, stock, return policy (e.g., ["Free delivery between May 21 – 27", "In stock", "90-day returns"]) | |
displayed_details | string[] | Seller-row details in the display order and wording returned by Google, including condition, stock, discount, coupon code, each delivery option once, and returns. The rating is excluded; use rating. Available on every rich or catalog row that displays details, including leading catalog rows. | |
merchant_id | string | Google's internal merchant ID. Available in rich responses, US catalog leading rows, and catalog continuation rows; Google does not expose it on EU catalog leading rows. | |
thumbnail | string | Merchant-specific product thumbnail when distinct from the canonical image | |
tag | string | Badge text Google renders on the offer, in the page locale (e.g. "Best price", "Bester Preis", "Meilleur prix"). Text is carried verbatim, not normalized. | |
original_price | string | Pre-discount price as displayed, when Google renders a strikethrough | |
extracted_original_price | float | Numeric pre-discount price | |
discount | string | Discount badge text (e.g., "20% OFF") | |
installment_months | int | Number of monthly installments for carrier-style or BNPL offers (Verizon, AT&T, T-Mobile, congstar, MediaMarkt mit Vertrag, …). When set, price is the monthly figure, not the lump sum — read total / extracted_total for the lifetime cost. | |
installment_down_now | string | Upfront payment for the installment plan, as displayed (e.g., "$0", "60 €"). |
In catalog mode, the first 3–5 stores[] entries come from the product page and include the merchant name, logo, link, title, price, shipping, rating, tag, and displayed_details, plus sale and installment fields when shown. Sellers added through the built-in next page, all_stores=true, or /plugin/google/shopping/product/stores come from Google's continuation feed and can also include currency, total, details_and_offers, and thumbnail.
Response Modes
The plugin picks the response mode automatically based on what you sent:
| You sent | Mode | source | What you get |
|---|---|---|---|
catalog_id with optional q or gpcid | Catalog | "catalog_oapv" | Product page (title, gallery, typical price range, description, attribute rows when shown, discussions, related products) + the first ~13 sellers. Catalog-wide requests can include next_page_token when pagination may continue; gpcid requests return only that cluster and do not paginate. Catalog-wide pages stay on the same Google-selected variant. |
immersive_product_page_token (no sort_by or all_stores) | Token, or catalog fallback after the session expires | "oapv" or "catalog_oapv" | A fresh session returns the rich payload: variants, specs, reviews, videos, and seller offers. An expired session without pvf is reloaded by the token's catalog ID (or its product ID for a single listing) and returns catalog-mode fields. With pvf, it returns 410 |
product_id | Catalog | "catalog_oapv" | Same catalog response as catalog_id; a single listing without a catalog returns its one seller |
Any input with sort_by or all_stores | Catalog | "catalog_oapv" | Sorted sellers or up to ~100 sellers, without token-only variants / specs / reviews / videos |
Inspect product_results.source to know which mode served the response. Do not assume a token request always returns token mode. Catalog mode is the recommended default for any workflow that persists product identifiers.
include_html=true does not select another response mode. It adds a top-level html field generated from the same product_results returned as JSON. Responses from /plugin/google/shopping/product/stores use source: "catalog_oapv_more".
The pvf variant filter is supported in token mode only — sending it with catalog_id, product_id, sort_by, or all_stores returns HTTP 400.
Paginating every seller
Catalog mode without gpcid returns the product page's sellers plus the next continuation page, about 13 offers, and can include a next_page_token when pagination may continue. For catalogs that group multiple sizes, finishes, colors, or other variants, the first response and every continuation page stay on the variant Google selected for that catalog_id. If Google cannot provide a variant-pinned view, the endpoint returns the product page's sellers without a next_page_token rather than continuing with offers from other variants. Use catalog pagination in one of two ways:
Option 1 — Manual pagination via /plugin/google/shopping/product/stores
The dedicated continuation endpoint accepts the signed token and returns the next batch of sellers (up to ~10 per call). Each call is billed as a standard request (10 credits).
GET https://api.scrape.do/plugin/google/shopping/product/stores| Parameter | Type | Description |
|---|---|---|
token | string | Your Scrape.do API authentication token |
catalog_id | string | The same catalog_id you used on the matching /plugin/google/shopping/product call. Must match the catalog_id embedded inside next_page_token. |
next_page_token | string | The next_page_token value from a prior response. Replay verbatim. The locale (q, gl, hl) is carried inside the token and reused server-side — you do not pass them again. |
include_html | boolean | Optional. When true, adds a top-level html field containing a standalone buying-options page for the sellers in this batch. No additional credits. |
# After the catalog call:
NEXT=$(echo "$RESP" | jq -r '.product_results.next_page_token // empty')
while [ -n "$NEXT" ]; do
RESP=$(curl -s "https://api.scrape.do/plugin/google/shopping/product/stores?catalog_id=$CID&next_page_token=$NEXT&token=YOUR_TOKEN")
echo "$RESP" | jq '.product_results.stores | length'
NEXT=$(echo "$RESP" | jq -r '.product_results.next_page_token // empty')
doneResponse shape is lean: product_id, stores[], source, and (when more sellers remain) next_page_token, also mirrored as stores_next_page_token. Title, gallery, variants, etc. are not re-emitted; you already have them from the catalog call. source is "catalog_oapv_more".
With include_html=true, the response also contains a top-level html field. The HTML lists only the sellers returned by that continuation call.
The token is signed and bound to the supplied catalog_id. Sending a different catalog_id returns HTTP 400 ("catalog_id mismatch").
Each continuation call returns up to ~10 sellers, and pagination can continue to roughly 1,000 sellers. A short last page can still carry a next_page_token; the call after it then returns no sellers and no token, which is the end of the list. If a full page reaches the safety limit instead, it omits next_page_token but includes Scrape.do-Auto-Page-Truncated: true, so you can distinguish truncation from the natural end of the list.
Google can repeat a seller on later pages in long result sets. When combining pages, de-duplicate offers by merchant_id.
Option 2 — One-shot all_stores=true
For workflows that want a larger seller batch in one response, pass all_stores=true on the catalog call. The response includes the product page's sellers plus up to 10 continuation pages, or up to about 103 offers total. Duplicate offers are returned once and positions are renumbered without gaps. With sort_by, every seller in the response is sorted.
A next_page_token is included whenever the call stops without Google confirming the end of the seller list. Treat it as “there may be more,” not “there is more.” Google does not publish a seller total, so the only way to confirm the end is to request the next offset. If that continuation returns no sellers and no token, pagination has stopped; do not retry that offset.
Loading more sellers in one call
An all_stores=true request typically takes 15–60 seconds, and can take longer for a deep seller list. The walk is bounded: it stops after 10 pages, when Google confirms the end, when no new sellers are found, or after its retry allowance is spent recovering from upstream failures. The sellers collected so far are returned, with a continuation token when pagination may continue. If the client disconnects, the request is abandoned, so configure a client timeout appropriate for a multi-page request.
The request costs 25 credits when the walk loads continuation pages beyond the product page, usually returning more than ~13 sellers; after duplicates are removed a 25-credit response can hold fewer. If the product page has no further sellers, the standard rate applies.
curl "https://api.scrape.do/plugin/google/shopping/product?catalog_id=$CID&q=iPhone+17+Pro&all_stores=true&token=YOUR_TOKEN"Legacy more_stores on the token path
The legacy token flow (immersive_product_page_token) uses more_stores=true to inline the expanded seller list. New integrations should prefer the catalog path; more_stores stays available for existing callers. The older load_all_stores parameter is deprecated and has no effect.
Handling Session Expiry
immersive_product_page_token values are tied to an upstream Google session that ages out after several hours. Without pvf, an expired token is served from its catalog instead, or from its product ID when the token belongs to a single listing without a catalog: the response is HTTP 200 in catalog mode (source: "catalog_oapv"), without variants, specs, reviews, or videos. A pvf-filtered request cannot be reconstructed against a new session and returns HTTP 410 Gone:
{
"error": "session expired",
"message": "The immersive_product_page_token is older than 6h0m0s and is past Google's product-viewer session lifetime. Fetch /plugin/google/shopping again to mint a fresh token, then retry."
}(The exact message may vary; the recovery is always the same.)
Recovery: When you receive HTTP 410 on /plugin/google/shopping/product, re-fetch /plugin/google/shopping with the same query, grab a fresh immersive_product_page_token, and retry, with the same pvf if you sent one. A token request that comes back with source: "catalog_oapv" was not served in token mode (no variants, specs, reviews, or videos); retry with a fresh token when you need the token-only fields. Don't store product tokens long-term — treat them as ephemeral cursors.
See Transient Errors for the full rotate-on-expiry pattern.
Error Handling
All endpoints return errors in a consistent JSON format:
{
"error": "error_code",
"message": "Human readable error message"
}Common Error Codes
| Status | Error | Description |
|---|---|---|
400 | token is required | Missing authentication token |
400 | gpcid requires catalog_id | gpcid was sent without catalog_id |
400 | gpcid is not supported with sort_by | gpcid was combined with sort_by, which selects a mode that cannot target an offer cluster |
400 | gpcid is not supported with all_stores | gpcid was combined with all_stores; an offer cluster is not paginated |
400 | invalid gpcid | gpcid was too long or contained non-digit characters |
400 | invalid catalog_id | catalog_id was empty, too long, or contained non-digit characters |
400 | next_page_token belongs on /plugin/google/shopping/product/stores | A pagination cursor was sent to /product — replay it against /product/stores instead |
400 | catalog_id mismatch | On /product/stores, the supplied catalog_id does not match the catalog_id embedded inside next_page_token |
400 | product_id (or immersive_product_page_token) is required | No identifier was supplied at all |
400 | invalid immersive_product_page_token | Token could not be base64-decoded or its JSON payload could not be parsed |
400 | invalid product_id | product_id was empty, too long, or contained non-digit characters |
400 | device must be one of: desktop, mobile, tablet | Invalid device value |
400 | invalid google_domain | Domain not in the supported list (token mode; catalog mode always uses google.com) |
400 | invalid sort_by | Sort value not in base_price, total_price, promotion, seller_rating |
400 | invalid pvf | pvf was not a value returned in product_results.variants[].options[].pvf — only values a previous response returned are accepted |
400 | pvf requires an immersive_product_page_token | pvf was sent with product_id, sort_by, or all_stores, which select catalog mode and cannot filter variants |
400 | pvf is not supported with catalog_id | pvf was sent with catalog_id — mint an immersive_product_page_token instead |
400 | next_page_token is required | /product/stores was called without a next_page_token |
400 | invalid next_page_token | The pagination cursor's signature failed, payload couldn't be parsed, a bounded field fell out of range, or the token belongs to a non-paginated gpcid request. Fetch a fresh first page from /plugin/google/shopping/product and resume from its cursor |
410 | session expired | A token request is past its upstream session lifetime and cannot fall back because it carried pvf. Re-mint via /plugin/google/shopping and retry with the same pvf. Unfiltered tokens are served in catalog mode instead, and catalog pagination refreshes transparently. See Handling Session Expiry below |
502 | request failed | Transient upstream failure, including when /product/stores cannot prepare a fresh session for the continuation token in time. Retry the same request |
502 | unexpected response | Non-200 response from Google |
502 | failed to load product details | Catalog mode could not load the product page or its sellers. Not charged. Retry |
502 | failed to load sellers | Catalog mode failed before collecting any sellers. Retry the request |
500 | failed to parse product viewer response | Google returned an unparseable product viewer payload (rare; if persistent, report to support) |
500 | decompression failed | Response body decompression error |
An empty seller list means no sellers are available in that market. When a catalog_id is valid in Google's index but the regional catalog graph has no sellers for it (common for US-specific catalogs queried with gl=de / gl=fr etc.), the response is 200 with product_results.stores = []. Re-search in the target region (/plugin/google/shopping?gl=de…) to get its region-specific catalog ID. A failed catalog request does not return an ambiguous empty response: it returns HTTP 502 when no sellers were collected.

