# MyDealz Search API Documentation

`GET /api/mydealz/mydealz.search` Returns public MyDealz deals that match `query`, with numeric EUR prices, discount, temperature, merchant and full-size images. REST is used first. Use `after` from `additional_data.cursors.next.after` in a previous response for the next REST page, or `page` on the verified HTML fallback. A result that breaks the requested page is never returned as page one.

## 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_search](https://scrappa.co/docs/mydealz-api/mydealz_search)
- **API group:** MyDealz API
- **Endpoint:** `GET https://scrappa.co/api/mydealz/search`

## 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 |
| --- | --- | --- | --- |
| `query` | string | Yes | Search keywords. Required. |
| `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": "search"
    }
}
```

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