Types of portal service applications

There are two main types of applications you can create with the portal service:

  1. Content management applications
  2. Content-driven applications

Content management applications

A content management application is built with client APIs or REST API, to access the portal service directly, and can perform operations such as creating, accessing, and managing items, users, and groups.

For example, you can build applications that:

The general steps for building content management applications are:

  1. Connect to the portal service at https://www.arcgis.com/sharing/rest.
  2. Make requests to the portal service. An access token may be required.

Workflow

Get a content item

The examples below show how to access a public and private item by ID.

See more examples in Search, Items, Users and Groups.

APIs

ArcGIS API for PythonArcGIS API for PythonArcGIS REST JSArcGIS Maps SDK for JavaScript
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
from arcgis.gis import GIS
gis = GIS()
item = gis.content.get("5a5147abe878444cbac68dea9f2f64e7")
print(item)

REST API

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
## Public

curl https://www.arcgis.com/sharing/rest/content/items/5a5147abe878444cbac68dea9f2f64e7 \
-d 'f=pjson'

## Private

curl https://www.arcgis.com/sharing/rest/content/items/<ITEM_ID> \
-d 'f=pjson' \
-d 'token=<ACCESS_TOKEN>'

Content-driven applications

Content-driven applications are built following a tools-first workflow, where you first create content in the portal with an interactive tool, such as ArcGIS Online or the developer dashboard, and then build a custom application to access the content.

Some examples of tools that can create content for applications are:

  • Map Viewer: Create and style layers in a web map.
  • Scene Viewer: Create and style layers in a web scene.
  • ArcGIS Online or the developer dashboard: Import data as a feature layer and set its properties.
  • ArcGIS Online or the developer dashboard: Publish a vector tile layer.
  • ArcGIS Vector Tile Style Editor: Style a basemap layer.

The general steps for building content-driven applications are:

  1. Create content such as a web map, web scene, or hosted layer with tools.
  2. Manage the content items with tools.
  3. Access the content items with a custom application.

See the tutorial workflows below for examples.

Workflows

Use tools to create different types of content and build content-driven applications.

Create and access web maps

The Map Viewer can be used to interactively create and style a map for your applications. The Map Viewer provides a number of features to help you style layers and pop-ups to produce high-quality cartography in your map. Once styled and saved in the portal, you can access the web map by its item ID and use it in your applications. Web maps are stored as a JSON object in a web map item.

Workflow

  1. Create a web map with the Map Viewer.
  2. Style the layers and configure pop-ups.
  3. Display the web map in an application.

Create and access web scenes

The Scene Viewer can be used to interactively create and style a 3D web scene for your applications. Similar to the Map Viewer, the Scene Viewer allows you access and style layers to create high-quality 3D visualizations. You can also set the initial camera viewpoint. Once styled and saved in the portal, you can access the web scene by its item ID and use it in your 3D applications. Web scenes are stored as a JSON object in a web scene item.

Workflow

  1. Create a web scene with the Scene Viewer.
  2. Style the layers and configure pop-ups.
  3. Display the web scene in an application.

Create and access feature services

Tools such as ArcGIS Online and the developer dashboard can be used to import data in different formats such as CSV, GeoJSON, and Shapefile, and host the data in the portal as a hosted layer item. Once imported, you can use the tools to manage the layer item and access the data service. For example, you can add or remove fields that are accessible, change the default layer style, or change the sharing settings to private, public, or shared with a group. Applications can access hosted layers by the layer item ID or the data service URL. Learn more about hosting data in Data hosting.

Workflow

  1. Import data as a feature layer in a feature service.
  2. Configure the feature layer.
  3. Display the feature layer in an application.

Create and access vector tile services

You can also use tools such as ArcGIS Online and the developer dashboard to publish vector tile layers from feature layers. If the feature layer contains styles, the styles will be exported and applied to the new vector tile layer. Vector tile layers and their styles are stored as tile layer items in the portal. Once in the portal, you can manage the layer properties and easily access the vector tile layers from applications.

Workflow

  1. Create a feature layer, style it, and then publish a new vector tile service.
  2. Display the vector tile service in an application.

Create and access custom basemap styles

The Vector tile style editor can be used to create your own custom basemap styles and use them in applications. The editor allows you to create a new style with custom colors, fonts, and images and store them as new vector tile layer items in the portal. Once stored in the portal, applications can access the vector tile layer and styles easily from applications.

Workflow

  1. Create a new basemap style with the Vector tile style editor.
  2. Display the basemap style in an application.

Services

Portal service

Store, manage, and access private and public content.

API support

SearchItemsUsersGroups
ArcGIS Maps SDK for JavaScript11
ArcGIS Maps SDK for .NET11
ArcGIS Maps SDK for Kotlin11
ArcGIS Maps SDK for Swift11
ArcGIS Maps SDK for Java11
ArcGIS Maps SDK for Qt11
ArcGIS API for Python
ArcGIS REST JS
Esri Leaflet2222
MapLibre GL JS2222
OpenLayers2222
Full supportPartial supportNo support
  • 1. Limited operations, use HTTP requests.
  • 2. Access via ArcGIS REST JS.

Tools

Use tools to access the portal and create and manage content for applications.

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