curl --request POST \
--url https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
}
'import requests
url = "https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer"
payload = { "url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0'
})
};
fetch('https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer"
payload := strings.NewReader("{\n \"url\": \"https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0\"\n}"
response = http.request(request)
puts response.read_body{
"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"
}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.
curl --request POST \
--url https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
}
'import requests
url = "https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer"
payload = { "url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0'
})
};
fetch('https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer"
payload := strings.NewReader("{\n \"url\": \"https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0\"\n}"
response = http.request(request)
puts response.read_body{
"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"
}请求规范
- 方法与路径: POST /apis/v1/arcgis-com/gis-layers/query-layer
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer
{
"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。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
ArcGIS REST service or layer URL: https:////rest/services///FeatureServer[/] or …/MapServer[/], on ArcGIS Online (services*.arcgis.com//arcgis/rest/services/…) or an agency's ArcGIS Server (gis..gov/arcgis/rest/services/…). Query strings are ignored; URLs carrying a token or key are refused.
响应
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.