# Google Shopping Search API (google_shopping.search)

- Canonical page: https://everyinfra.com/en/google-shopping-api/search
- Endpoint: POST /api/v1/social with {"platform": "google_shopping", "action": "search", "params": {...}}
- Price: $0.000556 per call ($0.56 per 1,000 requests); failed and empty results are not charged
- Returns: list, default 20, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=google_shopping&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | The product search term, such as `wireless earbuds`. |
| country | not declared | no | not declared | A two-letter country code such as `us`, `gb` or `de` for the Google Shopping market to search (default `us`). Prices are in that market's currency. |
| language | not declared | no | not declared | A two-letter language code such as `en` or `de` for titles and labels (default `en`). |
| max_price | not declared | no | not declared | The highest price to include; not below `min_price`. |
| min_price | not declared | no | not declared | The lowest price to include, in the currency of the `country` market; 0 or more. |
| sort | not declared | no | not declared | Sort order: `price_low` (price low to high), `price_high` (price high to low) or `rating` (best rated first). Leave it out for relevance. |
| limit | integer (1–100) | no | 20 | The most rows to return in this call, an integer from 1 to 100. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| rank | platform-native meaning |
| title | Title. null when the platform has no titles (for example text-only posts). |
| product_id | Google Shopping product ID (digits) that groups every merchant offer for the same product; missing on a few rows. |
| offer_id | platform-native meaning |
| image_id | platform-native meaning |
| price_text | Price as displayed, with currency symbol and local formatting (such as $29.99). |
| price | The number parsed from price_text, in the currency of the searched country; it carries no currency code. |
| old_price_text | platform-native meaning |
| old_price | platform-native meaning |
| merchant | The merchant whose offer this row shows. |
| multiple_merchants | Whether more than one merchant sells this product. |
| rating | Rating. **The scale varies by platform**: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10). Convert with rating_scale before comparing across platforms, or the comparison can come out backwards. |
| rating_scale | Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating. |
| review_count | Number of reviews, for product and business capabilities. null means not disclosed, not 0. |
| image_url | Image link. Capabilities with several images may return an image_urls array. |
| url | Link to the record on the platform. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "google_shopping",
  "action": "search",
  "params": {
    "keyword": "wireless earbuds"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "google_shopping",
        "action": "search",
        "params": {
            "keyword": "wireless earbuds",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "google_shopping",
  "action": "search",
  "results": [
    {
      "rank": …,
      "title": …,
      "product_id": …,
      "offer_id": …,
      "image_id": …,
      "price_text": …,
      "price": …,
      "old_price_text": …,
      "old_price": …,
      "merchant": …,
      "multiple_merchants": …,
      "rating": …,
      "rating_scale": …,
      "review_count": …,
      "image_url": …,
      "url": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=google_shopping
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
