# Flightradar — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Track flights in real-time, search for specific flight details, and look up information about airports and airlines worldwide. Monitor nearby aircraft by location, identify which airlines operate specific routes, and get comprehensive aviation data all in one place.

**Category:** Travel | **Website:** [flightradar.com/](https://flightradar.com/) | **Docs:** [parse.bot/marketplace/45e51246-4878-4bbd-83fb-3407d00e3b7f/flightradar-com-api](https://parse.bot/marketplace/45e51246-4878-4bbd-83fb-3407d00e3b7f/flightradar-com-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-flightradar-com-api-45e51246/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_airlines

Get the full list of airlines tracked by Flightradar24. Returns airline data including IATA/ICAO codes, active status, logo metadata, modification timestamps, and URL slugs. No parameters required — returns the complete global airline database.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flightradar-com-api-45e51246/get_airlines \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_airports

Get the full list of airports tracked by Flightradar24. Returns comprehensive airport data including IATA/ICAO codes, geographic coordinates, city, country, altitude, runway size, and timezone information. No parameters required — returns the complete global airport database.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flightradar-com-api-45e51246/get_airports \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_geoip

Get approximate geographic location and regional settings based on the requesting IP address. Returns latitude, longitude, country code, region, EU membership flag, and a search radius in kilometers. Useful for determining the default bounding box for get_nearby_flights.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flightradar-com-api-45e51246/get_geoip \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_nearby_flights

Get all nearby flights within a specified geographic bounding box. Returns real-time aircraft positions, altitudes, speeds, routing, and metadata for each flight visible in the area. The bounding box is defined as lat_max,lat_min,lon_min,lon_max in decimal degrees. Global tracking stats are included alongside the flight list.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `bounds` | string | No | Bounding box as 'lat_max,lat_min,lon_min,lon_max' (decimal degrees). Defines the geographic area to scan for flights. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flightradar-com-api-45e51246/get_nearby_flights \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bounds":"<string>"}'
```

### search

Search for flights, airports, airlines, or aircraft by keyword. Returns matched results classified by type (operator, airport, live, schedule, aircraft) with count statistics. Useful for resolving airline codes, finding airports by name, or locating active flights by flight number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return from the server. |
| `query` | string | Yes | Search keyword (e.g., flight number like 'UA100', airport code like 'JFK', airline name like 'United'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-flightradar-com-api-45e51246/search \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>"}'
```
