{
  "x402Version": 2,
  "id": 36958,
  "slug": "36958",
  "resource": "https://api.vextorium.com/v1/airport-distance",
  "description": "Great-circle distance between two airports by IATA or ICAO code in km, miles and nautical miles, bearing, approximate flight time and estimated economy-class CO2 per passenger.",
  "type": "http",
  "serviceName": "Vextorium",
  "resourceType": "Travel",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "HcjfmZLgWRZzwj4deEiS7pewc4KBYSw39mW5nTyt3pz2",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "3000",
      "amountUsd": 0.003,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:10",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
      "amount": "3000",
      "maxTimeoutSeconds": 604900
    },
    {
      "scheme": "exact",
      "network": "eip155:5042",
      "payTo": "0xb9f06D2734B7E9D7b21B64C4D8b95bd774b71aCf",
      "asset": "0x3600000000000000000000000000000000000000",
      "amount": "3000",
      "maxTimeoutSeconds": 604900
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "co2_per_passenger_kg_approx": {
            "type": [
              "number",
              "null"
            ]
          },
          "destination": {
            "properties": {
              "altitude_m": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "iata": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "icao": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lat": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "lon": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "regular_flights": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": [
              "object",
              "null"
            ]
          },
          "distance_km": {
            "type": [
              "number",
              "null"
            ]
          },
          "distance_miles": {
            "type": [
              "number",
              "null"
            ]
          },
          "distance_nautical_miles": {
            "type": [
              "number",
              "null"
            ]
          },
          "flight_time_approx_h": {
            "type": [
              "number",
              "null"
            ]
          },
          "initial_bearing_degrees": {
            "type": [
              "number",
              "null"
            ]
          },
          "note": {
            "type": [
              "string",
              "null"
            ]
          },
          "origin": {
            "properties": {
              "altitude_m": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "city": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "country": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "iata": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "icao": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "lat": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "lon": {
                "type": [
                  "number",
                  "null"
                ]
              },
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "region": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "regular_flights": {
                "type": [
                  "boolean",
                  "null"
                ]
              },
              "type": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "type": [
              "object",
              "null"
            ]
          }
        },
        "type": [
          "object",
          "null"
        ]
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "destination": "JFK",
            "origin": "MAD"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "co2_per_passenger_kg_approx": 686,
            "destination": {
              "altitude_m": 4,
              "city": "New York",
              "country": "US",
              "iata": "JFK",
              "icao": "KJFK",
              "lat": 40.639447,
              "lon": -73.779317,
              "name": "John F. Kennedy International Airport",
              "region": "US-NY",
              "regular_flights": true,
              "type": "large"
            },
            "distance_km": 5775.071,
            "distance_miles": 3588.463,
            "distance_nautical_miles": 3118.289,
            "flight_time_approx_h": 7.72,
            "initial_bearing_degrees": 294.7,
            "note": "Straight-line distance; the real route is usually 3-8% longer. CO2 is indicative.",
            "origin": {
              "altitude_m": 609,
              "city": "Madrid",
              "country": "ES",
              "iata": "MAD",
              "icao": "LEMD",
              "lat": 40.493407,
              "lon": -3.572249,
              "name": "Adolfo Suárez Madrid–Barajas Airport",
              "region": "ES-MD",
              "regular_flights": true,
              "type": "large"
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "destination": {
                    "type": "string"
                  },
                  "origin": {
                    "type": "string"
                  }
                },
                "required": [
                  "origin",
                  "destination"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "co2_per_passenger_kg_approx": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "destination": {
                    "properties": {
                      "altitude_m": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "city": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "country": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "iata": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "icao": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "lat": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "lon": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "region": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "regular_flights": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "type": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  },
                  "distance_km": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "distance_miles": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "distance_nautical_miles": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "flight_time_approx_h": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "initial_bearing_degrees": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "note": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "origin": {
                    "properties": {
                      "altitude_m": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "city": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "country": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "iata": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "icao": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "lat": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "lon": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "name": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "region": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "regular_flights": {
                        "type": [
                          "boolean",
                          "null"
                        ]
                      },
                      "type": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": [
                      "object",
                      "null"
                    ]
                  }
                },
                "type": [
                  "object",
                  "null"
                ]
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "flights",
    "distance",
    "airports",
    "co2",
    "travel",
    "bazaar"
  ],
  "sourceHost": "api.vextorium.com",
  "lastUpdated": "2026-10-08T06:12:49.087Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:12:48.853Z"
  },
  "metadata": {
    "serviceName": "Vextorium",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "destination": "JFK",
              "origin": "MAD"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "co2_per_passenger_kg_approx": 686,
              "destination": {
                "altitude_m": 4,
                "city": "New York",
                "country": "US",
                "iata": "JFK",
                "icao": "KJFK",
                "lat": 40.639447,
                "lon": -73.779317,
                "name": "John F. Kennedy International Airport",
                "region": "US-NY",
                "regular_flights": true,
                "type": "large"
              },
              "distance_km": 5775.071,
              "distance_miles": 3588.463,
              "distance_nautical_miles": 3118.289,
              "flight_time_approx_h": 7.72,
              "initial_bearing_degrees": 294.7,
              "note": "Straight-line distance; the real route is usually 3-8% longer. CO2 is indicative.",
              "origin": {
                "altitude_m": 609,
                "city": "Madrid",
                "country": "ES",
                "iata": "MAD",
                "icao": "LEMD",
                "lat": 40.493407,
                "lon": -3.572249,
                "name": "Adolfo Suárez Madrid–Barajas Airport",
                "region": "ES-MD",
                "regular_flights": true,
                "type": "large"
              }
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "destination": {
                      "type": "string"
                    },
                    "origin": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "origin",
                    "destination"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "co2_per_passenger_kg_approx": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "destination": {
                      "properties": {
                        "altitude_m": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "iata": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icao": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "lat": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "lon": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "region": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "regular_flights": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    },
                    "distance_km": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "distance_miles": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "distance_nautical_miles": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "flight_time_approx_h": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "initial_bearing_degrees": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "note": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "origin": {
                      "properties": {
                        "altitude_m": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "city": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "iata": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "icao": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "lat": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "lon": {
                          "type": [
                            "number",
                            "null"
                          ]
                        },
                        "name": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "region": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "regular_flights": {
                          "type": [
                            "boolean",
                            "null"
                          ]
                        },
                        "type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "type": [
                        "object",
                        "null"
                      ]
                    }
                  },
                  "type": [
                    "object",
                    "null"
                  ]
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.vextorium.com",
    "manifest_name": "api.vextorium.com",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "co2_per_passenger_kg_approx": 0,
      "destination": {
        "altitude_m": 0,
        "city": "string",
        "country": "string",
        "iata": "string",
        "icao": "string",
        "lat": 0,
        "lon": 0,
        "name": "string",
        "region": "string",
        "regular_flights": true,
        "type": "string"
      },
      "distance_km": 0,
      "distance_miles": 0,
      "distance_nautical_miles": 0,
      "flight_time_approx_h": 0,
      "initial_bearing_degrees": 0,
      "note": "string",
      "origin": {
        "altitude_m": 0,
        "city": "string",
        "country": "string",
        "iata": "string",
        "icao": "string",
        "lat": 0,
        "lon": 0,
        "name": "string",
        "region": "string",
        "regular_flights": true,
        "type": "string"
      }
    },
    "type": "string"
  }
}