# Sweetwater Product API Documentation

<p><strong>Sweetwater Product API Documentation</strong> Get one public Sweetwater product by the objectID from search or by a product url, absolute or relative. The response has prices, availability, rating breakdown, specs, inline reviews and variants with prices. Specs are name and value pairs; specs and variants are empty when the page publishes none. Prices are numbers in USD, dates use ISO 8601, ids pass unchanged and images are full-size URLs. 72 credits per request. Failed requests are never billed.</p>

- **Documentation:** [https://scrappa.co/docs/sweetwater-api/sweetwater_product](https://scrappa.co/docs/sweetwater-api/sweetwater_product)
- **API group:** Sweetwater API
- **Endpoint:** `GET https://scrappa.co/api/sweetwater/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 | No | objectID from a Sweetwater search result, e.g. SM7B |
| `url` | string | No | Product url from a Sweetwater search result |

## Example response

```json
{
    "data": {
        "jsonld": {
            "Product": {
                "offers": [
                    {
                        "price": 399,
                        "availability": "InStock"
                    }
                ],
                "productID": "SM7B",
                "aggregateRating": {
                    "ratingValue": 4.8,
                    "reviewCount": 1234
                }
            }
        },
        "product": {
            "brand": "Shure",
            "price": {
                "currency": "USD",
                "finalPrice": 399
            },
            "specs": [
                {
                    "name": "Type",
                    "value": "Dynamic"
                }
            ],
            "rating": {
                "count": 1234,
                "average": 4.8
            },
            "objectID": "SM7B",
            "description": "Dynamic studio microphone.",
            "productName": "Shure SM7B"
        },
        "variants": [
            {
                "price": {
                    "currency": "USD",
                    "finalPrice": 419
                },
                "objectID": "SM7B-BLK",
                "productName": "Shure SM7B Black"
            }
        ]
    },
    "meta": {
        "credits": 72,
        "billable": true,
        "endpoint_family": "product_jsonld"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | Supply an id or a url. Failed requests are not billed. |
| 503 | Upstream Blocked | The source refused this request. Failed requests are not billed. |

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