# FlightAware Flight History API Documentation

<p><strong>FlightAware Flight History API Documentation</strong> List the legs of a flight number (LH400 or DLH400) or of an aircraft registration (D-AIXO) that FlightAware shows for the last 14 days, newest first. Each leg has the scheduled departure in UTC, origin, destination, aircraft type and status. Landed legs have the real departure and arrival. Legs have the same shape as the Flightradar24 flight history, with source flightaware. Fields the history page does not show are null. For gates, track and older dates use the flight endpoint. A flight number or registration with no legs answers 200 and costs no credit. Cost: 1 credit per successful request.</p>

- **Documentation:** [https://scrappa.co/docs/flightaware-api/flightaware_flight_history](https://scrappa.co/docs/flightaware-api/flightaware_flight_history)
- **API group:** FlightAware API
- **Endpoint:** `GET https://scrappa.co/api/flightaware/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 |
| --- | --- | --- | --- |
| `ident` | string | Yes | Flight number or registration, e.g. LH400, DLH400 or D-AIXO. |
| `fetch_by` | string | No | flight (default) or reg. |

## Example response

```json
{
    "data": {
        "count": 1,
        "ident": "DLH400",
        "query": "LH400",
        "flights": [
            {
                "times": {
                    "eta": null,
                    "real_arrival": "2026-11-11T18:10:00Z",
                    "real_departure": "2026-11-11T10:36:00Z",
                    "estimated_arrival": null,
                    "scheduled_arrival": null,
                    "estimated_departure": null,
                    "scheduled_departure": "2026-11-11T10:10:00Z"
                },
                "origin": {
                    "lat": null,
                    "lon": null,
                    "city": "Frankfurt am Main",
                    "gate": null,
                    "iata": "FRA",
                    "icao": "EDDF",
                    "name": "Frankfurt/Main",
                    "baggage": null,
                    "country": null,
                    "website": null,
                    "terminal": null,
                    "timezone": null,
                    "country_code": null,
                    "elevation_ft": null,
                    "utc_offset_s": 3600
                },
                "source": "flightaware",
                "status": {
                    "live": false,
                    "text": "Landed",
                    "type": "arrival",
                    "state": "landed",
                    "diverted": null,
                    "event_time": "2026-11-11T18:10:00Z"
                },
                "airline": null,
                "aircraft": {
                    "hex": null,
                    "model": null,
                    "age_years": null,
                    "model_code": "A359",
                    "registration": null,
                    "serial_number": null
                },
                "callsign": null,
                "codeshare": [],
                "flight_id": null,
                "destination": {
                    "lat": null,
                    "lon": null,
                    "city": "New York, NY",
                    "gate": null,
                    "iata": null,
                    "icao": "KJFK",
                    "name": "John F Kennedy Intl",
                    "baggage": null,
                    "country": null,
                    "website": null,
                    "terminal": null,
                    "timezone": null,
                    "country_code": null,
                    "elevation_ft": null,
                    "utc_offset_s": -18000
                },
                "flight_number": "LH400"
            }
        ],
        "fetch_by": "flight",
        "window_days": 14
    },
    "meta": {
        "billable": true,
        "credits_charged": 1,
        "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 | FlightAware 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)
