Skip To Content
ArcGIS Developer
Dashboard

/item.pkinfo: Package Info File

  • URL:https://[root]/content/items/[itemID]/item.pkinfo

Example usage

Below is an ArcGIS Online sample request URL to retrieve the package info file for an uploaded item:

URL for package info file

https://www.arcgis.com/sharing/rest/content/items/af01df44bf36437fa8daed01407138ab/item.pkinfo

Below is an ArcGIS Enterprise sample request URL to retrieve the package info file for an uploaded item:

https://machine.domain.com/webadaptor/sharing/rest/content/items/af01df44bf36437fa8daed01407138ab/item.pkinfo

Description

Uploaded items will have a package info file available only if that item is an ArcGIS package (for example, a layer package or map package). It contains information that is used by clients (ArcGIS Pro, ArcGIS Explorer, and so on) to work appropriately with downloaded packages. Navigating to the URL will result in a package info file (.pkinfo) being downloaded. This is an XML file; there is no other file format available. There are no parameters associated with this endpoint.

XML Response syntax


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<pkinfo>
  <ID>package id</ID>
  <size>size of package </size>
  <created>date created shown in UNIX time</created>
  <type>type</type>
  <packagelocation>package location</packagelocation>
  <pkinfolocation>package info location</pkinfolocation>
</pkinfo>

XML Response example

Below is a sample of the content returned in the downloaded .pkinfo file for ArcGIS Enterprise:


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<pkinfo>
  <ID>E1989F21-979F-4D9D-9AE0-FEF8423A00A7</ID>
  <size>410053</size>
  <created>1260389041281</created>
  <type>Map Package</type>
  <packagelocation>https://machine.domain.com/webadaptor/sharing/rest/content/items/96cdca741beb48648d2f75a3abb2dc87/data</packagelocation>
  <pkinfolocation>https://machine.domain.com/webadaptor/sharing/rest/sharing/rest/content/items/96cdca741beb48648d2f75a3abb2dc87/item.pkinfo</pkinfolocation>
</pkinfo>

Below is a sample of the content returned in the downloaded .pkinfo file for ArcGIS Online:


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<pkinfo>
  <ID>E1989F21-979F-4D9D-9AE0-FEF8423A00A7</ID>
  <size>410053</size>
  <created>1260389041281</created>
  <type>Map Package</type>
  <packagelocation>https://www.arcgis.com/sharing/rest/content/items/96cdca741beb48648d2f75a3abb2dc87/data</packagelocation>
  <pkinfolocation>https://www.arcgis.com/sharing/rest/sharing/rest/content/items/96cdca741beb48648d2f75a3abb2dc87/item.pkinfo</pkinfolocation>
</pkinfo>