Skip to content

chore(SCR-764): remove retired Shopping product/click docs, add Shopping offers API reference - #222

Merged
0xGhostCasper merged 2 commits into
mainfrom
kasparasizi1/scr-764-shopping-cleanup
Dec 1, 2026
Merged

0xGhostCasper merged 2 commits into
mainfrom
kasparasizi1/scr-764-shopping-cleanup

Conversation

@0xGhostCasper

@0xGhostCasper 0xGhostCasper commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

GET /v1/google/shopping/product and GET /v1/google/shopping/product/click answer 404. They were retired by monorepo migrations 059/060, but these docs still listed both, and a customer called them from here (SB-001278). Linear: SCR-764.

Removed

  • api-reference/google/google-shopping/resolve-merchant-url-for-a-product and .../product-details. Note that product-details documented the retired GET /v1/google/shopping/product, not products/detail.
  • The google/shopping-click-enrichment guide.
  • The nav entries for all three pages.
  • Both paths from openapi-google.json, together with the schemas only they used (ShoppingClickResponse, ShoppingProductResponse, ShoppingProductDetail, ShoppingSeller) and click_link on ShoppingProductResult.
  • shopping.click(), shopping-click, shopping-product and google_shopping_product(_click) from the Google overview, the CLI pages, the MCP overview and eight MCP integration pages. Those pages now use shopping.offers / products.detail, shopping-offers and google_shopping_offers.

Added

  • GET /v1/google/shopping/offers in openapi-google.json, inserted where the removed paths were.
    • Parameters come from the live route: barcode, catalog_id, gl, hl (default en) and domain.
    • New ShoppingOffersResponse and ShoppingOffer schemas.
    • Documented responses: 400 (neither or both identifiers), 404, 422 (bad barcode or catalog_id) and 502.
  • API reference page api-reference/google/google-shopping/offers, placed in the Shopping nav group after search-products.
  • TODO(SCR-764): offers[].link is described as "the merchant's product page URL". That wording is provisional because the field's contents are changing. It is marked with an x-todo key next to the description in the spec (ShoppingOffer.link) and an MDX comment above the field table on the page. Finalize both and drop the markers before merging.
  • Permanent redirects:
    • /google/shopping-click-enrichment → /google/shopping-offers
    • /api-reference/google/google-shopping/resolve-merchant-url-for-a-product → /api-reference/google/google-shopping/offers
    • /api-reference/google/google-shopping/product-details → /api-reference/google/google-products/immersive-product-detail

Checks

  • mint broken-links: no broken links.
  • mint openapi-check openapi-google.json: valid.
  • scripts/check_credit_costs.py: selftest passes and all costs match.
  • scripts/sync_endpoint_lifecycle.py . against the live catalog: two runs leave the tree unchanged (the baseline on clean main was also unchanged). The live catalog still lists the two retired paths as active until the monorepo PR's portal-api deploy. Nothing in the docs declares them any more, so the sync has nothing to do either way.

Related PRs (SCR-764), merge in this order:

  1. Monorepo (surface manifests, catalog, portal, BadgerBot): https://github.com/scrape-badger/scrapebadger/pull/3666
  2. Python SDK 0.87.0: chore(SCR-764): remove google.shopping.product() and click() (0.87.0) scrapebadger-python#115
  3. Node SDK 0.87.0: chore(SCR-764): remove google.shopping.product() and click() (0.87.0) scrapebadger-node#107
  4. Docs (after the TODO(SCR-764) wording is final): chore(SCR-764): remove retired Shopping product/click docs, add Shopping offers API reference #222

🤖 Generated with Claude Code

…, add the offers reference (SCR-764)

GET /v1/google/shopping/product and GET /v1/google/shopping/product/click
answer 404 (retired by monorepo migrations 059/060), but the docs still
listed both; a customer called them from here (SB-001278).

Removed:
- api-reference/google/google-shopping/resolve-merchant-url-for-a-product
  and .../product-details (the latter documented GET /v1/google/shopping/product),
  and the google/shopping-click-enrichment guide, with their nav entries.
- Both paths from openapi-google.json, with the schemas only they used
  (ShoppingClickResponse, ShoppingProductResponse, ShoppingProductDetail,
  ShoppingSeller) and the click_link field of ShoppingProductResult.
- shopping.click()/shopping-click/google_shopping_product_click from the
  Google overview, CLI pages, MCP overview and eight MCP integration pages.

Added:
- GET /v1/google/shopping/offers in openapi-google.json (parameters from the
  live route: barcode, catalog_id, gl, hl, domain; ShoppingOffersResponse and
  ShoppingOffer schemas; 400/404/422/502 responses) and its API reference
  page api-reference/google/google-shopping/offers, next to search-products.
  The offers[].link description is provisional and carries a TODO(SCR-764)
  marker (an x-todo key in the spec, an MDX comment on the page).
- Permanent redirects: the click guide to google/shopping-offers, the
  resolve-merchant-url page to the new offers page, and product-details to
  google-products/immersive-product-detail.

Checked: mint broken-links (no broken links), mint openapi-check (valid),
scripts/check_credit_costs.py (match), and two runs of
scripts/sync_endpoint_lifecycle.py against the live catalog leave the tree
unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…irect as fallback); stock/delivery in extensions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0xGhostCasper
0xGhostCasper merged commit 0d63470 into main Dec 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants