# Google Shopping Search

Search Google Shopping with locale, location, device, pagination, and Shopping filter controls. Treat next_start as the next offset to try, not a guarantee that another page contains results.

- **Documentation:** [https://scrappa.co/docs/google-shopping-api/google_shopping](https://scrappa.co/docs/google-shopping-api/google_shopping)
- **API group:** Google Shopping API
- **Endpoint:** `GET https://scrappa.co/api/google/shopping`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `q` | string | Yes | Product search query. |
| `gl` | string | No | Two-letter country code. Default: us. |
| `hl` | string | No | Two-letter interface language. Default: en. |
| `location` | string | No | Location name encoded as a best-effort canonical UULE. Cannot be combined with uule; provide uule directly when exact targeting is required. |
| `uule` | string | No | Encoded Google location. Cannot be combined with location. |
| `start` | integer | No | Zero-based pagination offset. Default: 0. |
| `device` | string | No | desktop, mobile, or tablet. Default: desktop. |
| `small_business` | boolean | No | Limit results to small businesses. Cannot be combined with shoprs. |
| `shoprs` | string | No | Opaque Shopping filter token returned by Google. Cannot be combined with small_business. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/google/shopping?q=iphone+15&gl=us&hl=en"
```

## Example response

```json
{
    "search_parameters": {
        "q": "iphone 15",
        "gl": "us",
        "hl": "en",
        "start": 0,
        "device": "desktop"
    },
    "shopping_results": [
        {
            "position": 1,
            "title": "Apple iPhone 15",
            "product_id": "9402654696244930073",
            "link": "https://www.google.com/shopping/product/9402654696244930073",
            "source": "Best Buy",
            "price": "$629.99",
            "extracted_price": 629.99,
            "delivery": "Free delivery",
            "rating": 4.7,
            "reviews": 32000,
            "thumbnail": "https://encrypted-tbn3.gstatic.com/shopping?q=tbn:example",
            "badges": [
                "Small business"
            ]
        }
    ],
    "pagination": {
        "current_page": 1,
        "start": 0,
        "next_start": 10
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The query, locale, location, device, pagination, or Shopping filters are invalid. |
| 503 | Google Shopping Unavailable | The upstream service is temporarily unavailable. Please retry shortly. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
