Google Shopping
POST /api/v1/google/shopping
Search Google Shopping for products, prices, merchants, ratings, reviews, and stock availability.
Overview
Search Google Shopping for products, prices, merchants, ratings, reviews, and stock availability.
POST /api/v1/google/shopping
Method: POST Path: /api/v1/google/shopping Category: Search Engine
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| country | string | Optional | Country code to localise results, e.g. us, gb, de. |
| language | string | Optional | Interface language code, e.g. en, de, fr. |
| num_results | integer | Optional | Maximum number of products to return (1-100). |
| query | string | Required | Search keyword for products or full Google Shopping search URL, e.g. "Sony WH-1000XM5". |
| url | string | Optional | Full Google Shopping search URL. |
Request Example
Google Shopping Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/google/shopping" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"country": "us", "language": "en", "num_results": "20", "query": "example", "url": "example"}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "data": [ { "product_feed": { "product_title": "string", "product_id": "1234567890", "thumbnail_images": [ "string" ], "direct_merchant_links": [ "string" ], "base_price": "string", "shipping_cost": 0.0, "total_calculated_price": "string", "currency": "USD", "seller_store_name": "string", "merchant_rating": 0.0, "product_rating": 0.0, "stock_status": "In stock", "discount_badges": [ "string" ] } } ], "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "Google Shopping", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| data[].product_feed | object | Yes | Product details. |
| data[].product_feed.product_title | string | Yes | Product title. |
| data[].product_feed.product_id | string | Yes | Google product ID prefixed with 'gpid_'. |
| data[].product_feed.thumbnail_images | array<string> | Yes | Product image URLs. |
| data[].product_feed.direct_merchant_links | array<string> | Yes | Merchant or Google Shopping product page URLs. |
| data[].product_feed.base_price | string | null | Yes | Item price with currency symbol (e.g. '$328.00'). |
| data[].product_feed.shipping_cost | number | null | Yes | Shipping cost as a number (0.0 for free or unknown shipping). |
| data[].product_feed.total_calculated_price | string | null | Yes | Price plus shipping with currency symbol. |
| data[].product_feed.currency | string | Yes | ISO currency code (e.g. 'USD'). |
| data[].product_feed.seller_store_name | string | null | Yes | Merchant or store name. |
| data[].product_feed.merchant_rating | number | null | Yes | Merchant rating out of 5. |
| data[].product_feed.product_rating | number | null | Yes | Product rating out of 5. |
| data[].product_feed.stock_status | string | Yes | 'In stock' or 'Out of stock'. |
| data[].product_feed.discount_badges | array<string> | Yes | Discount labels (e.g. '18% off'). |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/google/shopping?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
query,country,language,num_results,url example,us,en,20,example
Pricing & Rate Limits
Endpoint Pricing
$0.005 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |