# ArcGIS public 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.

- Provider: Alexandria
- Category: Listings
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `arcgis-com/gis-layers/query_layer`
- Page: https://spiral.ai/tools/alexandria/arcgis-com/gis-layers/query_layer

## Pricing

$0.00873 per call.

## Limits

- 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

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `url` (required) | text |  | — | 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. |
| `bbox` | list |  | — | [west, south, east, north] in WGS84 degrees. |
| `layer` | number | 0 to 999999 | — | Layer id within the service, when the URL names the service only. |
| `limit` | number | 1 to 200 | 25 | Rows per page; the layer's maxRecordCount may cap it lower. |
| `point` | JSON |  | — | WGS84 point: features at (or within distance_m of) this location. |
| `where` | text |  | 1=1 | ArcGIS SQL-92 where clause, e.g. `PIN = '123-456-789'`, `ZONE_CODE LIKE 'R-%'`, `FLD_ZONE IN ('AE','VE')`. |
| `offset` | number | 0 to 100000000 | 0 | Rows to skip (next_offset from the previous page). |
| `order_by` | list |  | — | `FIELD` or `FIELD DESC`. Default: object id ascending, for stable paging. |
| `count_only` | true or false |  | — | Return only total_count, no rows. |
| `distance_m` | number | 0 to 50000 | — | Search radius around point, in metres (default 0: features containing the point). |
| `out_fields` | list |  | — | Fields to return (case-insensitive, checked against the layer). Default: all fields. |
| `spatial_rel` | one of | intersects, contains, within, envelope_intersects | intersects | Relation between the features and point/bbox. |
| `return_geometry` | true or false |  | — | Include GeoJSON geometry per row (WGS84). |

## Example

```bash
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>"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=arcgis-com%2Fgis-layers%2Fquery_layer

## Common questions

### ArcGIS public GIS layers · Query layer

**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.

