Airports API v2
transavia · Company
Returns all airports
Authentication
No authentication requiredFree to use with no key needed.
Sample Requests
GET
Nearest airport(s) by geo coordinates.
Retrieve nearest airports by geo coordinates (latitude/longitude).
https://api.apis.guru/v2/specs/transavia.com/1.0/nearest?limit=10&latitude=51.5074&longitude=-0.1278&maxDistanceInKm=example
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/transavia.com/1.0/nearest?limit=10&latitude=51.5074&longitude=-0.1278&maxDistanceInKm=example"
import requests
params = {
"limit": "10",
"latitude": "51.5074",
"longitude": "-0.1278",
"maxDistanceInKm": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/transavia.com/1.0/nearest",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/transavia.com/1.0/nearest');
url.searchParams.set('limit', '10');
url.searchParams.set('latitude', '51.5074');
url.searchParams.set('longitude', '-0.1278');
url.searchParams.set('maxDistanceInKm', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/transavia.com/1.0/nearest")
q := baseURL.Query()
q.Set("limit", "10")
q.Set("latitude", "51.5074")
q.Set("longitude", "-0.1278")
q.Set("maxDistanceInKm", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/transavia.com/1.0/nearest")
uri.query = URI.encode_www_form({
"limit" => "10",
"latitude" => "51.5074",
"longitude" => "-0.1278",
"maxDistanceInKm" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/transavia.com/1.0/nearest?" . http_build_query([
"limit" => "10",
"latitude" => "51.5074",
"longitude" => "-0.1278",
"maxDistanceInKm" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
All airports
Retrieve all airports.
https://api.apis.guru/v2/specs/transavia.com/1.0
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/transavia.com/1.0/"
import requests
response = requests.get(
"https://api.apis.guru/v2/specs/transavia.com/1.0/",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/transavia.com/1.0/'; const response = await fetch(url); const data = await response.json(); console.log(data);
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/transavia.com/1.0/"
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/transavia.com/1.0/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/transavia.com/1.0/";
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET
Nearest airport(s) by airport id.
Retrieve nearest airports by station id.
https://api.apis.guru/v2/specs/transavia.com/1.0/nearest/{id}?limit=10&maxDistanceInKm=example
Hover any highlighted part to learn what it does
curl -X GET "https://api.apis.guru/v2/specs/transavia.com/1.0/nearest/{id}?limit=10&maxDistanceInKm=example"import requests
params = {
"limit": "10",
"maxDistanceInKm": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/transavia.com/1.0/nearest/{id}",
params=params,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/transavia.com/1.0/nearest/{id}');
url.searchParams.set('limit', '10');
url.searchParams.set('maxDistanceInKm', 'example');
const response = await fetch(url);
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/transavia.com/1.0/nearest/{id}")
q := baseURL.Query()
q.Set("limit", "10")
q.Set("maxDistanceInKm", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/transavia.com/1.0/nearest/{id}")
uri.query = URI.encode_www_form({
"limit" => "10",
"maxDistanceInKm" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/transavia.com/1.0/nearest/{id}?" . http_build_query([
"limit" => "10",
"maxDistanceInKm" => "example"
]);
$opts = ["http" => [
"method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Airports API v2?
Airports API v2 is a Company API. Developers commonly use company APIs for:
- enriching CRM records with company firmographics
- building lead-generation and prospecting tools
- verifying business identity and registration details
- monitoring competitors and market intelligence
- powering B2B data enrichment pipelines
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Airports API v2 is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide