# Best Buy Suggest API Documentation

<p><strong>Best Buy Suggest API Documentation</strong> Autocomplete a query prefix. The response has suggested terms, category ids and names, SKU ids and names, and a spell check suggestion. Use the SKU ids in the reviews and availability endpoints. This is the public id source of the Best Buy API. One suggest request costs 1 credit. A prefix without suggestions returns an empty list and is not billed. Failed requests are not billed. Not affiliated with Best Buy.</p>

- **Documentation:** [https://scrappa.co/docs/bestbuy-api/bestbuy_suggest](https://scrappa.co/docs/bestbuy-api/bestbuy_suggest)
- **API group:** Best Buy US API
- **Endpoint:** `GET https://scrappa.co/api/bestbuy/suggest`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Prefix to autocomplete, 1 to 100 characters. |

## Example response

```json
{
    "data": {
        "query": "sony head",
        "terms": [
            "sony headphones",
            "sony headphones wireless"
        ],
        "products": [
            {
                "sku": "6505727",
                "name": "Sony WH-1000XM5 Wireless Headphones"
            }
        ],
        "categories": [
            {
                "id": "cat00000",
                "name": "Headphones"
            }
        ],
        "spell_check": {
            "original_query": null,
            "corrected_query": "sony headphones"
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "suggest"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. Not billable. |
| 502 | Upstream Unavailable | Best Buy did not answer or sent unreadable data. Not billable. Retry later. |

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