Cities
curl --request POST \
--url https://api.aisa.one/apis/v1/spothero-com/parking/cities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"latitude": 41.8781,
"limit": 3,
"longitude": -87.6298
}
'import requests
url = "https://api.aisa.one/apis/v1/spothero-com/parking/cities"
payload = {
"latitude": 41.8781,
"limit": 3,
"longitude": -87.6298
}
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({latitude: 41.8781, limit: 3, longitude: -87.6298})
};
fetch('https://api.aisa.one/apis/v1/spothero-com/parking/cities', 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/cities",
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([
'latitude' => 41.8781,
'limit' => 3,
'longitude' => -87.6298
]),
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/cities"
payload := strings.NewReader("{\n \"latitude\": 41.8781,\n \"limit\": 3,\n \"longitude\": -87.6298\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/cities")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"latitude\": 41.8781,\n \"limit\": 3,\n \"longitude\": -87.6298\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/spothero-com/parking/cities")
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 \"latitude\": 41.8781,\n \"limit\": 3,\n \"longitude\": -87.6298\n}"
response = http.request(request)
puts response.read_body{
"cities": [
{
"city_id": 1,
"country": "US",
"latitude": 41.8839288418,
"longitude": -87.6309569143,
"name": "Chicago",
"slug": "chicago",
"url": "https://spothero.com/city/chicago-parking"
},
{
"city_id": 716,
"country": "US",
"latitude": 41.6763545,
"longitude": -86.2519898,
"name": "South Bend",
"slug": "south-bend",
"url": "https://spothero.com/city/south-bend-parking"
},
{
"city_id": 3,
"country": "US",
"latitude": 43.0394048606,
"longitude": -87.9135939471,
"name": "Milwaukee",
"slug": "milwaukee",
"url": "https://spothero.com/city/milwaukee-parking"
}
],
"city_count": 3,
"near": {
"latitude": 41.8781,
"longitude": -87.6298
},
"observed_at_ms": 1790021043756,
"query": null,
"source_url": "https://spothero.com/api/v1/cities/?latitude=41.8781&longitude=-87.6298&sort=distance&order=asc&limit=3"
}SpotHero parking
Cities
Check whether SpotHero covers a city and get a starting coordinate for search_parking or search_monthly_parking.
POST
https://api.aisa.one
/
apis
/
v1
/
spothero-com
/
parking
/
cities
Cities
curl --request POST \
--url https://api.aisa.one/apis/v1/spothero-com/parking/cities \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"latitude": 41.8781,
"limit": 3,
"longitude": -87.6298
}
'import requests
url = "https://api.aisa.one/apis/v1/spothero-com/parking/cities"
payload = {
"latitude": 41.8781,
"limit": 3,
"longitude": -87.6298
}
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({latitude: 41.8781, limit: 3, longitude: -87.6298})
};
fetch('https://api.aisa.one/apis/v1/spothero-com/parking/cities', 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/cities",
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([
'latitude' => 41.8781,
'limit' => 3,
'longitude' => -87.6298
]),
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/cities"
payload := strings.NewReader("{\n \"latitude\": 41.8781,\n \"limit\": 3,\n \"longitude\": -87.6298\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/cities")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"latitude\": 41.8781,\n \"limit\": 3,\n \"longitude\": -87.6298\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/spothero-com/parking/cities")
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 \"latitude\": 41.8781,\n \"limit\": 3,\n \"longitude\": -87.6298\n}"
response = http.request(request)
puts response.read_body{
"cities": [
{
"city_id": 1,
"country": "US",
"latitude": 41.8839288418,
"longitude": -87.6309569143,
"name": "Chicago",
"slug": "chicago",
"url": "https://spothero.com/city/chicago-parking"
},
{
"city_id": 716,
"country": "US",
"latitude": 41.6763545,
"longitude": -86.2519898,
"name": "South Bend",
"slug": "south-bend",
"url": "https://spothero.com/city/south-bend-parking"
},
{
"city_id": 3,
"country": "US",
"latitude": 43.0394048606,
"longitude": -87.9135939471,
"name": "Milwaukee",
"slug": "milwaukee",
"url": "https://spothero.com/city/milwaukee-parking"
}
],
"city_count": 3,
"near": {
"latitude": 41.8781,
"longitude": -87.6298
},
"observed_at_ms": 1790021043756,
"query": null,
"source_url": "https://spothero.com/api/v1/cities/?latitude=41.8781&longitude=-87.6298&sort=distance&order=asc&limit=3"
}Request contract
- Method and path: POST /apis/v1/spothero-com/parking/cities
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/spothero-com/parking/cities
{
"operationId": "spothero-com.parking.cities",
"method": "POST",
"path": "/apis/v1/spothero-com/parking/cities",
"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": {
"latitude": 41.8781,
"limit": 3,
"longitude": -87.6298
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"latitude": {
"description": "latitude\n\nProvider reference: minimum -90; maximum 90.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 90,
"min": -90
}
},
"limit": {
"description": "limit\n\nProvider reference: minimum 1; maximum 50.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 50,
"min": 1
}
},
"longitude": {
"description": "longitude\n\nProvider reference: minimum -180; maximum 180.",
"type": "number",
"x-alexandria-option-metadata": {
"in": "body",
"max": 180,
"min": -180
}
},
"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
Body
application/json
Response
SpotHero's cities (spothero.com/api/v1/cities/, ~150 in the US and Canada): id, name, slug, coordinates, country code and the city parking page URL. With latitude/longitude the nearest cities are returned first (limit, default 5); without, the full list, optionally filtered by query on the name.
The response contains the tool result directly.
The provider identifies cities as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
city_id | number | |
country | string | |
latitude | number | |
longitude | number | |
name | string | |
slug | string | |
url | string |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.