Airport Gap · Example Payload

Post Airports Distance

AirportsAviationTransportationIATAICAODistance CalculationGeolocation

Post Airports Distance is an example object payload from Airport Gap, with 3 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

summaryrequestresponse

Example Payload

Raw ↑
{
  "summary": "POST /airports/distance — calculate distance between JFK and LAX",
  "request": {
    "method": "POST",
    "url": "https://airportgap.com/api/airports/distance",
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "from": "JFK",
      "to": "LAX"
    }
  },
  "response": {
    "status": 200,
    "headers": {
      "Content-Type": "application/json"
    },
    "body": {
      "data": {
        "id": "JFK-LAX",
        "type": "airport_distance",
        "attributes": {
          "from_airport": {
            "id": "JFK",
            "type": "airport",
            "attributes": {
              "name": "John F. Kennedy International Airport",
              "city": "New York",
              "country": "United States",
              "iata": "JFK",
              "icao": "KJFK",
              "latitude": "40.639751",
              "longitude": "-73.778925",
              "altitude": 13,
              "timezone": "America/New_York"
            }
          },
          "to_airport": {
            "id": "LAX",
            "type": "airport",
            "attributes": {
              "name": "Los Angeles International Airport",
              "city": "Los Angeles",
              "country": "United States",
              "iata": "LAX",
              "icao": "KLAX",
              "latitude": "33.942536",
              "longitude": "-118.408075",
              "altitude": 125,
              "timezone": "America/Los_Angeles"
            }
          },
          "miles": 2475.6,
          "kilometers": 3984.2,
          "nautical_miles": 2150.8
        }
      }
    }
  }
}

Work with this as data

Every example here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for examples

4 MCP tools reach this
  • find_examplesBrowse and filter every example in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This example
curl "https://apis.io/api/v1/examples/post-airports-distance"
All examples
curl "https://apis.io/api/v1/examples?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.