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

> Find which public ArcGIS layer holds the data (a county's parcels or zoning, FEMA flood zones, a park's trails, a city's permits) and get its service URL. Start here unless you already have a .../FeatureServer or .../MapServer URL.

## 请求规范

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

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

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

```json theme={null}
{
  "operationId": "arcgis-com.gis-layers.search-datasets",
  "method": "POST",
  "path": "/apis/v1/arcgis-com/gis-layers/search-datasets",
  "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": {
              "limit": 5,
              "owner": "esri_landscapes",
              "q": "USA Flood Hazard Areas",
              "type": "feature_service"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "bbox": {
              "description": "[west, south, east, north] in WGS84 degrees: items whose extent intersects it.",
              "items": {
                "type": "number"
              },
              "type": "array",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "limit": {
              "default": 20,
              "description": "limit\n\nProvider reference: minimum 1; maximum 50; default 20.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 50,
                "min": 1
              }
            },
            "org_id": {
              "description": "ArcGIS Online organization id, e.g. the segment after services.arcgis.com/ in a service URL. Pattern: ^[A-Za-z0-9]{10,32}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "owner": {
              "description": "ArcGIS username of the publisher (from a previous result's owner).",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "page": {
              "default": 1,
              "description": "page\n\nProvider reference: minimum 1; maximum 10000; default 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 10000,
                "min": 1
              }
            },
            "q": {
              "description": "Keywords (ArcGIS search syntax allowed, e.g. `parcels Napa`, `title:zoning`, `tags:flood`).",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "site": {
              "description": "An ArcGIS Hub open-data site (hostname or any URL on it, e.g. data-smcmaps.opendata.arcgis.com or opendata.dc.gov). Restricts results to the site's organization.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sort": {
              "default": "relevance",
              "description": "sort\n\nProvider reference: allowed values [\"relevance\", \"modified\", \"views\", \"title\"]; default \"relevance\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "relevance",
                  "modified",
                  "views",
                  "title"
                ]
              }
            },
            "type": {
              "default": "any",
              "description": "Service type; feature services support the richest queries.\n\nProvider reference: allowed values [\"any\", \"feature_service\", \"map_service\"]; default \"any\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "any",
                  "feature_service",
                  "map_service"
                ]
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "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/search-datasets
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/search-datasets:
    post:
      tags:
        - ArcGIS public GIS layers
      summary: Search datasets
      description: >-
        Find which public ArcGIS layer holds the data (a county's parcels or
        zoning, FEMA flood zones, a park's trails, a city's permits) and get its
        service URL. Start here unless you already have a .../FeatureServer or
        .../MapServer URL.
      operationId: arcgis-com.gis-layers.search-datasets
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  limit: 5
                  owner: esri_landscapes
                  q: USA Flood Hazard Areas
                  type: feature_service
            schema:
              additionalProperties: true
              properties:
                bbox:
                  description: >-
                    [west, south, east, north] in WGS84 degrees: items whose
                    extent intersects it.
                  items:
                    type: number
                  type: array
                  x-alexandria-option-metadata:
                    in: body
                limit:
                  default: 20
                  description: |-
                    limit

                    Provider reference: minimum 1; maximum 50; default 20.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 50
                    min: 1
                org_id:
                  description: >-
                    ArcGIS Online organization id, e.g. the segment after
                    services.arcgis.com/ in a service URL. Pattern:
                    ^[A-Za-z0-9]{10,32}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                owner:
                  description: >-
                    ArcGIS username of the publisher (from a previous result's
                    owner).
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                page:
                  default: 1
                  description: |-
                    page

                    Provider reference: minimum 1; maximum 10000; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 10000
                    min: 1
                q:
                  description: >-
                    Keywords (ArcGIS search syntax allowed, e.g. `parcels Napa`,
                    `title:zoning`, `tags:flood`).
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                site:
                  description: >-
                    An ArcGIS Hub open-data site (hostname or any URL on it,
                    e.g. data-smcmaps.opendata.arcgis.com or opendata.dc.gov).
                    Restricts results to the site's organization.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                sort:
                  default: relevance
                  description: >-
                    sort


                    Provider reference: allowed values ["relevance", "modified",
                    "views", "title"]; default "relevance".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - relevance
                      - modified
                      - views
                      - title
                type:
                  default: any
                  description: >-
                    Service type; feature services support the richest queries.


                    Provider reference: allowed values ["any",
                    "feature_service", "map_service"]; default "any".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - any
                      - feature_service
                      - map_service
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-09T17:30:38Z.
                  summary: Official provider example
                  value:
                    count: 2
                    items:
                      - access: public
                        access_information: 'Source: FEMA, Esri'
                        authoritative: true
                        bbox:
                          - -92.858672
                          - 31.233415
                          - -89.472985
                          - 33.004235
                        content_status: public_authoritative
                        created: '2026-03-23T19:28:14Z'
                        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
                        modified: '2026-07-20T19:08:00Z'
                        org_id: 7weheFjxuNkGGiZi
                        owner: esri_landscapes
                        snippet: >-
                          This feature layer displays Flood Hazard Areas from
                          the Flood Insurance Rate Map created by the Federal
                          Emergency Management Agency, updated annually.
                        tags:
                          - FIRM
                          - FIRMs
                          - FEMA
                          - Flood Zones
                          - SFHA
                          - SFHAs
                          - Flood Zone
                          - S_Fld_Haz_Ar
                          - Hazard
                          - Hazards
                          - Flood
                          - Floods
                          - Federal Emergency Management Agency
                          - National Flood Hazard Layer
                          - NFHL
                        title: USA Flood Hazard Areas
                        type: Feature Service
                        url: >-
                          https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer
                        views: 453931
                      - access: public
                        access_information: 'Source: USDA NRCS, Esri'
                        authoritative: true
                        bbox:
                          - -93.683371
                          - 41.558474
                          - -93.541722
                          - 41.650083
                        content_status: public_authoritative
                        created: '2026-08-27T15:09:59Z'
                        id: d4c54647dd4c4405a9f4f0bc9fd351e9
                        item_url: >-
                          https://www.arcgis.com/home/item.html?id=d4c54647dd4c4405a9f4f0bc9fd351e9
                        license_info: >-
                          This work is licensed under the Esri Master License
                          Agreement. View Summary | View Terms of Use Important
                          Note: This item requires an ArcGIS Online
                          organizational subscription or an ArcGIS Developer
                          account and does not consume credits. To access this
                          item, you'll need to do one of the following: Sign in
                          with an account that is a member of an organizational
                          subscription Sign in with a developer account Register
                          an application and use your application's credentials.
                          If you don't have an account,…
                        modified: '2026-09-10T15:32:36Z'
                        org_id: 7weheFjxuNkGGiZi
                        owner: esri_landscapes
                        snippet: >-
                          This feature layer displays soil map units of the
                          United States and its territories. It is derived from
                          the US Department of Agriculture, Natural Resources
                          Conservation Service SSURGO dataset. This layer is
                          updated annually.
                        tags:
                          - landscape
                          - soils
                          - NRCS
                          - SSURGO
                          - SoilDerivative
                          - environment
                          - environments
                          - soil
                          - map unit
                          - map units
                          - esri_landscape
                          - esri_landscapes
                        title: USA Soils Map Units
                        type: Feature Service
                        url: >-
                          https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Soils_Map_Units/FeatureServer
                        views: 1538
                    limit: 5
                    next_page: null
                    observed_at_ms: 1791567020354
                    org_id: null
                    page: 1
                    query: >-
                      (USA Flood Hazard Areas) AND type:"Feature Service" AND
                      owner:"esri_landscapes"
                    site: null
                    total: 2
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search the public ArcGIS Online / ArcGIS Hub catalog (www.arcgis.com
            portal search) for government GIS layers published as Feature
            Services or Map Services: parcels, zoning, flood zones, permits,
            addresses, boundaries and similar. Filter by keywords, one Hub
            open-data site (e.g. public-nps.opendata.arcgis.com,
            opendata.dc.gov) or ArcGIS organization id, owner and a WGS84
            bounding box; sort by relevance, last modified, views or title; page
            through up to 10,000 results. Each item has its id, title, type,
            REST service URL (for describe_layer / query_layer), owner and
            organization, snippet, tags, dates, authoritative flag, licence and
            credit text, WGS84 extent and view count. Only public items are
            returned; there are no credentials.


            The response contains the tool result directly.


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


            | Documented field | Provider type | Description |

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

            | `access` | string |  |

            | `access_information` | string |  |

            | `authoritative` | boolean | Marked authoritative by its
            organization. |

            | `bbox` | number[] | [west, south, east, north] in WGS84 degrees;
            null when unknown or not convertible. |

            | `content_status` | string | public_authoritative,
            org_authoritative, deprecated, or null. |

            | `created` | string |  |

            | `id` | string | ArcGIS item id; pass as describe_layer item_id. |

            | `item_url` | string |  |

            | `license_info` | string |  |

            | `modified` | string |  |

            | `org_id` | string |  |

            | `owner` | string | ArcGIS username of the publisher (usable as the
            owner filter). |

            | `snippet` | string |  |

            | `tags` | string[] |  |

            | `title` | string |  |

            | `type` | string |  |

            | `url` | string | REST service (or layer) URL; pass to
            describe_layer / query_layer. |

            | `views` | number |  |



            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.