# PriceSpy Product API Documentation

GET /api/pricespy/product returns the JSON-LD product, shop offers with numeric prices and the embedded price-history points for a product id from autocomplete or search.

- **Documentation:** [https://scrappa.co/docs/pricespy-api/pricespy_product](https://scrappa.co/docs/pricespy-api/pricespy_product)
- **API group:** PriceSpy API
- **Endpoint:** `GET https://scrappa.co/api/pricespy/product`

## 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 |
| --- | --- | --- | --- |
| `id` | string | Yes | Product id from autocomplete or search. |

## Example response

```json
{
    "meta": {
        "attempts": 1,
        "billable": true
    },
    "offers": [
        {
            "shop": "Example Shop",
            "price": {
                "value": 649,
                "currency": "GBP"
            }
        }
    ],
    "history": [],
    "product": [],
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | One or more query parameters failed validation. |
| 503 | Upstream Unavailable | The public source is temporarily unavailable through every approved route. |

## 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)
