> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Search Locations

> Search Locations

## 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](https://aisa.one/docs/openapi/accu-weather.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "accu-weather.search-locations",
  "method": "POST",
  "path": "/apis/v1/accu-weather/search-locations",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "properties": {
            "admin_code": {
              "description": "Optional administrative-area restriction. Supported for location, city, and point_of_interest searches.",
              "examples": [
                "NY"
              ],
              "type": "string"
            },
            "alias_count": {
              "default": 2,
              "description": "Number of aliases to return for location or city searches.",
              "minimum": 0,
              "type": "integer"
            },
            "all_languages": {
              "default": false,
              "description": "Return point-of-interest matches in all languages; valid only when location_type is point_of_interest.",
              "type": "boolean"
            },
            "country_code": {
              "description": "Optional country restriction. Required when admin_code is provided.",
              "examples": [
                "US"
              ],
              "type": "string"
            },
            "details": {
              "default": false,
              "description": "Whether to include extended location details.",
              "type": "boolean"
            },
            "language": {
              "default": "en-us",
              "description": "Language code for localized fields.",
              "examples": [
                "en-us"
              ],
              "minLength": 1,
              "type": "string"
            },
            "location_type": {
              "default": "location",
              "description": "Resource family to search.",
              "enum": [
                "location",
                "city",
                "postal_code",
                "point_of_interest"
              ],
              "type": "string"
            },
            "next_cursor": {
              "description": "Opaque cursor returned by a previous location or city search; omit for the first page.",
              "type": "string"
            },
            "point_of_interest_type": {
              "description": "Optional provider point-of-interest type filter; valid only when location_type is point_of_interest.",
              "type": "string"
            },
            "query": {
              "description": "Location, city, postal code, or point-of-interest text to search.",
              "examples": [
                "New York"
              ],
              "minLength": 1,
              "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.0004 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/accu-weather.json POST /apis/v1/accu-weather/search-locations
openapi: 3.1.0
info:
  description: ''
  title: AccuWeather
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    accu-weather:
      description: ''
      title: AccuWeather
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 5781dfb550d2098ff8623ee80fcdce60f473cad692c33c4ebc2dffcb2bca6ead
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/accu-weather/autocomplete-locations
    - /apis/v1/accu-weather/get-administrative-area
    - /apis/v1/accu-weather/get-country
    - /apis/v1/accu-weather/get-current-conditions
    - /apis/v1/accu-weather/get-daily-forecast
    - /apis/v1/accu-weather/get-daily-indices
    - /apis/v1/accu-weather/get-historical-current-conditions
    - /apis/v1/accu-weather/get-hourly-forecast
    - /apis/v1/accu-weather/get-index
    - /apis/v1/accu-weather/get-index-group
    - /apis/v1/accu-weather/get-location
    - /apis/v1/accu-weather/get-radar-satellite-imagery
    - /apis/v1/accu-weather/get-region
    - /apis/v1/accu-weather/get-translation-group
    - /apis/v1/accu-weather/get-tropical-storm-current-position
    - /apis/v1/accu-weather/list-active-tropical-storms
    - /apis/v1/accu-weather/list-administrative-areas
    - /apis/v1/accu-weather/list-countries
    - /apis/v1/accu-weather/list-index-groups
    - /apis/v1/accu-weather/list-indices
    - /apis/v1/accu-weather/list-neighboring-cities
    - /apis/v1/accu-weather/list-regions
    - /apis/v1/accu-weather/list-supported-languages
    - /apis/v1/accu-weather/list-top-cities
    - /apis/v1/accu-weather/list-top-city-conditions
    - /apis/v1/accu-weather/list-translation-groups
    - /apis/v1/accu-weather/list-tropical-storm-forecasts
    - /apis/v1/accu-weather/list-tropical-storm-positions
    - /apis/v1/accu-weather/list-tropical-storm-statuses
    - /apis/v1/accu-weather/list-tropical-storms-by-year
    - /apis/v1/accu-weather/list-weather-alarms
    - /apis/v1/accu-weather/list-weather-alerts
    - /apis/v1/accu-weather/resolve-language-identifier
    - /apis/v1/accu-weather/search-administrative-areas
    - /apis/v1/accu-weather/search-city-by-ip-address
    - /apis/v1/accu-weather/search-locations
    - /apis/v1/accu-weather/search-locations-by-coordinates
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:2e4f27b5d401c371ead10b5f00a254bc075b10f523e1f8a5705bc7e5f28149ff
    facts_hash: 5781dfb550d2098ff8623ee80fcdce60f473cad692c33c4ebc2dffcb2bca6ead
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: accu-weather
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/accu-weather/search-locations:
    post:
      tags:
        - AccuWeather
      summary: Search Locations
      operationId: accu-weather.search-locations
      requestBody:
        content:
          application/json:
            schema:
              properties:
                admin_code:
                  description: >-
                    Optional administrative-area restriction. Supported for
                    location, city, and point_of_interest searches.
                  examples:
                    - NY
                  type: string
                alias_count:
                  default: 2
                  description: Number of aliases to return for location or city searches.
                  minimum: 0
                  type: integer
                all_languages:
                  default: false
                  description: >-
                    Return point-of-interest matches in all languages; valid
                    only when location_type is point_of_interest.
                  type: boolean
                country_code:
                  description: >-
                    Optional country restriction. Required when admin_code is
                    provided.
                  examples:
                    - US
                  type: string
                details:
                  default: false
                  description: Whether to include extended location details.
                  type: boolean
                language:
                  default: en-us
                  description: Language code for localized fields.
                  examples:
                    - en-us
                  minLength: 1
                  type: string
                location_type:
                  default: location
                  description: Resource family to search.
                  enum:
                    - location
                    - city
                    - postal_code
                    - point_of_interest
                  type: string
                next_cursor:
                  description: >-
                    Opaque cursor returned by a previous location or city
                    search; omit for the first page.
                  type: string
                point_of_interest_type:
                  description: >-
                    Optional provider point-of-interest type filter; valid only
                    when location_type is point_of_interest.
                  type: string
                query:
                  description: >-
                    Location, city, postal code, or point-of-interest text to
                    search.
                  examples:
                    - New York
                  minLength: 1
                  type: string
              required:
                - query
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__public_data
          description: Tool result data
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
      x-codeSamples:
        - label: Reference example
          lang: text
          source: >-
            # Fixed reference example. Playground inputs do not update this
            sample.

            curl --request POST \
              --url https://api.aisa.one/apis/v1/accu-weather/search-locations \
              --header 'Authorization: Bearer <token>' \
              --header 'Content-Type: application/json' \
              --data '{
              "query": "New York"
            }'
components:
  schemas:
    Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__public_data:
      $ref: >-
        #/components/schemas/Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__e72a1f01aef9d16e
    Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__e72a1f01aef9d16e:
      properties:
        has_more:
          type: boolean
        items:
          items:
            $ref: >-
              #/components/schemas/Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__5c928e8b647b799d
          type: array
        next_cursor:
          type: string
      required:
        - has_more
      type: object
    Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__5c928e8b647b799d:
      additionalProperties: true
      properties:
        administrative_area:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__296ac922906bd411
        country:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__296ac922906bd411
        data_sets:
          items:
            type: string
          type: array
        english_name:
          type: string
        geo_position:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__ab300382e6858cd4
        is_alias:
          type: boolean
        key:
          type: string
        localized_name:
          type: string
        primary_postal_code:
          type: string
        rank:
          type: integer
        region:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__296ac922906bd411
        time_zone:
          $ref: >-
            #/components/schemas/Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__dae39b9cea943c6e
        type:
          type: string
      required:
        - key
        - type
        - rank
        - localized_name
      type: object
    Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__296ac922906bd411:
      additionalProperties: true
      properties:
        english_name:
          type: string
        id:
          type: string
        localized_name:
          type: string
      required:
        - id
        - localized_name
      type: object
    Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__ab300382e6858cd4:
      additionalProperties: true
      properties:
        latitude:
          maximum: 90
          minimum: -90
          type: number
        longitude:
          maximum: 180
          minimum: -180
          type: number
      required:
        - latitude
        - longitude
      type: object
    Response576A0Ea506F3_connect_ACCU_WEATHER_SEARCH_LOCATIONS__output__dae39b9cea943c6e:
      additionalProperties: true
      properties:
        code:
          type: string
        gmt_offset:
          type: number
        is_daylight_saving:
          type: boolean
        name:
          type: string
      type: object
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.