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

# Query layer

> Look up the parcel, zoning district, flood zone, permit, address point or boundary at a location or matching an id (e.g. an assessor parcel number), or page through a layer's records. Get field names from describe_layer first.

## 请求规范

* **方法与路径:** POST /apis/v1/arcgis-com/gis-layers/query-layer
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/arcgis-com.json)

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

```json theme={null}
{
  "operationId": "arcgis-com.gis-layers.query-layer",
  "method": "POST",
  "path": "/apis/v1/arcgis-com/gis-layers/query-layer",
  "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": {
              "out_fields": [
                "FLD_ZONE",
                "ZONE_SUBTY",
                "SFHA_TF",
                "STATIC_BFE",
                "DFIRM_ID"
              ],
              "point": {
                "lat": 29.9511,
                "lon": -90.0715
              },
              "url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "bbox": {
              "description": "[west, south, east, north] in WGS84 degrees.",
              "items": {
                "type": "number"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "count_only": {
              "description": "Return only total_count, no rows.",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "distance_m": {
              "description": "Search radius around point, in metres (default 0: features containing the point).\n\nProvider reference: minimum 0; maximum 50000.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 50000,
                "min": 0
              }
            },
            "layer": {
              "description": "Layer id within the service, when the URL names the service only.\n\nProvider reference: minimum 0; maximum 999999.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 999999,
                "min": 0
              }
            },
            "limit": {
              "default": 25,
              "description": "Rows per page; the layer's maxRecordCount may cap it lower.\n\nProvider reference: minimum 1; maximum 200; default 25.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 200,
                "min": 1
              }
            },
            "offset": {
              "default": 0,
              "description": "Rows to skip (next_offset from the previous page).\n\nProvider reference: minimum 0; maximum 100000000; default 0.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100000000,
                "min": 0
              }
            },
            "order_by": {
              "description": "`FIELD` or `FIELD DESC`. Default: object id ascending, for stable paging.",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "out_fields": {
              "description": "Fields to return (case-insensitive, checked against the layer). Default: all fields.",
              "items": {
                "type": "string"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "point": {
              "additionalProperties": true,
              "description": "WGS84 point: features at (or within distance_m of) this location.",
              "type": "object",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "return_geometry": {
              "description": "Include GeoJSON geometry per row (WGS84).",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "spatial_rel": {
              "default": "intersects",
              "description": "Relation between the features and point/bbox.\n\nProvider reference: allowed values [\"intersects\", \"contains\", \"within\", \"envelope_intersects\"]; default \"intersects\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "intersects",
                  "contains",
                  "within",
                  "envelope_intersects"
                ]
              }
            },
            "url": {
              "description": "ArcGIS REST service or layer URL: https://<host>/<adaptor>/rest/services/<folder>/<service>/FeatureServer[/<layer>] or …/MapServer[/<layer>], on ArcGIS Online (services*.arcgis.com/<orgId>/arcgis/rest/services/…) or an agency's ArcGIS Server (gis.<agency>.gov/arcgis/rest/services/…). Query strings are ignored; URLs carrying a token or key are refused.",
              "type": "string"
            },
            "where": {
              "default": "1=1",
              "description": "ArcGIS SQL-92 where clause, e.g. `PIN = '123-456-789'`, `ZONE_CODE LIKE 'R-%'`, `FLD_ZONE IN ('AE','VE')`.\n\nProvider reference: default \"1=1\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "required": [
            "url"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

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


## OpenAPI

````yaml openapi/zh/arcgis-com.json POST /apis/v1/arcgis-com/gis-layers/query-layer
openapi: 3.1.0
info:
  description: ''
  title: ArcGIS public GIS layers
  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:
    arcgis-com:
      description: ''
      title: ArcGIS public GIS layers
      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: 8c39906225034f92d3d558e2f0fa758ae989856a45c3bd51ea0b294f38e72b24
        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/arcgis-com/gis-layers/describe-layer
    - /apis/v1/arcgis-com/gis-layers/query-layer
    - /apis/v1/arcgis-com/gis-layers/search-datasets
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:00f33c2a8a5b964ed73401a533d63bdd2274c3969393e53d9a5c4952527e4469
    facts_hash: 8c39906225034f92d3d558e2f0fa758ae989856a45c3bd51ea0b294f38e72b24
    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: arcgis-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/arcgis-com/gis-layers/query-layer:
    post:
      tags:
        - ArcGIS public GIS layers
      summary: Query layer
      description: >-
        Look up the parcel, zoning district, flood zone, permit, address point
        or boundary at a location or matching an id (e.g. an assessor parcel
        number), or page through a layer's records. Get field names from
        describe_layer first.
      operationId: arcgis-com.gis-layers.query-layer
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  out_fields:
                    - FLD_ZONE
                    - ZONE_SUBTY
                    - SFHA_TF
                    - STATIC_BFE
                    - DFIRM_ID
                  point:
                    lat: 29.9511
                    lon: -90.0715
                  url: >-
                    https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0
            schema:
              additionalProperties: true
              properties:
                bbox:
                  description: '[west, south, east, north] in WGS84 degrees.'
                  items:
                    type: number
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                count_only:
                  description: Return only total_count, no rows.
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                distance_m:
                  description: >-
                    Search radius around point, in metres (default 0: features
                    containing the point).


                    Provider reference: minimum 0; maximum 50000.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 50000
                    min: 0
                layer:
                  description: >-
                    Layer id within the service, when the URL names the service
                    only.


                    Provider reference: minimum 0; maximum 999999.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 999999
                    min: 0
                limit:
                  default: 25
                  description: |-
                    Rows per page; the layer's maxRecordCount may cap it lower.

                    Provider reference: minimum 1; maximum 200; default 25.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 200
                    min: 1
                offset:
                  default: 0
                  description: |-
                    Rows to skip (next_offset from the previous page).

                    Provider reference: minimum 0; maximum 100000000; default 0.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100000000
                    min: 0
                order_by:
                  description: >-
                    `FIELD` or `FIELD DESC`. Default: object id ascending, for
                    stable paging.
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                out_fields:
                  description: >-
                    Fields to return (case-insensitive, checked against the
                    layer). Default: all fields.
                  items:
                    type: string
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                point:
                  additionalProperties: true
                  description: >-
                    WGS84 point: features at (or within distance_m of) this
                    location.
                  type: object
                  x-alexandria-option-metadata:
                    in: body
                return_geometry:
                  description: Include GeoJSON geometry per row (WGS84).
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                spatial_rel:
                  default: intersects
                  description: >-
                    Relation between the features and point/bbox.


                    Provider reference: allowed values ["intersects",
                    "contains", "within", "envelope_intersects"]; default
                    "intersects".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - intersects
                      - contains
                      - within
                      - envelope_intersects
                url:
                  description: >-
                    ArcGIS REST service or layer URL:
                    https://<host>/<adaptor>/rest/services/<folder>/<service>/FeatureServer[/<layer>]
                    or …/MapServer[/<layer>], on ArcGIS Online
                    (services*.arcgis.com/<orgId>/arcgis/rest/services/…) or an
                    agency's ArcGIS Server
                    (gis.<agency>.gov/arcgis/rest/services/…). Query strings are
                    ignored; URLs carrying a token or key are refused.
                  type: string
                where:
                  default: 1=1
                  description: >-
                    ArcGIS SQL-92 where clause, e.g. `PIN = '123-456-789'`,
                    `ZONE_CODE LIKE 'R-%'`, `FLD_ZONE IN ('AE','VE')`.


                    Provider reference: default "1=1".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              required:
                - url
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-09T17:30:38Z.
                  summary: Official provider example
                  value:
                    attribution:
                      access_information: 'Source: FEMA, Esri'
                      copyright_text: null
                      item_id: ccd29fb4bd5e4b44a2d61638829a5d7e
                      item_url: >-
                        https://www.arcgis.com/home/item.html?id=ccd29fb4bd5e4b44a2d61638829a5d7e
                      license_info: >-
                        This work is licensed under the Esri Master License
                        Agreement. View Summary | View Terms of Use
                    count: 1
                    count_only: false
                    exceeded_transfer_limit: false
                    layer:
                      geometry_type: Polygon
                      name: USA_Flood_Hazard_Areas
                      object_id_field: OBJECTID
                      url: >-
                        https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0
                    limit: 25
                    next_offset: null
                    observed_at_ms: 1791567021306
                    offset: 0
                    return_geometry: false
                    rows:
                      - attributes:
                          DFIRM_ID: 22071C
                          FLD_ZONE: X
                          SFHA_TF: F
                          STATIC_BFE: null
                          ZONE_SUBTY: 0.2 Percent Annual Chance Flood Hazard
                    total_count: 1
                    where: 1=1
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Query one public ArcGIS feature layer or table (FeatureServer or
            MapServer layer that supports Query) with an ArcGIS SQL where
            clause, a WGS84 point (optionally with a search radius in metres) or
            bounding box, chosen output fields and ordering. Returns compact
            rows of attributes (date fields as RFC 3339 UTC) and, on request,
            GeoJSON geometry in WGS84 (6 decimals, vertex-capped), plus the
            total matching count, next_offset for paging (offset/limit up to 200
            per page, respecting the layer's maxRecordCount and
            exceededTransferLimit) and the layer's attribution (licence,
            credits, copyright). count_only returns just the count. Works on
            ArcGIS Online and agency ArcGIS Servers; non-ArcGIS answers are
            invalid_input not_arcgis_service, token-protected services
            not_found, server-rejected clauses invalid_input rejected_by_server.


            The response contains the tool result directly.


            The provider identifies `rows` as the primary payload key.


            | Documented field | Provider type | Description |

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

            | `attributes` | object | Field name to value, as the layer defines
            them (dates as RFC 3339 UTC strings, text capped at 2,000
            characters). |

            | `geometry` | object | RFC 7946 GeoJSON geometry in WGS84 (6
            decimals); null when the feature has no geometry or exceeded the
            vertex cap. |



            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.