# ADS-B Exchange live military aircraft API

Get ADS-B Exchange source-classified military aircraft via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, raw, and retrieve structured data including source registration label, source position latitude, barometric altitude in feet, ground speed in knots, and source military-classification flag for source catalogue, and observation map.

Documentation: https://openany.si/ads-b-exchange/ads-b-exchange-live-military-aircraft-api/89ecbcd8-db42-409f-a280-a87de3ce5758/
API ID: 89ecbcd8-db42-409f-a280-a87de3ce5758
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/adsbexchange/v1/military
Page update time: 2026-12-03T02:47:13.457Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:47:11.710Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## ADS-B Exchange Military Aircraft API

Optionally use altitude, squawk, callsign\_prefix or type filters with limit/offset. military is a source classification; retain each observation time, position age and identifier without inferring mission or intent.

## What You Can Build

- **Source catalogue**: Retain classification alongside source identities.
- **Observation map**: Display available positions with age and units.

## Returned Data

| Field | Meaning |
| --- | --- |
| `aircraft[].hex` | Source ICAO 24-bit aircraft address |
| `aircraft[].registration` | Source registration label |
| `aircraft[].latitude` | Source position latitude |
| `aircraft[].altitude_baro_ft` | Barometric altitude in feet when available |
| `aircraft[].ground_speed_kt` | Ground speed in knots when available |
| `aircraft[].seconds_since_position` | Seconds since source position update |
| `aircraft[].military` | Source military-classification flag |
| `next_offset` | Next source result offset when present |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "ADS-B Exchange live military aircraft API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "min_altitude_ft": {
          "type": "number",
          "description": "Only aircraft at or above this barometric altitude (feet)."
        },
        "max_altitude_ft": {
          "type": "number",
          "description": "Only aircraft at or below this altitude (feet)."
        },
        "squawk": {
          "type": "string",
          "description": "Only aircraft squawking this code (4 octal digits)."
        },
        "callsign_prefix": {
          "type": "string",
          "description": "Only callsigns starting with this (e.g. `BAW`)."
        },
        "type": {
          "type": "string",
          "description": "Only this ICAO aircraft type (e.g. `A320`)."
        },
        "limit": {
          "type": "integer",
          "description": "Aircraft per page (1-500, default 100)."
        },
        "offset": {
          "type": "integer",
          "description": "Skip this many aircraft."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON are not supported.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "aircraft": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "adsb_version": {
            "type": "integer"
          },
          "aircraft_type": {
            "type": "string"
          },
          "altitude_baro_ft": {
            "type": "integer"
          },
          "altitude_geom_ft": {
            "type": "integer"
          },
          "callsign": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "emergency": {
            "type": "string"
          },
          "ground_speed_kt": {
            "type": "number"
          },
          "hex": {
            "type": "string"
          },
          "indicated_airspeed_kt": {
            "type": "null"
          },
          "interesting": {
            "type": "boolean"
          },
          "latitude": {
            "type": "number"
          },
          "longitude": {
            "type": "number"
          },
          "mach": {
            "type": "null"
          },
          "magnetic_heading_deg": {
            "type": "null"
          },
          "messages": {
            "type": "integer"
          },
          "military": {
            "type": "boolean"
          },
          "nac_p": {
            "type": "integer"
          },
          "nac_v": {
            "type": "integer"
          },
          "nic": {
            "type": "integer"
          },
          "on_ground": {
            "type": "boolean"
          },
          "outside_air_temp_c": {
            "type": "null"
          },
          "qnh_hpa": {
            "type": "number"
          },
          "receivers": {
            "type": "integer"
          },
          "registration": {
            "type": "string"
          },
          "roll_deg": {
            "type": "null"
          },
          "rssi": {
            "type": "number"
          },
          "sda": {
            "type": "integer"
          },
          "seconds_since_position": {
            "type": "number"
          },
          "seconds_since_seen": {
            "type": "number"
          },
          "selected_altitude_fms_ft": {
            "type": "null"
          },
          "selected_altitude_ft": {
            "type": "integer"
          },
          "selected_heading_deg": {
            "type": "number"
          },
          "sil": {
            "type": "integer"
          },
          "source": {
            "type": "string"
          },
          "squawk": {
            "type": "string"
          },
          "total_air_temp_c": {
            "type": "null"
          },
          "track_deg": {
            "type": "number"
          },
          "track_rate": {
            "type": "null"
          },
          "true_airspeed_kt": {
            "type": "null"
          },
          "true_heading_deg": {
            "type": "null"
          },
          "vertical_rate_baro_fpm": {
            "type": "integer"
          },
          "vertical_rate_geom_fpm": {
            "type": "null"
          },
          "wind_direction_deg": {
            "type": "null"
          },
          "wind_speed_kt": {
            "type": "null"
          }
        }
      }
    },
    "applied_filters": {
      "type": "object",
      "properties": {}
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    },
    "next_offset": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    },
    "time": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/adsbexchange/v1/military?limit=1&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "aircraft": [
    {
      "adsb_version": 2,
      "aircraft_type": "H60",
      "altitude_baro_ft": 1350,
      "altitude_geom_ft": 1600,
      "callsign": "SURF16",
      "category": "A7",
      "emergency": "none",
      "ground_speed_kt": 94.6,
      "hex": "ae5656",
      "indicated_airspeed_kt": null,
      "interesting": false,
      "latitude": 21.538284,
      "longitude": -158.041476,
      "mach": null,
      "magnetic_heading_deg": null,
      "messages": 84,
      "military": true,
      "nac_p": 9,
      "nac_v": 4,
      "nic": 8,
      "on_ground": false,
      "outside_air_temp_c": null,
      "qnh_hpa": 1019.2,
      "receivers": 1,
      "registration": "12-20445",
      "roll_deg": null,
      "rssi": -15.7,
      "sda": 2,
      "seconds_since_position": 0.1,
      "seconds_since_seen": 0.1,
      "selected_altitude_fms_ft": null,
      "selected_altitude_ft": 1504,
      "selected_heading_deg": 70.3,
      "sil": 3,
      "source": "adsb_icao",
      "squawk": "1200",
      "total_air_temp_c": null,
      "track_deg": 342.1,
      "track_rate": null,
      "true_airspeed_kt": null,
      "true_heading_deg": null,
      "vertical_rate_baro_fpm": -64,
      "vertical_rate_geom_fpm": null,
      "wind_direction_deg": null,
      "wind_speed_kt": null
    }
  ],
  "applied_filters": {},
  "cached": false,
  "count": 1,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:23:52.660Z",
  "next_offset": 1,
  "offset": 0,
  "time": "2026-11-19T12:23:52.001Z",
  "total": 247
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### What does military represent?
It is the source classification attached to the returned record, not a statement of a mission or current activity.

### How do I paginate?
limit accepts 1–500 and defaults to 100. Follow next_offset as offset.

### Which altitude units are used?
The filters use barometric altitude in feet. Geometric altitude and ground state remain separate fields.

### Does the result cover every military aircraft?
It contains the available source observations. Missing records do not establish that an aircraft does not exist or operate.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/ads-b-exchange/ads-b-exchange-live-military-aircraft-api/89ecbcd8-db42-409f-a280-a87de3ce5758/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
