Skip to content

How to access data services

To access data services, you reference the unique service URL for the data from your application.

Steps

You can access hosted layer (items) with tools in your portal or ArcGIS Pro. If you are building applications, you can also use client APIs or the REST API.

Data hosting

Tools

  1. ...
  2. ...
  3. ...

APIs

  1. ...
  2. ...
  3. ...

List items

To access hosted layer (items) that you own, you need to sign in to your portal. This gives you access to items in your account.

Find items by ID

If you know the ID for a hosted layer (item), you can access the item page directly with a URL.

Use dark colors for code blocksCopy
1
https://www.arcgis.com/home/item.html?id=<ITEM_ID>

Example: https://www.arcgis.com/home/item.html?id=69e12682738e467eb509d8b54dc73cbd

If the item is is private, you will be prompted to sign in and redirected to the item ID URL:

Use dark colors for code blocksCopy
1
https://<ORG_ID>.maps.arcgis.com/home/item.html?id=<ITEM_ID>

Search for items by ID

If you would like to search for all hosted layer (items) that are public, you can do so using ArcGIS Online.

Example: https://www.arcgis.com/home/search.html?q=&focus=layers

To get data, you need the service URL for your hosted layer (item) and you can access the layer directly or with a query to the service. The easiest way to find the URL is to go to the item page.

To access feature layer data, you execute a query to request a subset of the features from the feature layer. To learn more, go to Hosted feature layers.

Public

Use dark colors for code blocksCopy
1
https://<HOST>/<UNIQUE_ID>/ArcGIS/rest/services/<SERVICE_NAME>/<LAYER_ID>/query?where=1=1&outFields=*&f=geojson

Private

Use dark colors for code blocksCopy
1
https://<HOST>/<UNIQUE_ID>/ArcGIS/rest/services/<SERVICE_NAME>/<LAYER_ID>/query?where=1=1&outFields=*&f=geojson&token=<ACCESS_TOKEN>

Example

Tutorials

Workflows

Services

API support

Use data management tools or Client APIs to create, manage, and access data services. The table below outlines the level of support for each API.

CreateManageAccess
ArcGIS Maps SDK for JavaScript1
ArcGIS Maps SDK for Kotlin1
ArcGIS Maps SDK for Swift1
ArcGIS Maps SDK for Flutter1
ArcGIS Maps SDK for Java1
ArcGIS Maps SDK for .NET1
ArcGIS Maps SDK for Qt1
ArcGIS API for Python
ArcGIS REST JS
Leaflet2
MapLibre GL JS23
OpenLayers23
CesiumJS23
Full supportPartial supportNo support
  • 1. Use portal class and direct REST API requests
  • 2. Access via ArcGIS REST JS
  • 3. Requires manually setting styles for renderers

Tools

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.