# GOG Deals API Documentation

List currently discounted public GOG games. Returns the same rich rows as search with numeric base and sale prices and a discount percentage. A valid empty result is billable.

- **Documentation:** [https://scrappa.co/docs/gog-api/gog_deals](https://scrappa.co/docs/gog-api/gog_deals)
- **API group:** GOG API
- **Endpoint:** `GET https://scrappa.co/api/gog/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 |
| --- | --- | --- | --- |
| `region` | string | No | US, DE or GB. Defaults to US. |
| `sort` | string | No | relevance, rating, release_date, price_asc or price_desc. |
| `page` | integer | No | Page number, 1 to 100. Defaults to 1. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/gog/deals?region=US&sort=relevance&page=1"
```

## Example response

```json
{
    "success": true,
    "data": {
        "items": [],
        "page": 1,
        "total_pages": 1,
        "total": 0,
        "region": "US",
        "sort": "relevance"
    },
    "meta": {
        "endpoint_family": "gog_deals",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 503 | Upstream Unavailable | The source could not be reached. Retryable and never billed. |

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