curl --request POST \
--url https://api.aisa.one/apis/v1/arcgis-com/gis-layers/search-datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 5,
"owner": "esri_landscapes",
"q": "USA Flood Hazard Areas",
"type": "feature_service"
}
'import requests
url = "https://api.aisa.one/apis/v1/arcgis-com/gis-layers/search-datasets"
payload = {
"limit": 5,
"owner": "esri_landscapes",
"q": "USA Flood Hazard Areas",
"type": "feature_service"
}
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({
limit: 5,
owner: 'esri_landscapes',
q: 'USA Flood Hazard Areas',
type: 'feature_service'
})
};
fetch('https://api.aisa.one/apis/v1/arcgis-com/gis-layers/search-datasets', 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/search-datasets",
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([
'limit' => 5,
'owner' => 'esri_landscapes',
'q' => 'USA Flood Hazard Areas',
'type' => 'feature_service'
]),
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/search-datasets"
payload := strings.NewReader("{\n \"limit\": 5,\n \"owner\": \"esri_landscapes\",\n \"q\": \"USA Flood Hazard Areas\",\n \"type\": \"feature_service\"\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/search-datasets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 5,\n \"owner\": \"esri_landscapes\",\n \"q\": \"USA Flood Hazard Areas\",\n \"type\": \"feature_service\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/arcgis-com/gis-layers/search-datasets")
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 \"limit\": 5,\n \"owner\": \"esri_landscapes\",\n \"q\": \"USA Flood Hazard Areas\",\n \"type\": \"feature_service\"\n}"
response = http.request(request)
puts response.read_bodySearch 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.
curl --request POST \
--url https://api.aisa.one/apis/v1/arcgis-com/gis-layers/search-datasets \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 5,
"owner": "esri_landscapes",
"q": "USA Flood Hazard Areas",
"type": "feature_service"
}
'import requests
url = "https://api.aisa.one/apis/v1/arcgis-com/gis-layers/search-datasets"
payload = {
"limit": 5,
"owner": "esri_landscapes",
"q": "USA Flood Hazard Areas",
"type": "feature_service"
}
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({
limit: 5,
owner: 'esri_landscapes',
q: 'USA Flood Hazard Areas',
type: 'feature_service'
})
};
fetch('https://api.aisa.one/apis/v1/arcgis-com/gis-layers/search-datasets', 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/search-datasets",
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([
'limit' => 5,
'owner' => 'esri_landscapes',
'q' => 'USA Flood Hazard Areas',
'type' => 'feature_service'
]),
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/search-datasets"
payload := strings.NewReader("{\n \"limit\": 5,\n \"owner\": \"esri_landscapes\",\n \"q\": \"USA Flood Hazard Areas\",\n \"type\": \"feature_service\"\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/search-datasets")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 5,\n \"owner\": \"esri_landscapes\",\n \"q\": \"USA Flood Hazard Areas\",\n \"type\": \"feature_service\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/arcgis-com/gis-layers/search-datasets")
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 \"limit\": 5,\n \"owner\": \"esri_landscapes\",\n \"q\": \"USA Flood Hazard Areas\",\n \"type\": \"feature_service\"\n}"
response = http.request(request)
puts response.read_body请求规范
- 方法与路径: POST /apis/v1/arcgis-com/gis-layers/search-datasets
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/arcgis-com/gis-layers/search-datasets
{
"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。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
响应
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.