Suggest locations
curl --request POST \
--url https://api.aisa.one/apis/v1/campspot-com/campsite-listings/suggest-locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Austin"
}
'import requests
url = "https://api.aisa.one/apis/v1/campspot-com/campsite-listings/suggest-locations"
payload = { "query": "Austin" }
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: 'Austin'})
};
fetch('https://api.aisa.one/apis/v1/campspot-com/campsite-listings/suggest-locations', 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/campspot-com/campsite-listings/suggest-locations",
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' => 'Austin'
]),
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/campspot-com/campsite-listings/suggest-locations"
payload := strings.NewReader("{\n \"query\": \"Austin\"\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/campspot-com/campsite-listings/suggest-locations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Austin\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/campspot-com/campsite-listings/suggest-locations")
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\": \"Austin\"\n}"
response = http.request(request)
puts response.read_body{
"count": 6,
"observed_at_ms": 1791174129630,
"query": "Austin",
"suggestions": [
{
"aggregator_slug": null,
"kind": "place",
"latitude": 30.268072,
"location_metadata_id": "dXJuOm1ieHBsYzo1WWpz",
"longitude": -97.742806,
"name": "Austin, Texas",
"park_id": null,
"park_location": null,
"park_url": null
},
{
"aggregator_slug": null,
"kind": "place",
"latitude": 43.668336,
"location_metadata_id": "dXJuOm1ieHBsYzpIYllvN0E",
"longitude": -92.974815,
"name": "Austin, Minnesota",
"park_id": null,
"park_location": null,
"park_url": null
},
{
"aggregator_slug": null,
"kind": "place",
"latitude": 39.492926,
"location_metadata_id": "dXJuOm1ieHBsYzo1ZWpz",
"longitude": -117.071273,
"name": "Austin, Nevada",
"park_id": null,
"park_location": null,
"park_url": null
},
{
"aggregator_slug": "adventure-bound-beaver-trails",
"kind": "park",
"latitude": 43.672202,
"location_metadata_id": null,
"longitude": -92.796214,
"name": "Adventure Bound Beaver Trails",
"park_id": 63,
"park_location": "Austin, Minnesota",
"park_url": "https://www.campspot.com/park/adventure-bound-beaver-trails"
},
{
"aggregator_slug": "austin-lone-star",
"kind": "park",
"latitude": 30.185747,
"location_metadata_id": null,
"longitude": -97.77297,
"name": "Austin Lone Star, Austin, Texas",
"park_id": 384,
"park_location": "Austin, Texas",
"park_url": "https://www.campspot.com/park/austin-lone-star"
},
{
"aggregator_slug": "sun-outdoors-lake-travis",
"kind": "park",
"latitude": 30.415661,
"location_metadata_id": null,
"longitude": -97.930476,
"name": "Sun Outdoors Lake Travis",
"park_id": 414,
"park_location": "Austin, Texas",
"park_url": "https://www.campspot.com/park/sun-outdoors-lake-travis"
}
]
}
Campspot
Suggest locations
Turn free text (‘Austin’, ‘Yellowstone’, a park name) into coordinates or a park_id before search_parks or get_park. search_parks also accepts the text directly through its location input.
POST
https://api.aisa.one
/
apis
/
v1
/
campspot-com
/
campsite-listings
/
suggest-locations
Suggest locations
curl --request POST \
--url https://api.aisa.one/apis/v1/campspot-com/campsite-listings/suggest-locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Austin"
}
'import requests
url = "https://api.aisa.one/apis/v1/campspot-com/campsite-listings/suggest-locations"
payload = { "query": "Austin" }
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: 'Austin'})
};
fetch('https://api.aisa.one/apis/v1/campspot-com/campsite-listings/suggest-locations', 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/campspot-com/campsite-listings/suggest-locations",
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' => 'Austin'
]),
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/campspot-com/campsite-listings/suggest-locations"
payload := strings.NewReader("{\n \"query\": \"Austin\"\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/campspot-com/campsite-listings/suggest-locations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Austin\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/campspot-com/campsite-listings/suggest-locations")
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\": \"Austin\"\n}"
response = http.request(request)
puts response.read_body{
"count": 6,
"observed_at_ms": 1791174129630,
"query": "Austin",
"suggestions": [
{
"aggregator_slug": null,
"kind": "place",
"latitude": 30.268072,
"location_metadata_id": "dXJuOm1ieHBsYzo1WWpz",
"longitude": -97.742806,
"name": "Austin, Texas",
"park_id": null,
"park_location": null,
"park_url": null
},
{
"aggregator_slug": null,
"kind": "place",
"latitude": 43.668336,
"location_metadata_id": "dXJuOm1ieHBsYzpIYllvN0E",
"longitude": -92.974815,
"name": "Austin, Minnesota",
"park_id": null,
"park_location": null,
"park_url": null
},
{
"aggregator_slug": null,
"kind": "place",
"latitude": 39.492926,
"location_metadata_id": "dXJuOm1ieHBsYzo1ZWpz",
"longitude": -117.071273,
"name": "Austin, Nevada",
"park_id": null,
"park_location": null,
"park_url": null
},
{
"aggregator_slug": "adventure-bound-beaver-trails",
"kind": "park",
"latitude": 43.672202,
"location_metadata_id": null,
"longitude": -92.796214,
"name": "Adventure Bound Beaver Trails",
"park_id": 63,
"park_location": "Austin, Minnesota",
"park_url": "https://www.campspot.com/park/adventure-bound-beaver-trails"
},
{
"aggregator_slug": "austin-lone-star",
"kind": "park",
"latitude": 30.185747,
"location_metadata_id": null,
"longitude": -97.77297,
"name": "Austin Lone Star, Austin, Texas",
"park_id": 384,
"park_location": "Austin, Texas",
"park_url": "https://www.campspot.com/park/austin-lone-star"
},
{
"aggregator_slug": "sun-outdoors-lake-travis",
"kind": "park",
"latitude": 30.415661,
"location_metadata_id": null,
"longitude": -97.930476,
"name": "Sun Outdoors Lake Travis",
"park_id": 414,
"park_location": "Austin, Texas",
"park_url": "https://www.campspot.com/park/sun-outdoors-lake-travis"
}
]
}
Request contract
- Method and path: POST /apis/v1/campspot-com/campsite-listings/suggest-locations
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/campspot-com/campsite-listings/suggest-locations
{
"operationId": "campspot-com.campsite-listings.suggest-locations",
"method": "POST",
"path": "/apis/v1/campspot-com/campsite-listings/suggest-locations",
"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": "Austin",
"resolve_coordinates": true
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"query": {
"description": "Place or park name fragment, as typed into the site's search box.",
"type": "string"
},
"resolve_coordinates": {
"description": "When true, each place suggestion is resolved to latitude/longitude with one extra request per place (at most 10). Park suggestions always carry coordinates.",
"type": "boolean",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"required": [
"query"
],
"type": "object"
}
}
},
"required": true
},
"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
Destination and park suggestions for a typed place or park name, from Campspot's search-box autocomplete. Places carry a location_metadata_id (resolved to coordinates when resolve_coordinates is true); parks carry their park_id, marketplace slug and coordinates directly.
The response contains the tool result directly.
The provider identifies suggestions as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
aggregator_slug | string | Marketplace slug for parks (the /park/{aggregator_slug} path segment; not the booking slug, so use park_id with get_park); null for places. |
kind | string | place: a geographic destination (city, region, national park); park: a bookable Campspot park. |
latitude | number | Coordinates: always present for parks; for places only when resolve_coordinates was true. |
location_metadata_id | string | Opaque place id (base64 Mapbox URN) for places; null for parks. |
longitude | number | |
name | string | The site's fullLocationName. |
park_id | number | Numeric park id for parks (input to get_park and get_park_availability); null for places. |
park_location | string | City and region of the park as the site states it; null for places. |
park_url | string | https://www.campspot.com/park/{aggregator_slug} for parks; null for places. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.