Skip to main content
POST
Query layer

Request 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
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

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

Authorization
string
header
required

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

Body

application/json
url
string
required

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
default:25

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

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

offset
number
default: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
default:intersects

Relation between the features and point/bbox.

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

where
string
default: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".

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.

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