# Apotea Public Product Ids API Documentation

`GET /api/apotea/apotea.sitemap` returns public logged-out Apotea data as JSON. Prices are numbers in SEK, images are full-size URLs, and each card carries a `slug` plus a numeric `id`. Pass that `slug` unchanged as `product?id=`. Requested sort is honoured and no page or filter is mislabelled. Reviews, page 2+, facet filters, autocomplete and sale-price splits are not published. Internal transport details never appear in a response.

## Credits

A successful request costs **31 credits**. Errors, challenges and empty results cost nothing. The charge appears in `meta.credits_charged`. Clients are never rate limited.

- **Documentation:** [https://scrappa.co/docs/apotea-api/apotea_sitemap](https://scrappa.co/docs/apotea-api/apotea_sitemap)
- **API group:** Apotea API
- **Endpoint:** `GET https://scrappa.co/api/apotea/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 |
| --- | --- | --- | --- |
| `file` | string | No | index (default) or products. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/apotea/sitemap?file=index"
```

## Example response

```json
{
    "success": true,
    "file": "index",
    "type": "index",
    "returned": 2,
    "truncated": false,
    "urls": [],
    "ids": null,
    "meta": {
        "endpoint_family": "sitemap",
        "billable": true,
        "attempts": 1,
        "credits_charged": 31
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | No Apotea product exists for that id (`not_found`). Non-billable. |
| 422 | Validation Error | A parameter is missing, unknown or not published by the storefront. Non-billable. |
| 503 | Upstream Unavailable | The source could not be reached, answered with a challenge, or changed its 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)
