Skip to contents

Given the unique ID of a content item, fetches the item's metadata from a portal.

Usage

arc_item(item_id, host = arc_host(), token = arc_token())

Arguments

item_id

the ID of the item to fetch. A scalar character.

host

default "https://www.arcgis.com"

token

an httr2_token as created by auth_code() or similar

Value

an object of class PortalItem which is a list with the item's metadata.

Details

See API Reference for more information.

[Experimental]

See also

Other portal item: arc_item_data()

Examples

arc_item("9df5e769bfe8412b8de36a2e618c7672")
#> <PortalItem<Feature Service>>
#> id: 9df5e769bfe8412b8de36a2e618c7672
#> title: USA Major Cities
#> owner: esri_dm