跳转到主要内容
POST
Query layer

请求规范

  • 方法与路径: POST /apis/v1/arcgis-com/gis-layers/query-layer
  • 可用状态: enabled
  • 请求 URL 模板: https://api.aisa.one/apis/v1/arcgis-com/gis-layers/query-layer
完整 OpenAPI 定义 有效请求声明(包括认证和引用的 schema):

费用与请求规则

按实际用量收费。 默认请求预估费用:$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json
url
string
必填

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.

bbox
number[]

[west, south, east, north] in WGS84 degrees.

count_only
boolean

Return only total_count, no rows.

distance_m
number

Search radius around point, in metres (default 0: features containing the point).

Provider reference: minimum 0; maximum 50000.

layer
number

Layer id within the service, when the URL names the service only.

Provider reference: minimum 0; maximum 999999.

limit
number
默认值:25

Rows per page; the layer's maxRecordCount may cap it lower.

Provider reference: minimum 1; maximum 200; default 25.

offset
number
默认值:0

Rows to skip (next_offset from the previous page).

Provider reference: minimum 0; maximum 100000000; default 0.

order_by
string[]

FIELD or FIELD DESC. Default: object id ascending, for stable paging.

out_fields
string[]

Fields to return (case-insensitive, checked against the layer). Default: all fields.

point
object

WGS84 point: features at (or within distance_m of) this location.

return_geometry
boolean

Include GeoJSON geometry per row (WGS84).

spatial_rel
string
默认值:intersects

Relation between the features and point/bbox.

Provider reference: allowed values ["intersects", "contains", "within", "envelope_intersects"]; default "intersects".

where
string
默认值:1=1

ArcGIS SQL-92 where clause, e.g. PIN = '123-456-789', ZONE_CODE LIKE 'R-%', FLD_ZONE IN ('AE','VE').

Provider reference: default "1=1".

响应

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.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.