How to host and manage data

Steps

1. Create a hosted layer

You can use tools and APIs, such as ArcGIS Online, the developer dashboard, and the portal service REST API to create and publish a hosted layer.

Explore the three ways to create a new hosted layer:

  1. Import: Upload file(s) with your existing data to create a hosted feature layer.
  2. Create: Define a new empty hosted feature layer.
  3. Convert: Create a new type of hosted layer (data) from an existing hosted feature layer.

Data hosting

2. Manage layer settings

After you create a hosted layer, you can use ArcGIS Online and the developer dashboard to manage both the hosted layer and data service with an item page. You use item pages to set hosted layer properties, data service capabilities, and perform other maintenance operations such as caching, data uploading, exporting, and publishing.

Data hosting

3. Access layer data

Once you set a hosted layer's properties, you can access hosted layer and the data service with client APIs, the REST API, and tools such as Map Viewer. In most cases, you access a layer to display the data on a map.

Data hosting

To get data, you need the service URL for your hosted layer 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

Tools
APIs

Services

API support

Import and create dataDisplay dataQuery dataEdit data
ArcGIS Maps SDK for JavaScript
ArcGIS Maps SDK for Kotlin
ArcGIS Maps SDK for Swift
ArcGIS Maps SDK for Java
ArcGIS Maps SDK for .NET
ArcGIS Maps SDK for Qt
ArcGIS API for Python
ArcGIS REST JS1
Esri Leaflet22
MapLibre GL JS322
OpenLayers322
Full supportPartial supportNo support
  • 1. Access portal via HTTP request and authentication.
  • 2. Access via ArcGIS REST JS.
  • 3. Requires manual application of renderers

Tools

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