Workflow: Get a content item

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
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

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>'

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

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close