# Best Buy Canada Category API Documentation

<p><strong>Best Buy Canada Category API Documentation</strong> Read one public category by its numeric id. The response has the name, product count, parent categories, sub categories with live ids and SEO text. Use the returned ids in search. One category request costs 1 credit. Failed requests are not billed. Not affiliated with Best Buy.</p>

- **Documentation:** [https://scrappa.co/docs/bestbuy-ca-api/bestbuy_ca_category](https://scrappa.co/docs/bestbuy-ca-api/bestbuy_ca_category)
- **API group:** Best Buy Canada API
- **Endpoint:** `GET https://scrappa.co/api/bestbuy-ca/category`

## 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 | Numeric category id from search or category. |
| `lang` | string | No | en-CA or fr-CA. |

## Example response

```json
{
    "data": {
        "id": "20352",
        "name": "Laptops",
        "seoText": "Shop laptops.",
        "productCount": 16735,
        "subCategories": [
            {
                "id": "20353",
                "name": "Gaming laptops"
            }
        ],
        "parentCategories": [
            {
                "id": "20001",
                "name": "Computers"
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "category"
    },
    "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)
