How can I use ArcGIS Notebooks to identify if layers in my ArcGIS Online organization have a thumbnail, summary, description, and terms of use?

86
1
10-14-2020 04:28 PM
New Contributor

I've been searching for over a week now and the only things I'm finding are how to see if a layer (feature layers or web maps) has tags or a title, but not the other things like summary, description, thumbnail, and terms of use.  Any push in the right direction would be helpful!

Reply
0 Kudos
1 Reply
by Esri Contributor
Esri Contributor

Hi Troy,

Using the ArcGIS API you can 'get' the item in question via its ID or by searching your content, and then check properties such as description (item.description), thumbnail (item.thumbnail), summary (item.snippet), and its terms of use (item.licenseInfo). These values will be empty strings or null if not already present (except in the case of the thumbnail, which instead would be a path to the default thumbnail).

See here for a deeper explanation and a few examples of this.

See here for the ArcGIS Python API reference with regards to content. This will list all the properties available to you.

Hopefully this answers your question. Let me know if you have any more!

Cheers,

Josh