# GAMMA Sitemap API Documentation

`GET /api/gamma/sitemap?kind=...` returns the family index, category URLs or product URLs in pages of `limit` entries from `offset`. Category slugs can be used as the search category filter.

## Credits

A successful request costs **1 credit**. Errors and empty results cost nothing. The response shows the charge in `meta.credits_charged`.

- **Documentation:** [https://scrappa.co/docs/gamma-api/gamma_sitemap](https://scrappa.co/docs/gamma-api/gamma_sitemap)
- **API group:** GAMMA API
- **Endpoint:** `GET https://scrappa.co/api/gamma/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 |
| --- | --- | --- | --- |
| `kind` | string | No | index, category or product. Default index. |
| `offset` | integer | No | First entry. Default 0. |
| `limit` | integer | No | Entries per page. Default 1000, maximum 5000. |

## Example request

```bash
#!/bin/bash

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

## Example response

```json
{
    "success": true,
    "site": "nl",
    "kind": "category",
    "offset": 0,
    "limit": 1000,
    "total_count": 1,
    "has_more": false,
    "entries": [
        {
            "loc": "https://www.gamma.nl/assortiment",
            "kind": "category"
        }
    ],
    "meta": {
        "endpoint_family": "gamma-sitemap",
        "billable": true,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing, unknown or malformed. Unknown parameters are rejected. Non-billable. |
| 503 | Upstream Unavailable | The upstream could not be reached or changed its public shape. Retryable and never billed. Clients are never rate limited. |

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