# BCC Sitemap API Documentation

GET /api/bcc/sitemap returns one typed list of public sitemap entries. Each entry has a type, path, URL and id. Only category entries are published; the sitemap has no product links, so get product ids from search. Pass type=category for a leaner result.

- **Documentation:** [https://scrappa.co/docs/bcc-api/bcc_sitemap](https://scrappa.co/docs/bcc-api/bcc_sitemap)
- **API group:** BCC API
- **Endpoint:** `GET https://scrappa.co/api/bcc/sitemap`

## 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 |
| --- | --- | --- | --- |
| `type` | string | No | Optional entry type. Only category is published. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/bcc/sitemap?type=category"
```

## Example response

```json
{
    "success": true,
    "items": [
        {
            "type": "category",
            "path": "/televisie",
            "url": "https://www.bcc.nl/televisie",
            "id": null
        }
    ],
    "item_count": 1,
    "meta": {
        "endpoint_family": "bcc-sitemap",
        "billable": true,
        "attempts": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Upstream Unavailable | The public sitemap could not be reached or parsed. Retryable and never 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)
