# Flightradar24 Flight History API Documentation

<p><strong>Flightradar24 Flight History API Documentation</strong> List the legs of a flight number (LH400) or of an aircraft registration (D-AIXO), newest first. Each leg has the status, aircraft, airline, origin, destination and the scheduled, real and estimated times. The flight_id is null when the leg is not live. Use page to go back further. has_more tells you if another page exists. A query with no legs answers 200 and costs no credit. Cost: 1 credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/flightradar24-api/flightradar24_flight_history](https://scrappa.co/docs/flightradar24-api/flightradar24_flight_history)
- **API group:** Flightradar24 API
- **Endpoint:** `GET https://scrappa.co/api/flightradar24/flight-history`

## 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 | Flight number or registration, e.g. LH400 or D-AIXO. |
| `fetch_by` | string | No | flight (default) or reg. |
| `limit` | integer | No | Legs per page, 1 to 100. Default: 10. |
| `page` | integer | No | Page number. Default: 1. |

## Example response

```json
{
    "data": {
        "page": 1,
        "count": 1,
        "query": "LH400",
        "flights": [
            {
                "times": {
                    "eta": null,
                    "real_arrival": null,
                    "real_departure": null,
                    "estimated_arrival": null,
                    "scheduled_arrival": "2026-11-11T18:35:00Z",
                    "estimated_departure": null,
                    "scheduled_departure": "2026-11-11T10:00:00Z"
                },
                "origin": {
                    "lat": 50.037796,
                    "lon": 8.555783,
                    "city": "Frankfurt",
                    "gate": null,
                    "iata": "FRA",
                    "icao": "EDDF",
                    "name": "Frankfurt Airport",
                    "baggage": null,
                    "country": "Germany",
                    "website": null,
                    "terminal": null,
                    "timezone": "Europe/Berlin",
                    "country_code": "DE",
                    "elevation_ft": null,
                    "utc_offset_s": 3600
                },
                "status": {
                    "live": false,
                    "text": "Scheduled",
                    "type": "departure",
                    "state": "scheduled",
                    "diverted": null,
                    "event_time": null
                },
                "airline": null,
                "aircraft": {
                    "hex": null,
                    "model": null,
                    "age_years": null,
                    "model_code": "359",
                    "registration": null,
                    "serial_number": null
                },
                "callsign": null,
                "codeshare": [],
                "flight_id": null,
                "destination": {
                    "lat": 40.639751,
                    "lon": -73.7789,
                    "city": "New York",
                    "gate": null,
                    "iata": "JFK",
                    "icao": "KJFK",
                    "name": "New York John F. Kennedy International Airport",
                    "baggage": null,
                    "country": "United States",
                    "website": null,
                    "terminal": null,
                    "timezone": "America/New_York",
                    "country_code": "US",
                    "elevation_ft": null,
                    "utc_offset_s": -18000
                },
                "flight_number": "LH400"
            }
        ],
        "fetch_by": "flight",
        "has_more": true
    },
    "meta": {
        "credits": 1,
        "billable": true,
        "endpoint_family": "flight_history"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A query parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | Flightradar24 could not be reached or changed its answer. This response is not billable. Retry later. |

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