Select to view content in your preferred language

Usage Values Not Being Returned

149
0
10-21-2025 09:46 AM
mpboyle
Frequent Contributor

I'm wondering why usage values are not returned for certain item types, specifically hosted tile layers, when using the Python API?  When viewing the Usage tab for these items, counts appear. However, when using the Python API, either the counts are way off, or not even returned.

Is this a known limitation based on item type?

Below are a few examples:

Example 1: Hosted Tile Layer

Item usage via the item page

mpboyle_0-1761064238832.png

Item usage via the Python API. The usage values ("num") are not close.

mpboyle_2-1761064545278.png

 

Example 2: Hosted Vector Tile Layer

Item usage via the item page

mpboyle_3-1761064605438.png

Item usage via the Python API. The data key is an empty list.

mpboyle_4-1761064756133.png

 

Example 3: Hosted Feature Layer

Item usage via the item page

mpboyle_5-1761064966523.png

Item usage via the Python API --- matches the item page

mpboyle_6-1761065053271.png

 

0 Kudos
0 Replies