# Trader Joe's Categories API Documentation

<p><strong>Trader Joe's Categories API</strong> returns the full category tree of traderjoes.com, for example Food and Beverages with their sub categories. Each category has an id, name, slug and product count. The slug matches the category slugs in search and product items.</p><p>The route has no parameters. Costs 1 credit per successful request. Failed requests are free.</p>

- **Documentation:** [https://scrappa.co/docs/traderjoes-api/traderjoes_categories](https://scrappa.co/docs/traderjoes-api/traderjoes_categories)
- **API group:** Trader Joe's API
- **Endpoint:** `GET https://scrappa.co/api/traderjoes/categories`

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

## Example response

```json
{
    "data": {
        "categories": [
            {
                "id": 8,
                "name": "Food",
                "slug": "food",
                "children": [
                    {
                        "id": 11,
                        "name": "Bakery",
                        "slug": "bakery",
                        "children": [
                            {
                                "id": 14,
                                "name": "Sliced Bread",
                                "slug": "sliced-bread",
                                "product_count": 23
                            },
                            {
                                "id": 17,
                                "name": "Loaves, Rolls, Buns",
                                "slug": "loaves-rolls-buns",
                                "product_count": 35
                            },
                            {
                                "id": 20,
                                "name": "Bagels",
                                "slug": "bagels",
                                "product_count": 11
                            },
                            {
                                "id": 23,
                                "name": "Tortillas & Flatbreads",
                                "slug": "tortillas-flatbreads",
                                "product_count": 13
                            },
                            {
                                "id": 26,
                                "name": "Sweet Stuff",
                                "slug": "sweet-stuff",
                                "product_count": 110
                            }
                        ],
                        "product_count": 192
                    },
                    {
                        "id": 29,
                        "name": "Cheese",
                        "slug": "cheese",
                        "children": [
                            {
                                "id": 32,
                                "name": "Slices, Shreds, Crumbles",
                                "slug": "slices-shreds-crumbles",
                                "product_count": 42
                            },
                            {
                                "id": 35,
                                "name": "Packaged for Snacking",
                                "slug": "packaged-for-snacking",
                                "product_count": 4
                            },
                            {
                                "id": 38,
                                "name": "Wedges, Wheels, Loaves, Logs",
                                "slug": "wedges-wheels-loaves-logs",
                                "product_count": 122
                            },
                            {
                                "id": 41,
                                "name": "Cream and Creamy Cheeses",
                                "slug": "cream-and-creamy-cheeses",
                                "product_count": 41
                            }
                        ],
                        "product_count": 209
                    }
                ],
                "product_count": 2710
            },
            {
                "id": 182,
                "name": "Beverages",
                "slug": "beverages",
                "children": [
                    {
                        "id": 185,
                        "name": "Juices & More",
                        "slug": "juices-more",
                        "product_count": 85
                    },
                    {
                        "id": 188,
                        "name": "Water (Sparkling & Still)",
                        "slug": "water-sparkling-still",
                        "product_count": 30
                    }
                ],
                "product_count": 499
            }
        ],
        "total_products": 28708
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "categories"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Upstream Unavailable | Trader Joe's could not be reached after several tries. This response is not billable. Retry shortly. |

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