# Dunelm Sitemap API Documentation

<p><strong>Dunelm Sitemap API</strong> reads the public sitemap index and its five child maps. The index lists the available maps. A child map lists urls with an ISO date, an optional product id and a type of product, category or static. Use those ids unchanged on the Product and Reviews routes.</p><p><strong>Credits:</strong> 1 credit per successful request. Failed requests are not billed.</p>

- **Documentation:** [https://scrappa.co/docs/dunelm-api/dunelm_sitemap](https://scrappa.co/docs/dunelm-api/dunelm_sitemap)
- **API group:** Dunelm API
- **Endpoint:** `GET https://scrappa.co/api/dunelm/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 |
| --- | --- | --- | --- |
| `map` | string | No | index, product-1, product-2, product-3, category or static. Default index. |
| `page` | integer | No | One-based page inside the selected map. |
| `per_page` | integer | No | Items per page, up to 1000. Default 1000. |

## Example response

```json
{
    "data": {
        "map": "index",
        "maps": [
            "product-1",
            "product-2",
            "product-3",
            "category",
            "static"
        ],
        "items": [
            {
                "id": null,
                "url": "https://www.dunelm.com/sitemap/product-1-sitemap.xml",
                "type": "static",
                "lastmod": null
            }
        ],
        "source": "dunelm",
        "pagination": {
            "page": 1,
            "total": 5,
            "per_page": 1000,
            "total_pages": 1,
            "has_next_page": false
        }
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "sitemap"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The map has no items on the requested page. Not billed. |
| 422 | Validation Error | Send a valid sitemap map name. This response is not billed. |
| 503 | Upstream Unavailable | Dunelm sitemap is temporarily unavailable. 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)
