GET {organization}/ArcGIS/rest/services/{serviceName}/MapServer/{layerId}/query

arcgis.com:arcgis-rest-api

Summary: Query map layer features
Operation ID: queryMapLayerFeatures
Auth: unknown
Description

Query features from a map layer using SQL-like where clauses and spatial filters

Parameters (8)

f (string, query, optional, default: json)

Response format

Constraints: {'enum': ['json', 'geojson', 'html', 'pjson']}

layerId (integer, path, required)

Layer ID

organization (string, path, required)

Organization ID

outFields (string, query, optional, default: *)

Comma-separated list of fields to return

resultRecordCount (integer, query, optional, default: 2000)

Maximum number of records to return

returnGeometry (boolean, query, optional, default: True)

Whether to return geometry data

serviceName (string, path, required)

Name of the map service

where (string, query, optional, default: 1=1)

SQL where clause for filtering features

No probe data for this endpoint yet.