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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/adsbexchange/`
**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

### 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/credits/adsbexchange/filter-aircraft \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-aircraft-by-callsign \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-aircraft-by-country \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-aircraft-by-country-subdivision \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-aircraft-by-hex \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-aircraft-by-registration \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-aircraft-in-radius \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-aircraft-near-airport \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-all-aircraft \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-subdivisions-by-country-code \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/adsbexchange/get-total-aircraft-count \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"api_key":"<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.