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

      All airports

      GET
      /
      Retrieve all airports.
      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",
              "name": "string",
              "self": {
                  "href": "string"
              }
          }
      ]

      Request

      None

      Responses

      🟢200OK
      application/json
      Body
      array of:
      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.
      name
      string 
      optional
      Name of the airport.
      self
      object (Link) 
      optional
      href
      string 
      optional
      🟠400BadRequest
      🔴500InternalServerError
      Next
      Airport(s) by country code.
      Built with