# Empik Public Sitemap URLs API Documentation

`GET /api/empik/ids` `GET /api/empik/ids` lists the URLs published in the public sitemap index. `map` accepts only `index`. Child sitemaps are not read here: their product entries are gzip files that do not expose ids through the public text surface. Use the autocomplete route for product ids and category ids that work unchanged on the reviews, specs and offers routes. This route is a URL corpus, not a price source.

## Credits

A successful request costs **1 credit**. Errors and challenges cost nothing. The response shows the charge in `meta.credits_charged`. Clients are never rate limited.

- **Documentation:** [https://scrappa.co/docs/empik-api/empik_ids](https://scrappa.co/docs/empik-api/empik_ids)
- **API group:** Empik API
- **Endpoint:** `GET https://scrappa.co/api/empik/ids`

## 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 (default and only accepted value). |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/empik/ids"
```

## Example response

```json
{
    "success": true,
    "currency": "PLN",
    "map": "index",
    "returned": 2,
    "maps": [
        "https://www.empik.com/sitemap/news-1.xml.gz"
    ],
    "meta": {
        "endpoint_family": "empik-ids",
        "billable": true,
        "attempts": 1,
        "credits_charged": 1
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The public source has no record for that id (`not_found`). Non-billable. |
| 422 | Filter Not Available | A requested filter or page cannot be honoured by the public source (`unsupported_filter`). Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown, conflicting or unusable. Unknown parameters are rejected. Non-billable. |
| 503 | Upstream Unavailable | The source could not be reached or changed its response shape (`upstream_blocked`, `upstream_unavailable`, `parser_drift`). 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)
