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

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