curl --request POST \
--url https://api.aisa.one/apis/v1/arcgis-com/gis-layers/describe-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/describe-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/describe-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/describe-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/describe-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/describe-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/describe-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_title": "USA Flood Hazard Areas",
"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"
},
"layer": {
"bbox_wgs84": [
-170.84842,
-14.375153,
145.832189,
66.591598
],
"capabilities": [
"Query",
"Extract"
],
"copyright_text": null,
"description": null,
"display_field": null,
"extent": {
"wkid": 3857,
"xmax": 16233965.037100002,
"xmin": -19018759.0796,
"ymax": 10040669.876500005,
"ymin": -1617292.3216999993
},
"field_count": 24,
"fields": [
{
"alias": "Object ID",
"domain": null,
"length": null,
"name": "OBJECTID",
"nullable": false,
"type": "OID"
},
{
"alias": "FIRM Study ID",
"domain": null,
"length": 6,
"name": "DFIRM_ID",
"nullable": true,
"type": "String"
},
{
"alias": "Version ID",
"domain": null,
"length": 11,
"name": "VERSION_ID",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Area ID",
"domain": null,
"length": 32,
"name": "FLD_AR_ID",
"nullable": true,
"type": "String"
},
{
"alias": "Study Type",
"domain": null,
"length": 38,
"name": "STUDY_TYP",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Hazard Zone",
"domain": null,
"length": 17,
"name": "FLD_ZONE",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Hazard Zone Subtype",
"domain": null,
"length": 80,
"name": "ZONE_SUBTY",
"nullable": true,
"type": "String"
},
{
"alias": "Special Flood Hazard Area (T/F)",
"domain": null,
"length": 1,
"name": "SFHA_TF",
"nullable": true,
"type": "String"
},
{
"alias": "Static Base Flood Elevation",
"domain": null,
"length": null,
"name": "STATIC_BFE",
"nullable": true,
"type": "Double"
},
{
"alias": "Vertical Datum",
"domain": null,
"length": 17,
"name": "V_DATUM",
"nullable": true,
"type": "String"
},
{
"alias": "AO Zone Depth",
"domain": null,
"length": null,
"name": "DEPTH",
"nullable": true,
"type": "Double"
},
{
"alias": "Length Units",
"domain": null,
"length": 16,
"name": "LEN_UNIT",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Flow Velocity",
"domain": null,
"length": null,
"name": "VELOCITY",
"nullable": true,
"type": "Double"
},
{
"alias": "Velocity Unit",
"domain": null,
"length": 20,
"name": "VEL_UNIT",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Control Restoration Zones",
"domain": null,
"length": 17,
"name": "AR_REVERT",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Control Restoration Zones Subtype",
"domain": null,
"length": 57,
"name": "AR_SUBTRV",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Control Restoration Zones BFE Revert",
"domain": null,
"length": null,
"name": "BFE_REVERT",
"nullable": true,
"type": "Double"
},
{
"alias": "Flood Control Restoration Zones Depth Revert",
"domain": null,
"length": null,
"name": "DEP_REVERT",
"nullable": true,
"type": "Double"
},
{
"alias": "Flood Control Restoration Zones Dual Zone Classification",
"domain": null,
"length": 1,
"name": "DUAL_ZONE",
"nullable": true,
"type": "String"
},
{
"alias": "Source Citation",
"domain": null,
"length": 21,
"name": "SOURCE_CIT",
"nullable": true,
"type": "String"
},
{
"alias": null,
"domain": null,
"length": 36,
"name": "GFID",
"nullable": true,
"type": "String"
},
{
"alias": "Esri Symbology",
"domain": null,
"length": 50,
"name": "esri_symbology",
"nullable": true,
"type": "String"
},
{
"alias": "Shape Area",
"domain": null,
"length": null,
"name": "SHAPE__Area",
"nullable": true,
"type": "Double"
},
{
"alias": "Shape Length",
"domain": null,
"length": null,
"name": "SHAPE__Length",
"nullable": true,
"type": "Double"
}
],
"geometry_type": "Polygon",
"id": 0,
"max_record_count": 2000,
"name": "USA_Flood_Hazard_Areas",
"object_id_field": "OBJECTID",
"queryable": true,
"supports_order_by": true,
"supports_pagination": true,
"supports_statistics": true,
"type": "Feature Layer",
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
},
"observed_at_ms": 1791567020556,
"service": {
"capabilities": [
"Query",
"Extract"
],
"copyright_text": null,
"current_version": 12,
"description": null,
"host": "services5.arcgis.com",
"item_id": "ccd29fb4bd5e4b44a2d61638829a5d7e",
"layers": [
{
"geometry_type": "Polygon",
"id": 0,
"name": "USA_Flood_Hazard_Areas",
"parent_layer_id": null,
"type": "Feature Layer",
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
}
],
"max_record_count": 2000,
"name": "USA_Flood_Hazard_Areas_view",
"tables": [],
"type": "FeatureServer",
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer"
},
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
}Describe layer
Before query_layer: find the right layer id in a service and the exact field names and codes for a where clause (zoning codes, flood zone values), or check a layer’s licence and record limits. Pass a url from search_datasets or a pasted ArcGIS REST URL.
curl --request POST \
--url https://api.aisa.one/apis/v1/arcgis-com/gis-layers/describe-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/describe-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/describe-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/describe-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/describe-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/describe-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/describe-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_title": "USA Flood Hazard Areas",
"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"
},
"layer": {
"bbox_wgs84": [
-170.84842,
-14.375153,
145.832189,
66.591598
],
"capabilities": [
"Query",
"Extract"
],
"copyright_text": null,
"description": null,
"display_field": null,
"extent": {
"wkid": 3857,
"xmax": 16233965.037100002,
"xmin": -19018759.0796,
"ymax": 10040669.876500005,
"ymin": -1617292.3216999993
},
"field_count": 24,
"fields": [
{
"alias": "Object ID",
"domain": null,
"length": null,
"name": "OBJECTID",
"nullable": false,
"type": "OID"
},
{
"alias": "FIRM Study ID",
"domain": null,
"length": 6,
"name": "DFIRM_ID",
"nullable": true,
"type": "String"
},
{
"alias": "Version ID",
"domain": null,
"length": 11,
"name": "VERSION_ID",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Area ID",
"domain": null,
"length": 32,
"name": "FLD_AR_ID",
"nullable": true,
"type": "String"
},
{
"alias": "Study Type",
"domain": null,
"length": 38,
"name": "STUDY_TYP",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Hazard Zone",
"domain": null,
"length": 17,
"name": "FLD_ZONE",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Hazard Zone Subtype",
"domain": null,
"length": 80,
"name": "ZONE_SUBTY",
"nullable": true,
"type": "String"
},
{
"alias": "Special Flood Hazard Area (T/F)",
"domain": null,
"length": 1,
"name": "SFHA_TF",
"nullable": true,
"type": "String"
},
{
"alias": "Static Base Flood Elevation",
"domain": null,
"length": null,
"name": "STATIC_BFE",
"nullable": true,
"type": "Double"
},
{
"alias": "Vertical Datum",
"domain": null,
"length": 17,
"name": "V_DATUM",
"nullable": true,
"type": "String"
},
{
"alias": "AO Zone Depth",
"domain": null,
"length": null,
"name": "DEPTH",
"nullable": true,
"type": "Double"
},
{
"alias": "Length Units",
"domain": null,
"length": 16,
"name": "LEN_UNIT",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Flow Velocity",
"domain": null,
"length": null,
"name": "VELOCITY",
"nullable": true,
"type": "Double"
},
{
"alias": "Velocity Unit",
"domain": null,
"length": 20,
"name": "VEL_UNIT",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Control Restoration Zones",
"domain": null,
"length": 17,
"name": "AR_REVERT",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Control Restoration Zones Subtype",
"domain": null,
"length": 57,
"name": "AR_SUBTRV",
"nullable": true,
"type": "String"
},
{
"alias": "Flood Control Restoration Zones BFE Revert",
"domain": null,
"length": null,
"name": "BFE_REVERT",
"nullable": true,
"type": "Double"
},
{
"alias": "Flood Control Restoration Zones Depth Revert",
"domain": null,
"length": null,
"name": "DEP_REVERT",
"nullable": true,
"type": "Double"
},
{
"alias": "Flood Control Restoration Zones Dual Zone Classification",
"domain": null,
"length": 1,
"name": "DUAL_ZONE",
"nullable": true,
"type": "String"
},
{
"alias": "Source Citation",
"domain": null,
"length": 21,
"name": "SOURCE_CIT",
"nullable": true,
"type": "String"
},
{
"alias": null,
"domain": null,
"length": 36,
"name": "GFID",
"nullable": true,
"type": "String"
},
{
"alias": "Esri Symbology",
"domain": null,
"length": 50,
"name": "esri_symbology",
"nullable": true,
"type": "String"
},
{
"alias": "Shape Area",
"domain": null,
"length": null,
"name": "SHAPE__Area",
"nullable": true,
"type": "Double"
},
{
"alias": "Shape Length",
"domain": null,
"length": null,
"name": "SHAPE__Length",
"nullable": true,
"type": "Double"
}
],
"geometry_type": "Polygon",
"id": 0,
"max_record_count": 2000,
"name": "USA_Flood_Hazard_Areas",
"object_id_field": "OBJECTID",
"queryable": true,
"supports_order_by": true,
"supports_pagination": true,
"supports_statistics": true,
"type": "Feature Layer",
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
},
"observed_at_ms": 1791567020556,
"service": {
"capabilities": [
"Query",
"Extract"
],
"copyright_text": null,
"current_version": 12,
"description": null,
"host": "services5.arcgis.com",
"item_id": "ccd29fb4bd5e4b44a2d61638829a5d7e",
"layers": [
{
"geometry_type": "Polygon",
"id": 0,
"name": "USA_Flood_Hazard_Areas",
"parent_layer_id": null,
"type": "Feature Layer",
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
}
],
"max_record_count": 2000,
"name": "USA_Flood_Hazard_Areas_view",
"tables": [],
"type": "FeatureServer",
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer"
},
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
}Request contract
- Method and path: POST /apis/v1/arcgis-com/gis-layers/describe-layer
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/arcgis-com/gis-layers/describe-layer
{
"operationId": "arcgis-com.gis-layers.describe-layer",
"method": "POST",
"path": "/apis/v1/arcgis-com/gis-layers/describe-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": {
"url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"item_id": {
"description": "ArcGIS item id of a Feature Service or Map Service (from search_datasets), optionally with a Hub `_<layer>` suffix. Alternative to url. Pattern: ^[0-9a-fA-F]{32}(_[0-9]{1,6})?$.",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"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
}
},
"url": {
"description": "ArcGIS REST service or layer URL, or an ArcGIS Online item page (https://www.arcgis.com/home/item.html?id=…). 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",
"x-alexandria-option-metadata": {
"in": "body"
}
}
},
"type": "object"
}
}
},
"required": false
},
"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, or an ArcGIS Online item page (https://www.arcgis.com/home/item.html?id=…). 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
Read an ArcGIS FeatureServer or MapServer service, or one of its layers, from its REST URL or ArcGIS item id: the service's layers and tables (id, name, type, geometry type, URL), description, capabilities and record limit; for a layer, its fields (name, alias, type, length, coded-value or range domains), geometry type, object id and display fields, extent (native and WGS84 when convertible), query capabilities and max record count. Always includes attribution: the ArcGIS Online item's licence text and credits plus the copyright text, so results can be credited. Works with ArcGIS Online (services*.arcgis.com) and any agency-hosted ArcGIS Server; the answer must be ArcGIS service JSON, otherwise invalid_input not_arcgis_service. Token-protected services are not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
attribution | object | Who to credit and the terms of use. Licence text and credits come from the ArcGIS Online item behind the service (null for agency servers without one); copyright_text from the service or layer itself. |
layer | object | Layer detail when a layer was named; null for a service. |
observed_at_ms | number | |
service | object | |
url | string | Canonical service or layer URL that was read. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.