# dm Online Availability API Documentation

<p>Read the public online availability flag for one DAN. The availability field is passed through from the public source, so its shape may change. One credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/dm-api/dm_online_availability](https://scrappa.co/docs/dm-api/dm_online_availability)
- **API group:** dm-drogerie markt API
- **Endpoint:** `GET https://scrappa.co/api/dm/online-availability`

## 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 |
| --- | --- | --- | --- |
| `dan` | string | Yes | DAN from dm.search or dm.ids. |

## Example response

```json
{
    "data": {
        "id": "3104754",
        "availability": true
    },
    "meta": {
        "billable": true
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | The product id failed validation. No credit is charged. |
| 503 | Upstream Unavailable | The public data is temporarily unavailable. No credit is charged. |

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