How to Access Item Data Stored in ArcGIS Online or Portal with ArcGIS REST API

11881
3
07-26-2014 08:06 AM
EricChiasson
New Contributor III
6 3 11.9K

The ArcGIS REST API’s Item Data allows to access the data component of an item, such as download a layer package or get the web map’s JSON.  You can even use this functionality to host images to support your story map although it might get tedious to set up if the number of images is very large.

Share the Item with Everyone (Public)

  1. In ArcGIS Online, go to the item’s detail content page
  2. Click Share, and share item with Everyone (Public)
  3. Click OK

Access the Data via the Sharing REST end-point

  1. In a browser, type URL with the following structure:


Zip it!

Optionally, you can have downloadable items, such as layer packages and map packages, zip by adding the URL parameters f=zip.  For example: http://www.arcgis.com/sharing/rest/content/items/8adf6db6ca5f4140b73b3a2e053753e6/data?f=zip 

This will change the file extension *.lpk, or *.mpk to *.zip.

Note


Please note that item data access, via ArcGIS REST API, is not  available for free ArcGIS Online account (i.e. account that are not part of an organization).

3 Comments
About the Author
Eric has over 12 years of experience in GIS, He worked for 9 years at Esri before joining Esri Canada Professional Services. Eric is experienced with production mapping, database design, web mapping application development, and system implementation. He is a COGS graduate and has a MBA from the University of Redlands. Eric completed his Esri Technical Certification for ArcGIS Desktop and Enterprise Geodatabase Management Professional, as well as his Certified Business Analyst Professional (CBAP).