Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaListingsAvailable now

ArcGIS public GIS layers · Query layer

arcgis-com/gis-layers/query_layer

Search property, job and marketplace listings with ArcGIS public GIS layers · Query layer from Alexandria through one Spiral API key. 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. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
url requiredtext—

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.

bboxlist—

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

layernumber
0 to 999999
—

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

limitnumber
1 to 200
25

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

pointJSON—

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

wheretext1=1

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

offsetnumber
0 to 100000000
0

Rows to skip (next_offset from the previous page).

order_bylist—

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

count_onlytrue or false—

Return only total_count, no rows.

distance_mnumber
0 to 50000
—

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

out_fieldslist—

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

spatial_relone of
intersects, contains, within, envelope_intersects
intersects

Relation between the features and point/bbox.

return_geometrytrue or false—

Include GeoJSON geometry per row (WGS84).

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "arcgis-com/gis-layers/query_layer",
    "input": {
      "url": "<url>"
    }
  }'

Frequently asked questions

How much does ArcGIS public GIS layers · Query layer cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use ArcGIS public GIS layers · Query layer through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "arcgis-com/gis-layers/query_layer"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use ArcGIS public GIS layers · Query layer?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use ArcGIS public GIS layers · Query layer?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.