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_bodyQuery 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_bodyRequest contract
- Method and path: POST /apis/v1/arcgis-com/gis-layers/query-layer
- Availability: enabled
- Request URL template:
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"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
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.
Response
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.