Airports
curl --request POST \
--url https://api.aisa.one/apis/v1/spothero-com/parking/airports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"query": "ORD"
}'import requests
url = "https://api.aisa.one/apis/v1/spothero-com/parking/airports"
payload = { "query": "ORD" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'ORD'})
};
fetch('https://api.aisa.one/apis/v1/spothero-com/parking/airports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/spothero-com/parking/airports",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'ORD'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/spothero-com/parking/airports"
payload := strings.NewReader("{\n \"query\": \"ORD\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/spothero-com/parking/airports")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"ORD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/spothero-com/parking/airports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"ORD\"\n}"
response = http.request(request)
puts response.read_body{
"airport_count": 2,
"airports": [
{
"city": "Chicago",
"city_slug": "chicago",
"destination_id": 583,
"iata": "ORD",
"latitude": 41.97671486983269,
"longitude": -87.8842329447998,
"name": "O'Hare International Airport",
"time_zone": "America/Chicago",
"url": "https://spothero.com/airport/chicago/ord-parking"
},
{
"city": "Medford",
"city_slug": "eugene-or",
"destination_id": 123675,
"iata": "MFR",
"latitude": 42.374482,
"longitude": -122.873928,
"name": "Rogue Valley International Medford Airport",
"time_zone": "America/Los_Angeles",
"url": "https://spothero.com/airport/eugene-or/mfr-parking"
}
],
"observed_at_ms": 1790020837687,
"query": "ORD",
"source_url": "https://spothero.com/api/v1/airports/",
"total_count": 109
}
SpotHero parking
Airports
Look up an airport’s IATA code or destination id before search_airport_parking or destination.
POST
https://api.aisa.one
/
apis
/
v1
/
spothero-com
/
parking
/
airports
Airports
curl --request POST \
--url https://api.aisa.one/apis/v1/spothero-com/parking/airports \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"query": "ORD"
}'import requests
url = "https://api.aisa.one/apis/v1/spothero-com/parking/airports"
payload = { "query": "ORD" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'ORD'})
};
fetch('https://api.aisa.one/apis/v1/spothero-com/parking/airports', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/spothero-com/parking/airports",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'query' => 'ORD'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/spothero-com/parking/airports"
payload := strings.NewReader("{\n \"query\": \"ORD\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/spothero-com/parking/airports")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"ORD\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/spothero-com/parking/airports")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"query\": \"ORD\"\n}"
response = http.request(request)
puts response.read_body{
"airport_count": 2,
"airports": [
{
"city": "Chicago",
"city_slug": "chicago",
"destination_id": 583,
"iata": "ORD",
"latitude": 41.97671486983269,
"longitude": -87.8842329447998,
"name": "O'Hare International Airport",
"time_zone": "America/Chicago",
"url": "https://spothero.com/airport/chicago/ord-parking"
},
{
"city": "Medford",
"city_slug": "eugene-or",
"destination_id": 123675,
"iata": "MFR",
"latitude": 42.374482,
"longitude": -122.873928,
"name": "Rogue Valley International Medford Airport",
"time_zone": "America/Los_Angeles",
"url": "https://spothero.com/airport/eugene-or/mfr-parking"
}
],
"observed_at_ms": 1790020837687,
"query": "ORD",
"source_url": "https://spothero.com/api/v1/airports/",
"total_count": 109
}
Request contract
- Method and path: POST /apis/v1/spothero-com/parking/airports
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/spothero-com/parking/airports
{
"operationId": "spothero-com.parking.airports",
"method": "POST",
"path": "/apis/v1/spothero-com/parking/airports",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"query": "ORD"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"query": {
"description": "query",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Response
The airports SpotHero sells parking at (spothero.com/api/v1/airports/, ~110 in the US and Canada): IATA code, name, city, coordinates, time zone, destination id and the airport page URL. query filters by code, name or city (case-insensitive substring).
The response contains the tool result directly.
The provider identifies airports as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
city | string | |
city_slug | string | |
destination_id | number | |
iata | string | |
latitude | number | |
longitude | number | |
name | string | |
time_zone | string | |
url | string | spothero.com airport parking page. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.