# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/flightradar/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/flightradar/get-airlines \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/flightradar/get-airports \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/flightradar/get-geoip \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/flightradar/get-nearby-flights \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/flightradar/search \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.