# MyDealz Deals API Documentation

`GET /api/mydealz/mydealz.deals` Returns public deal cards with numeric EUR prices, discount, temperature, merchant and full-size images. Pass `tab` as hot, new or group and give `group_id` for group. Use `after` from `additional_data.cursors.next.after` in a previous response for the next REST page. A `page` above 1 without `after` uses the verified HTML fallback and honours that page. The group fallback needs the `group` slug from a deal card. Never returns page one under another page number.

## Credits

A successful request costs **1 credit**. Errors and challenges cost nothing. Clients are never rate limited.

- **Documentation:** [https://scrappa.co/docs/mydealz-api/mydealz_deals](https://scrappa.co/docs/mydealz-api/mydealz_deals)
- **API group:** MyDealz API
- **Endpoint:** `GET https://scrappa.co/api/mydealz/deals`

## 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 |
| --- | --- | --- | --- |
| `tab` | string | No | hot, new or group. Default hot. |
| `group_id` | integer | No | Group id from a deal card; required for group. |
| `group` | string | No | Group slug from a deal card; required for the group fallback on page 2 or later. |
| `after` | string | No | Opaque REST cursor from a previous response. |
| `page` | integer | No | Fallback page number, 1 to 50. |
| `limit` | integer | No | Cards per page, 1 to 50. |

## Example response

```json
{
    "data": [],
    "messages": [],
    "validation": [],
    "additional_data": {
        "billable": true,
        "credits_charged": 1,
        "endpoint_family": "deals"
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The deal does not exist. Non-billable. |
| 422 | Validation Error | A query parameter is missing, unknown or invalid. Unknown parameters are rejected, never ignored. Non-billable. |
| 503 | Upstream Unavailable | The public source could not be reached or answered with a challenge. 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)
