# Xbox Store Search API Documentation

Search the Xbox Store by keyword. Returns games with title, price, sale price, discount, release date and a full-size image for US, DE and GB.

- **Documentation:** [https://scrappa.co/docs/xbox-api/xbox_search](https://scrappa.co/docs/xbox-api/xbox_search)
- **API group:** Xbox Store API
- **Endpoint:** `GET https://scrappa.co/api/xbox/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 keyword. Example: forza. |
| `region` | string | No | US, DE or GB. Defaults to US. |
| `page` | integer | No | 1-based page number. Defaults to 1. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/xbox/search?query=forza&region=US&page=1"
```

## Example response

```json
{
    "success": true,
    "data": {
        "total": 5,
        "page": 1,
        "items": [
            {
                "id": "9NP1P1WFS0LB",
                "title": "Forza Horizon",
                "platform": "Xbox",
                "currency": "USD",
                "price": 59.99,
                "original_price": 59.99,
                "sale_price": null,
                "discount": null,
                "release_date": "2016-10-11T00:00:00Z",
                "rating": 4.5,
                "review_count": 43414,
                "image": "https://store-images.s-microsoft.com/image/example.jpg"
            }
        ]
    },
    "meta": {
        "endpoint_family": "search",
        "billable": true
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter is missing or invalid. This response is not billable. |

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