Skip to main content
POST
Reference example

Request contract

  • Method and path: POST /apis/v1/accu-weather/search-locations
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/accu-weather/search-locations
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0004 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
query
string
required

Location, city, postal code, or point-of-interest text to search.

Minimum string length: 1
Example:

"New York"

admin_code
string

Optional administrative-area restriction. Supported for location, city, and point_of_interest searches.

Example:

"NY"

alias_count
integer
default:2

Number of aliases to return for location or city searches.

Required range: x >= 0
all_languages
boolean
default:false

Return point-of-interest matches in all languages; valid only when location_type is point_of_interest.

country_code
string

Optional country restriction. Required when admin_code is provided.

Example:

"US"

details
boolean
default:false

Whether to include extended location details.

language
string
default:en-us

Language code for localized fields.

Minimum string length: 1
Example:

"en-us"

location_type
enum<string>
default:location

Resource family to search.

Available options:
location,
city,
postal_code,
point_of_interest
next_cursor
string

Opaque cursor returned by a previous location or city search; omit for the first page.

point_of_interest_type
string

Optional provider point-of-interest type filter; valid only when location_type is point_of_interest.

Response

Tool result data

has_more
boolean
required
items
object[]
next_cursor
string