# Albert Heijn Categories API Documentation

<p><strong>Albert Heijn Categories API</strong> returns public taxonomy ids and names for product search. Each id can be sent unchanged as taxonomyId to the search route. This is the public id source for Albert Heijn data.</p><p>Send a search term to receive the public taxonomy ids for that term. These ids are accepted unchanged by the search route. Costs 1 credit per successful request. Failed and empty answers are free.</p>

- **Documentation:** [https://scrappa.co/docs/albert-heijn-api/albert_heijn_categories](https://scrappa.co/docs/albert-heijn-api/albert_heijn_categories)
- **API group:** Albert Heijn API
- **Endpoint:** `GET https://scrappa.co/api/albert-heijn/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.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | Yes | Search term whose public taxonomy ids are returned |

## Example response

```json
{
    "data": {
        "count": 1,
        "categories": [
            {
                "id": "1000",
                "name": "Groente, aardappelen",
                "parent_id": null
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "categories"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Data unavailable | The source could not be reached. 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)
