Suggest locations
curl --request POST \
--url https://api.aisa.one/apis/v1/rover-com/pet-care-services/suggest-locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Seatt"
}
'import requests
url = "https://api.aisa.one/apis/v1/rover-com/pet-care-services/suggest-locations"
payload = { "query": "Seatt" }
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: 'Seatt'})
};
fetch('https://api.aisa.one/apis/v1/rover-com/pet-care-services/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/rover-com/pet-care-services/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' => 'Seatt'
]),
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/rover-com/pet-care-services/suggest-locations"
payload := strings.NewReader("{\n \"query\": \"Seatt\"\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/rover-com/pet-care-services/suggest-locations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Seatt\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/rover-com/pet-care-services/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\": \"Seatt\"\n}"
response = http.request(request)
puts response.read_body{
"count": 2,
"country_code": "US",
"observed_at_ms": 1790020581621,
"query": "Seatt",
"status": "OK",
"suggestions": [
{
"description": "Seattle, WA, USA",
"main_text": "Seattle",
"place_id": "ChIJVTPokywQkFQRmtVEaUZlJRA",
"secondary_text": "WA, USA",
"types": [
"geocode",
"locality",
"political"
]
},
{
"description": "Seattle Ferry Terminal, Seattle, WA, USA",
"main_text": "Seattle Ferry Terminal",
"place_id": "EihTZWF0dGxlIEZlcnJ5IFRlcm1pbmFsLCBTZWF0dGxlLCBXQSwgVVNBIi4qLAoUChIJXyEA669qkFQRTtt_lvPpXqYSFAoSCVUz6JMsEJBUEZrVRGlGZSUQ",
"secondary_text": "Seattle, WA, USA",
"types": [
"geocode",
"route"
]
}
]
}
Rover
Suggest locations
Turn a partial or ambiguous place name into a location string before search_sitters.
POST
https://api.aisa.one
/
apis
/
v1
/
rover-com
/
pet-care-services
/
suggest-locations
Suggest locations
curl --request POST \
--url https://api.aisa.one/apis/v1/rover-com/pet-care-services/suggest-locations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"query": "Seatt"
}
'import requests
url = "https://api.aisa.one/apis/v1/rover-com/pet-care-services/suggest-locations"
payload = { "query": "Seatt" }
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: 'Seatt'})
};
fetch('https://api.aisa.one/apis/v1/rover-com/pet-care-services/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/rover-com/pet-care-services/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' => 'Seatt'
]),
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/rover-com/pet-care-services/suggest-locations"
payload := strings.NewReader("{\n \"query\": \"Seatt\"\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/rover-com/pet-care-services/suggest-locations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"query\": \"Seatt\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/rover-com/pet-care-services/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\": \"Seatt\"\n}"
response = http.request(request)
puts response.read_body{
"count": 2,
"country_code": "US",
"observed_at_ms": 1790020581621,
"query": "Seatt",
"status": "OK",
"suggestions": [
{
"description": "Seattle, WA, USA",
"main_text": "Seattle",
"place_id": "ChIJVTPokywQkFQRmtVEaUZlJRA",
"secondary_text": "WA, USA",
"types": [
"geocode",
"locality",
"political"
]
},
{
"description": "Seattle Ferry Terminal, Seattle, WA, USA",
"main_text": "Seattle Ferry Terminal",
"place_id": "EihTZWF0dGxlIEZlcnJ5IFRlcm1pbmFsLCBTZWF0dGxlLCBXQSwgVVNBIi4qLAoUChIJXyEA669qkFQRTtt_lvPpXqYSFAoSCVUz6JMsEJBUEZrVRGlGZSUQ",
"secondary_text": "Seattle, WA, USA",
"types": [
"geocode",
"route"
]
}
]
}
Request contract
- Method and path: POST /apis/v1/rover-com/pet-care-services/suggest-locations
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/rover-com/pet-care-services/suggest-locations
{
"operationId": "rover-com.pet-care-services.suggest-locations",
"method": "POST",
"path": "/apis/v1/rover-com/pet-care-services/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": {
"country_code": "US",
"query": "Seatt"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"country_code": {
"default": "US",
"description": "ISO 3166-1 alpha-2 country to bias predictions; US is the market this program serves. Pattern: ^[A-Za-z]{2}$.\n\nProvider reference: default \"US\".",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"query": {
"description": "Partial place text, e.g. `Seatt` or `Brooklyn`.",
"type": "string"
}
},
"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
Resolve free text to the place strings Rover's search accepts (GET /api/v7/utilities/location-autocomplete/, endpoint ep-autocomplete). Returns Rover's place predictions (Google Places-backed): description is the exact location value to pass to search_sitters, with main/secondary text, place id and place types. An empty list with status ZERO_RESULTS is a legitimate no-match.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
count | number | |
country_code | string | |
observed_at_ms | number | |
query | string | |
status | string | OK or ZERO_RESULTS. |
suggestions | object[] |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.