> ## 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

# Find cities

> Before city_weather when the user names a place loosely or you need every forecast location near a point.

## 请求规范

* **方法与路径:** POST /apis/v1/api-weather-gc-ca/weather/find-cities
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/api-weather-gc-ca/weather/find-cities`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/api-weather-gc-ca.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "api-weather-gc-ca.weather.find-cities",
  "method": "POST",
  "path": "/apis/v1/api-weather-gc-ca/weather/find-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": {
              "query": "Toronto"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "lang": {
              "default": "en",
              "description": "Language of names and texts: en (English) or fr (French). Numbers are the same in both.\n\nProvider reference: allowed values [\"en\", \"fr\"]; default \"en\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "en",
                  "fr"
                ]
              }
            },
            "lat": {
              "description": "Latitude in decimal degrees (Canada spans about 41 to 84). Give with lon.\n\nProvider reference: minimum -90; maximum 90.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 90,
                "min": -90
              }
            },
            "limit": {
              "default": 10,
              "description": "limit\n\nProvider reference: minimum 1; maximum 50; default 10.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 50,
                "min": 1
              }
            },
            "lon": {
              "description": "Longitude in decimal degrees, west negative (Canada spans about -142 to -52). Give with lat.\n\nProvider reference: minimum -180; maximum 180.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 180,
                "min": -180
              }
            },
            "province": {
              "description": "Two-letter province or territory code (ON, QC, BC, AB, MB, SK, NS, NB, NL, PE, YT, NT, NU). Pattern: ^[A-Za-z]{2}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "query": {
              "description": "Place name, English or French.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "radius_km": {
              "default": 50,
              "description": "Search radius around lat/lon.\n\nProvider reference: minimum 1; maximum 100; default 50.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/api-weather-gc-ca.json POST /apis/v1/api-weather-gc-ca/weather/find-cities
openapi: 3.1.0
info:
  description: ''
  title: >-
    Environment and Climate Change Canada weather and climate
    (api.weather.gc.ca)
  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:
    api-weather-gc-ca:
      description: ''
      title: >-
        Environment and Climate Change Canada weather and climate
        (api.weather.gc.ca)
      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: 58f6d9d454da686b5dc2b006acb4a3b31635bceff7f38be29db4ea328604e6e6
        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/api-weather-gc-ca/weather/air-quality
    - /apis/v1/api-weather-gc-ca/weather/city-weather
    - /apis/v1/api-weather-gc-ca/weather/climate-daily
    - /apis/v1/api-weather-gc-ca/weather/climate-monthly
    - /apis/v1/api-weather-gc-ca/weather/climate-normals
    - /apis/v1/api-weather-gc-ca/weather/climate-stations
    - /apis/v1/api-weather-gc-ca/weather/find-cities
    - /apis/v1/api-weather-gc-ca/weather/marine-forecast
    - /apis/v1/api-weather-gc-ca/weather/weather-alerts
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:2e11e5b9fb5e08b87c8c7ee3900176eea35e5d4d996c6ec1ac7eef34b111505d
    facts_hash: 58f6d9d454da686b5dc2b006acb4a3b31635bceff7f38be29db4ea328604e6e6
    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: api-weather-gc-ca
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/api-weather-gc-ca/weather/find-cities:
    post:
      tags:
        - >-
          Environment and Climate Change Canada weather and climate
          (api.weather.gc.ca)
      summary: Find cities
      description: >-
        Before city_weather when the user names a place loosely or you need
        every forecast location near a point.
      operationId: api-weather-gc-ca.weather.find-cities
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  query: Toronto
            schema:
              additionalProperties: true
              properties:
                lang:
                  default: en
                  description: >-
                    Language of names and texts: en (English) or fr (French).
                    Numbers are the same in both.


                    Provider reference: allowed values ["en", "fr"]; default
                    "en".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - en
                      - fr
                lat:
                  description: >-
                    Latitude in decimal degrees (Canada spans about 41 to 84).
                    Give with lon.


                    Provider reference: minimum -90; maximum 90.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 90
                    min: -90
                limit:
                  default: 10
                  description: |-
                    limit

                    Provider reference: minimum 1; maximum 50; default 10.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 50
                    min: 1
                lon:
                  description: >-
                    Longitude in decimal degrees, west negative (Canada spans
                    about -142 to -52). Give with lat.


                    Provider reference: minimum -180; maximum 180.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 180
                    min: -180
                province:
                  description: >-
                    Two-letter province or territory code (ON, QC, BC, AB, MB,
                    SK, NS, NB, NL, PE, YT, NT, NU). Pattern: ^[A-Za-z]{2}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                query:
                  description: Place name, English or French.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                radius_km:
                  default: 50
                  description: |-
                    Search radius around lat/lon.

                    Provider reference: minimum 1; maximum 100; default 50.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-25.
                  summary: Official provider example
                  value:
                    attribution: 'Data Source: Environment and Climate Change Canada'
                    cities:
                      - distance_km: null
                        id: on-143
                        latitude: 43.65
                        longitude: -79.38
                        name: Toronto
                        province: 'ON'
                        region: City of Toronto
                        url: >-
                          https://weather.gc.ca/en/location/index.html?coords=43.65,-79.38
                      - distance_km: null
                        id: on-128
                        latitude: 43.63
                        longitude: -79.39
                        name: Toronto Island
                        province: 'ON'
                        region: City of Toronto
                        url: >-
                          https://weather.gc.ca/en/location/index.html?coords=43.63,-79.39
                      - distance_km: null
                        id: on-4
                        latitude: 43.69
                        longitude: -79.76
                        name: Brampton
                        province: 'ON'
                        region: Mississauga - Brampton
                        url: >-
                          https://weather.gc.ca/en/location/index.html?coords=43.69,-79.76
                      - distance_km: null
                        id: on-85
                        latitude: 43.88
                        longitude: -79.26
                        name: Markham
                        province: 'ON'
                        region: Vaughan - Richmond Hill - Markham
                        url: >-
                          https://weather.gc.ca/en/location/index.html?coords=43.88,-79.26
                      - distance_km: null
                        id: on-32
                        latitude: 43.87
                        longitude: -79.86
                        name: Caledon
                        province: 'ON'
                        region: Caledon
                        url: >-
                          https://weather.gc.ca/en/location/index.html?coords=43.87,-79.86
                      - distance_km: null
                        id: on-68
                        latitude: 43.63
                        longitude: -79.95
                        name: Halton Hills
                        province: 'ON'
                        region: Halton Hills - Milton
                        url: >-
                          https://weather.gc.ca/en/location/index.html?coords=43.63,-79.95
                      - distance_km: null
                        id: on-24
                        latitude: 43.59
                        longitude: -79.66
                        name: Mississauga
                        province: 'ON'
                        region: Mississauga - Brampton
                        url: >-
                          https://weather.gc.ca/en/location/index.html?coords=43.59,-79.66
                    count: 7
                    lang: en
                    licence_url: https://eccc-msc.github.io/open-data/licence/readme_en/
                    observed_at_ms: 1792969237243
                    query: Toronto
                    source_url: >-
                      https://api.weather.gc.ca/collections/citypageweather-realtime/items?f=json&q=Toronto&limit=50
                    total: 7
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Find ECCC city forecast locations (the ids city_weather and
            weather_alerts take) by name or near a point. query searches names
            and forecast regions (English or French) and ranks exact, prefix and
            contains name matches first; lat/lon lists locations within
            radius_km sorted by distance. province narrows either. A name query
            with no match is not_found; a point with no location in range
            returns an empty list.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `attribution` | string | Attribution the ECCC Data Servers End-use
            Licence requires when the data is republished. |

            | `cities` | object[] |  |

            | `count` | number |  |

            | `lang` | string | Language of the texts. |

            | `licence_url` | string | The ECCC Data Servers End-use Licence. |

            | `observed_at_ms` | number | When this program read the source,
            epoch milliseconds. |

            | `query` | string |  |

            | `source_url` | string | The api.weather.gc.ca request this answer
            was read from. |

            | `total` | number | Matches before limit. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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