Google Shopping
Retrieve shopping with the Google API. The request accepts a country code and a language code when provided. Use it for search visibility research or technical SEO. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
- Selected price
- $0.00015 / callPublished pricing
- Sellers / APIs
- 2 / 4
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
Google Shopping
Prepare your request, then continue with your agent.
Selected price
$0.00015 / call
- Provider
- API
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
resultsobject[]gpcidstringheadline_offer_docidstringmerchant_urlstringstatusstring
submit_feedback_for_this_response_herestringsummaryobjectfailedintegerrequestedintegerresolvedinteger
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
results?: Array<{
gpcid?: string;
headline_offer_docid?: string;
merchant_url?: string;
status?: string;
}>;
submit_feedback_for_this_response_here?: string;
summary?: {
failed?: number;
requested?: number;
resolved?: number;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
| Google Shopping Product · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
Current Google Shopping Merchant URLs · POST · View API reference | $0.00015 / call | — | —successP50— | |
| Google Shopping · POST · View API reference | $0.00015 / call | —Select to load statistics | —successP50— | |
| Serper Shopping · POST · View API reference | $0.002 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.00015
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0.015
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/google/shopping/merchant-urls- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/google/shopping/merchant-urls' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"gl": "us",
"hl": "en",
"products": [
{
"gpcid": "2786756917538688235",
"headline_offer_docid": "5148952067814683768",
"merchant": "Target"
}
]
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
timeout | URL query parametersquery | number | No | Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget. maximum: 90 |
gl | JSON request bodybody | string | No | Use the same country code as the original Shopping Search. Defaults to us. pattern: ^[a-zA-Z]{2}$ |
hl | JSON request bodybody | string | No | Use the same language code as the original Shopping Search. Defaults to en. pattern: ^[a-zA-Z]{2,3}(?:-[a-zA-Z]{2,4})?$ |
products | JSON request bodybody | array | Yes | Send 1–100 headline offers. Each item requires merchant and headline_offer_docid from Shopping Search. minItems: 1 · maxItems: 100 Nested fields and variants
Nested fields and variants
|
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"results": [
{
"gpcid": "2786756917538688235",
"headline_offer_docid": "5148952067814683768",
"merchant_url": "https://www.target.com/p/hamilton-beach-12-cup-programmable-coffee-maker-black-46290/-/A-52580270",
"status": "resolved"
}
],
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token",
"summary": {
"failed": 0,
"requested": 1,
"resolved": 1
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# Google Shopping
Retrieve shopping with the Google API. The request accepts a country code and a language code when provided. Use it for search visibility research or technical SEO. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.
## Available implementations
litescrape · Google Shopping Product: https://openany.si/markets/apis/capabilities/google-shopping?offering=08738b3a-e06f-4c25-ba0d-86ff05d2225c · $0.00015 / call
litescrape · Google Shopping Merchant URLs: https://openany.si/markets/apis/capabilities/google-shopping?offering=7f8840e1-b06f-496c-b354-388452f9e49a · $0.00015 / call
litescrape · Google Shopping: https://openany.si/markets/apis/capabilities/google-shopping?offering=b08de6ff-e5b4-4d03-94d5-18f436c3e275 · $0.00015 / call
serper · Serper Shopping: https://openany.si/markets/apis/capabilities/google-shopping?offering=a69e56a2-bfc3-4e71-a43f-dae23651bfda · $0.002 / call
## Selected API contract
Documentation: https://openany.si/apis/7f8840e1-b06f-496c-b354-388452f9e49a
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/google/shopping/merchant-urls
Price: $0.00015 / call
Provider: litescrape
Contract revision: 4
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/google/shopping/merchant-urls' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"gl": "us",
"hl": "en",
"products": [
{
"gpcid": "2786756917538688235",
"headline_offer_docid": "5148952067814683768",
"merchant": "Target"
}
]
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "Google Shopping Merchant URLs",
"endpoint": "https://api.openany.si/v1/agent-apis/litescrape/api/google/shopping/merchant-urls",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"description": "Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.",
"location": "query",
"maximum": "90",
"name": "timeout",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Get direct merchant URLs for Google Shopping offers.",
"json_schema": {
"additionalProperties": false,
"examples": [
{
"gl": "us",
"hl": "en",
"products": [
{
"gpcid": "2786756917538688235",
"headline_offer_docid": "5148952067814683768",
"merchant": "Target"
}
]
}
],
"properties": {
"gl": {
"default": "us",
"description": "Use the same country code as the original Shopping Search. Defaults to us.",
"pattern": "^[a-zA-Z]{2}$",
"title": "Gl",
"type": "string",
"x-litescrape": {
"group": 0,
"label": "Country",
"summary": "Use the same country code as the original Shopping Search. Defaults to us."
}
},
"hl": {
"default": "en",
"description": "Use the same language code as the original Shopping Search. Defaults to en.",
"pattern": "^[a-zA-Z]{2,3}(?:-[a-zA-Z]{2,4})?$",
"title": "Hl",
"type": "string",
"x-litescrape": {
"group": 0,
"label": "Language",
"summary": "Use the same language code as the original Shopping Search. Defaults to en."
}
},
"products": {
"description": "Send 1–100 headline offers. Each item requires merchant and headline_offer_docid from Shopping Search.",
"items": {
"additionalProperties": false,
"properties": {
"gpcid": {
"anyOf": [
{
"pattern": "^[0-9]{1,20}$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Optional product ID for correlation; not used for lookup.",
"title": "Gpcid"
},
"headline_offer_docid": {
"description": "Exact offer ID from Shopping Search; required.",
"pattern": "^[0-9]{1,20}$",
"title": "Headline Offer Docid",
"type": "string"
},
"merchant": {
"description": "Copy source from Shopping Search; required for grouping offer lookups.",
"maxLength": 200,
"minLength": 1,
"title": "Merchant",
"type": "string"
}
},
"required": [
"headline_offer_docid",
"merchant"
],
"title": "Product",
"type": "object"
},
"maxItems": 100,
"minItems": 1,
"title": "Products",
"type": "array",
"x-litescrape": {
"group": 0,
"label": "Headline offers",
"summary": "Send 1–100 headline offers. Each item requires merchant and headline_offer_docid from Shopping Search."
}
}
},
"required": [
"products"
],
"title": "Request",
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "150",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": {
"gl": "us",
"hl": "en",
"products": [
{
"gpcid": "2786756917538688235",
"headline_offer_docid": "5148952067814683768",
"merchant": "Target"
}
]
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"results": [
{
"gpcid": "2786756917538688235",
"headline_offer_docid": "5148952067814683768",
"merchant_url": "https://www.target.com/p/hamilton-beach-12-cup-programmable-coffee-maker-black-46290/-/A-52580270",
"status": "resolved"
}
],
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token",
"summary": {
"failed": 0,
"requested": 1,
"resolved": 1
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
timeout- Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.
body- Get direct merchant URLs for Google Shopping offers.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/litescrape/api/google/shopping/merchant-urls' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "gl": "us", "hl": "en", "products": [ { "gpcid": "2786756917538688235", "headline_offer_docid": "5148952067814683768", "merchant": "Target" } ] }'Check the response
Sample response · Documented HTTP 200
Sample response{ "results": [ { "gpcid": "2786756917538688235", "headline_offer_docid": "5148952067814683768", "merchant_url": "https://www.target.com/p/hamilton-beach-12-cup-programmable-coffee-maker-black-46290/-/A-52580270", "status": "resolved" } ], "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token", "summary": { "failed": 0, "requested": 1, "resolved": 1 } }