# Best Buy Canada Autocomplete API Documentation

<p><strong>Best Buy Canada Autocomplete API Documentation</strong> Autocomplete a query prefix. The response has suggested terms and a brand flag for each. Use the terms as the query in search. One autocomplete 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-ca-api/bestbuy_ca_autocomplete](https://scrappa.co/docs/bestbuy-ca-api/bestbuy_ca_autocomplete)
- **API group:** Best Buy Canada API
- **Endpoint:** `GET https://scrappa.co/api/bestbuy-ca/autocomplete`

## 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. |
| `lang` | string | No | en-CA or fr-CA. |

## Example response

```json
{
    "data": {
        "query": "lapt",
        "terms": [
            "laptop"
        ],
        "suggestions": [
            {
                "name": "laptop",
                "isBrand": false
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "autocomplete"
    },
    "success": true
}
```

## Errors

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

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