# RadarBox Flight API Documentation

<p><strong>RadarBox Flight API Documentation</strong> One flight leg from AirNav RadarBox. Send a fid (the id of a leg, found in flight-history answers) or a flight number with a UTC departure date. A fid works at any age: legs back to 2020-12-02 were read. A flight number with a date works inside the 7 day window; older dates answer no flight. With include_track the answer adds the track points of the leg (time, position, altitude, heading, speed, vertical rate, squawk, source). If you send a flight number or date with a fid and they do not belong to that leg, the answer has no flight and names the real fid in meta. An alias fid answers with the canonical leg. Empty answers and mismatches are free. Cost: 1 credit by fid, 4 by flight number and date, plus 9 when a track is returned. RadarBox shows 7 days back and 2 days ahead without a login. A date outside this window answers 200 with an empty list, depth_limit_days 7 and a note, and costs nothing. An older leg is reachable only by its fid (measured back to 2020-12-02). For flight number and date lookups far back, use /api/flightera/flight.</p>

- **Documentation:** [https://scrappa.co/docs/radarbox-api/radarbox_flight](https://scrappa.co/docs/radarbox-api/radarbox_flight)
- **API group:** RadarBox API
- **Endpoint:** `GET https://scrappa.co/api/radarbox/flight`

## 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 |
| --- | --- | --- | --- |
| `fid` | integer | No | RadarBox flight id, e.g. 3017263384. Send a fid, or a flight number with a date. |
| `flight_number` | string | No | Flight number, e.g. LH400. With a fid it checks that the leg belongs to this flight. |
| `date` | string | No | UTC departure day, YYYY-MM-DD. Required with a flight number and no fid. |
| `include_track` | boolean | No | true adds the track points of the leg. Adds 9 credits when points exist. |

## Example response

```json
{
    "data": {
        "flight": {
            "fid": 3017263384,
            "date": "2026-11-13",
            "track": {
                "count": 3,
                "points": [
                    {
                        "time": "2026-11-13T16:36:58Z",
                        "source": "ADSB",
                        "squawk": null,
                        "heading": 340,
                        "latitude": 50.04694,
                        "longitude": 8.56036,
                        "altitude_ft": null,
                        "ground_speed_kt": null,
                        "vertical_rate_fpm": 0
                    },
                    {
                        "time": "2026-11-13T17:05:11Z",
                        "source": "ADSB",
                        "squawk": "2505",
                        "heading": 340,
                        "latitude": 50.29848,
                        "longitude": 7.70843,
                        "altitude_ft": 17800,
                        "ground_speed_kt": 360,
                        "vertical_rate_fpm": 2400
                    },
                    {
                        "time": "2026-11-13T17:39:03Z",
                        "source": "ADSB",
                        "squawk": "2505",
                        "heading": 272,
                        "latitude": 51.68829,
                        "longitude": 1.90902,
                        "altitude_ft": 38000,
                        "ground_speed_kt": 453,
                        "vertical_rate_fpm": 0
                    }
                ],
                "playback_type": "replay"
            },
            "status": "landed",
            "airline": {
                "iata": "LH",
                "icao": "DLH",
                "name": "Lufthansa",
                "operating_iata": "LH",
                "operating_icao": "DLH",
                "operating_name": "Lufthansa"
            },
            "arrival": {
                "gate": "5",
                "actual": "2026-11-14T01:05:00Z",
                "airport": {
                    "city": "New York, NY",
                    "iata": "JFK",
                    "icao": "KJFK",
                    "name": "New York - John F Kennedy International Airport",
                    "state": "New York",
                    "country": "United States",
                    "latitude": 40.6398,
                    "longitude": -73.7789,
                    "timezone_name": "Eastern Standard Time",
                    "timezone_abbreviation": "EST",
                    "timezone_offset_hours": -5
                },
                "terminal": "1",
                "estimated": "2026-11-14T00:29:00Z",
                "scheduled": "2026-11-13T18:35:00Z",
                "local_date": "2026-11-13",
                "baggage_belt": null,
                "scheduled_local": "2026-11-13T13:35:00-05:00"
            },
            "aircraft": {
                "mode_s": "3C6704",
                "country": "DE",
                "type_icao": "A359",
                "type_name": "Airbus A350-941",
                "registration": "D-AIXD"
            },
            "callsign": "DLH400",
            "departure": {
                "gate": "Z66",
                "actual": "2026-11-13T16:37:00Z",
                "airport": {
                    "city": "Frankfurt",
                    "iata": "FRA",
                    "icao": "EDDF",
                    "name": "Frankfurt am Main International Airport",
                    "state": "Hesse",
                    "country": "Germany",
                    "latitude": 50.0264,
                    "longitude": 8.54313,
                    "timezone_name": "Central European Standard Time",
                    "timezone_abbreviation": "CET",
                    "timezone_offset_hours": 1
                },
                "terminal": "1",
                "estimated": "2026-11-13T16:50:00Z",
                "scheduled": "2026-11-13T15:00:00Z",
                "local_date": "2026-11-13",
                "baggage_belt": null,
                "scheduled_local": "2026-11-13T16:00:00+01:00"
            },
            "alias_fids": [
                3014506324
            ],
            "codeshares": [
                "UA8841",
                "SN7230",
                "ET1610",
                "NZ4226",
                "TG7722"
            ],
            "distance_km": 6189.7,
            "duration_type": "actual",
            "flight_number": "LH400",
            "duration_minutes": 453,
            "progress_percent": 100,
            "flight_number_icao": "DLH400",
            "delay_arrival_minutes": 390,
            "delay_departure_minutes": 97
        },
        "other_legs": []
    },
    "meta": {
        "credits": 10,
        "billable": true,
        "canonical_fid": 3017263384,
        "requested_fid": 3014506324,
        "endpoint_family": "flight"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter is missing or invalid. This response is not billable. |
| 404 | Not Found | RadarBox has no data for this airport or flight. This response is not billable. |
| 503 | Service Unavailable | RadarBox 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)
