Airports API v2
    Airports API v2
    • All airports
      GET
    • Airport(s) by country code.
      GET
    • Nearest airport(s) by geo coordinates.
      GET
    • Nearest airport(s) by airport id.
      GET
    • Airport by id.
      GET

      Airport by id.

      GET
      /{id}
      Retrieve airport by id.
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://api.transavia.com/v2/airports/'
      Response Response Example
      200 - Example 1
      {
        "city": "string",
        "country": {
          "code": "string",
          "name": "string"
        },
        "geoCoordinates": {
          "latitude": 0,
          "longitude": 0
        },
        "id": "string",
        "inboundRoutes": {
          "href": "string"
        },
        "name": "string",
        "outboundRoutes": {
          "href": "string"
        }
      }

      Request

      Path Params
      id
      string 
      required
      Airport code (3-character IATA code).

      Responses

      🟢200OK
      application/json
      Body
      city
      string 
      optional
      City where the airport is located.
      country
      object (Country) 
      optional
      code
      string 
      optional
      name
      string 
      optional
      geoCoordinates
      object (GeoCoordinates) 
      optional
      latitude
      number <double>
      optional
      longitude
      number <double>
      optional
      id
      string 
      optional
      Unique identifier.
      inboundRoutes
      object (Link) 
      optional
      href
      string 
      optional
      name
      string 
      optional
      Name of the airport.
      outboundRoutes
      object (Link) 
      optional
      🟠400BadRequest
      🔴500InternalServerError
      Previous
      Nearest airport(s) by airport id.
      Built with