# Ryanair API Documentation

<p><strong>Ryanair API Documentation</strong> No parameters. The answer holds every active airport with its IATA code, city, country, coordinates and time zone. Copy a code into any fare or flight endpoint. One request performs one upstream lookup and costs one credit when it succeeds.</p>

- **Documentation:** [https://scrappa.co/docs/ryanair-api/ryanair_airports_active](https://scrappa.co/docs/ryanair-api/ryanair_airports_active)
- **API group:** Ryanair API
- **Endpoint:** `GET https://scrappa.co/api/ryanair/airports/active`

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

## Example response

```json
{
    "data": {
        "cached": false,
        "airports": [
            {
                "city": {
                    "name": "Dublin"
                },
                "code": "DUB"
            }
        ]
    },
    "meta": {
        "credits": 1,
        "billable": true
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not 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)
