Airports API v2
Returns all airports
Logistics & shipping#openapi#transport
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
Returns all airports
Endpoints 5
- GETAll airports
/Retrieve all airports. - GETAirport(s) by country code.
/countrycode/:countryCodeRetrieve airports by country code. - GETNearest airport(s) by geo coordinates.
/nearest?latitude=string&longitude=string&maxDistanceInKm=string&limit=stringRetrieve nearest airports by geo coordinates (latitude/longitude). - GETNearest airport(s) by airport id.
/nearest/:id?maxDistanceInKm=string&limit=stringRetrieve nearest airports by station id. - GETAirport by id.
/:idRetrieve airport by id.
API details
- Base URL
https://api.transavia.com/v2/airports- Authentication
- An API key in the apikey header
An API key in the subscription-key query parameter - Operations
- 5 operations on 5 pathsGET 5
- Response formats
application/jsontext/jsontext/plain- Description format
- Swagger 2.0, API version
1.0 - Links
- OpenAPI document
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the Airports API v2 in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the Airports API v2 collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the apikey header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “All airports” (GET /), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the Airports API v2?
Returns all airports It is listed under Logistics & shipping and has 5 endpoints.
Who publishes the Airports API v2?
It is listed from Transavia's public API description (an OpenAPI document), not published by Transavia on Swastik Codes. Anyone who controls transavia.com can claim the profile by adding a DNS TXT record.
What is the base URL of the Airports API v2?
Requests go to https://api.transavia.com/v2/airports. Endpoint paths are added to this base URL.
How do I authenticate with the Airports API v2?
It accepts 2 methods: an API key in the apikey header; an API key in the subscription-key query parameter.
How many endpoints does the Airports API v2 have?
5 operations on 5 paths (5 GET).
Is forking the Airports API v2 free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.