# Ryanair API Documentation

<p><strong>Ryanair API Documentation</strong> Pass an origin IATA code. The answer lists each destination with its first and last flight date and the months it is served. One request performs one upstream lookup and costs one credit when it succeeds.</p>

- **Documentation:** [https://scrappa.co/docs/ryanair-api/ryanair_routes_served_periods](https://scrappa.co/docs/ryanair-api/ryanair_routes_served_periods)
- **API group:** Ryanair API
- **Endpoint:** `GET https://scrappa.co/api/ryanair/routes/served-periods`

## 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 |
| --- | --- | --- | --- |
| `origin` | string | Yes | Origin IATA code, e.g. DUB |

## Example response

```json
{
    "data": {
        "periods": [
            {
                "destination": "LTN",
                "lastFlightDate": "2026-10-24",
                "firstFlightDate": "2026-03-29"
            }
        ]
    },
    "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)
