# Adsbexchange — 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 live aircraft worldwide by location, flight number, registration, or type to monitor real-time positions, altitudes, and flight identifiers. Filter results by geographic areas, airports, countries, or custom radius searches to find exactly the flights you're interested in.

**Category:** Travel | **Website:** [adsbexchange.com/](https://adsbexchange.com/) | **Docs:** [parse.bot/marketplace/25e51f08-d8af-4124-806b-daaa95a7a657/adsbexchange-com-api](https://parse.bot/marketplace/25e51f08-d8af-4124-806b-daaa95a7a657/adsbexchange-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-adsbexchange-com-api-25e51f08/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### filter_aircraft

Filters and returns aircraft matching provided criteria. Supports logical AND/OR operators.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |
| `filters` | array | Yes | List of filter definitions: [{"property": "alt_baro", "operator": "le", "value": 5000}] |
| `logical_operator` | string | No | Logical operator to combine filters: 'and' or 'or' |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/filter_aircraft \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>","filters":"<array>","logical_operator":"<string>"}'
```

### get_aircraft_by_callsign

Returns real-time data for aircraft by callsign(s).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |
| `callsigns` | string | Yes | Callsign or comma-separated list of callsigns (e.g. UAL123) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_aircraft_by_callsign \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>","callsigns":"<string>"}'
```

### get_aircraft_by_country

Returns aircraft within the boundaries of a given country.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |
| `country` | string | Yes | ISO 3166-1 alpha-2 country code (e.g. US, CA) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_aircraft_by_country \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>","country":"<string>"}'
```

### get_aircraft_by_country_subdivision

Returns aircraft within a specific state or province.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |
| `country` | string | Yes | ISO 3166-1 alpha-2 country code (e.g. US) |
| `subdivision` | string | Yes | ISO 3166-2 subdivision code (e.g. CA or US-CA) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_aircraft_by_country_subdivision \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>","country":"<string>","subdivision":"<string>"}'
```

### get_aircraft_by_hex

Returns real-time data for aircraft by ICAO hex code(s).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |
| `hex_codes` | string | Yes | ICAO hex code or comma-separated list of hex codes |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_aircraft_by_hex \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>","hex_codes":"<string>"}'
```

### get_aircraft_by_registration

Returns real-time data for aircraft by registration (tail number).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |
| `registrations` | string | Yes | Registration number or comma-separated list of registrations |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_aircraft_by_registration \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>","registrations":"<string>"}'
```

### get_aircraft_in_radius

Returns aircraft within a given radius (in nautical miles) of a lat/lon coordinate.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |
| `dist` | number | Yes | Radius in nautical miles |
| `lat` | number | Yes | Latitude of center point |
| `lon` | number | Yes | Longitude of center point |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_aircraft_in_radius \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>","dist":"<number>","lat":"<number>","lon":"<number>"}'
```

### get_aircraft_near_airport

Returns aircraft within 5 nautical miles of a specific airport (by ICAO airport code).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `airport` | string | Yes | ICAO airport code (e.g. KSFO) |
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_aircraft_near_airport \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"airport":"<string>","api_key":"<string>"}'
```

### get_all_aircraft

Returns all aircraft currently being tracked globally. Returns full ADS-B data including lat, lon, altitude, speed, heading, callsign, ICAO hex, and more.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_all_aircraft \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>"}'
```

### get_subdivisions_by_country_code

Returns available state/province subdivisions for a country.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |
| `country` | string | Yes | ISO 3166-1 alpha-2 country code (e.g. US) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_subdivisions_by_country_code \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>","country":"<string>"}'
```

### get_total_aircraft_count

Returns only the count of aircraft currently being tracked globally.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `api_key` | string | Yes | ADSB Exchange API Key (X-Api-Key) |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-adsbexchange-com-api-25e51f08/get_total_aircraft_count \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<string>"}'
```
