HOW TO
Querying data by field from an ArcGIS Online hosted feature service via the ArcGIS REST API is particularly useful when working with large datasets because it retrieves only the necessary information. This reduces the response size and improves performance.
The feature service can be queried through the REST API depending on the authorized administrative privileges. Refer to ArcGIS REST APIs: Manage API access for more information.
, and select View details.Note: Alternatively, in the item page, under Source, click Feature Service to open the ArcGIS REST Services Directory window.
Note: Optionally, for the Out Fields parameter, multiple fields can be queried by separating them with commas (,) or all fields in the layer can be retrieved by specifying an asterisk (*).

The result of querying the feature service by the City field is shown below.

Article ID: 000037380
Get help from ArcGIS experts
Start chatting now