<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Finding Unused Feature Services in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733511#M36242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good link, Mark. I'm definitely upvoting that. I'm playing around with the .usage() function that Katherine mentioned, looks like it could be promising. I'm definitely not familiar with the API so there's probably better ways to do this but plugging into a Notebook is giving good results so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;from IPython.display import display&lt;BR /&gt;gis = GIS("home")&lt;BR /&gt;items = gis.content.search(query="type:Feature Service")&lt;BR /&gt;for item in items:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;try:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;itemHistory = item.usage(date_range='1Y', as_df=True)&amp;nbsp; &amp;nbsp;# &amp;lt;--- Looking in the past 12 months&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;total = itemHistory['Usage'].sum()&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if total &amp;lt;20:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;# &amp;lt;---&amp;nbsp;Less than 20 total views&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;display(item)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;except:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pass&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2020 17:24:14 GMT</pubDate>
    <dc:creator>JasonJordan00</dc:creator>
    <dc:date>2020-05-14T17:24:14Z</dc:date>
    <item>
      <title>Finding Unused Feature Services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733508#M36239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, would anyone know of a way to query the usage statistics in hosted feature services through any of the APIs to find items that haven't been used in 30, 90 days, etc?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 21:15:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733508#M36239</guid>
      <dc:creator>JasonJordan00</dc:creator>
      <dc:date>2020-05-13T21:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Unused Feature Services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733509#M36240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To my knowledge there isn't an easy way to do this. You can create usage reports on how much content is being created but usage on individual services is not straightforward, though Portal or ArcGIS Online. There is an Esri idea where people are asking for something similar:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/ideas/16193-create-detailed-agol-usage-report-for-every-item"&gt;Create Detailed AGOL Usage Report for Every Item&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is for an ArcGIS Enteprise deployment, rather than AGOL then you can get access to ArcGIS Server statistics in Server Manager. There you can view the number of requests for given services. It's not exactly what you are after but it allows you to see which services are getting requests and which are not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 02:14:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733509#M36240</guid>
      <dc:creator>mdonnelly</dc:creator>
      <dc:date>2020-05-14T02:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Unused Feature Services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733510#M36241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for sharing that, &lt;A href="https://community.esri.com/migrated-users/15571"&gt;Mark Donnelly&lt;/A&gt;‌! It would be SO helpful for organization administrators to be able to generate reports like that!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did notice in the comments of that Idea that&amp;nbsp;item.usage() from the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.gis.toc.html#item"&gt;Python API&lt;/A&gt; will produce similar results....maybe something that would be worth it to look into in the meantime. However, making this functionality available for all org admins, even those without programming experience, is essential!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 13:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733510#M36241</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2020-05-14T13:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Unused Feature Services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733511#M36242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good link, Mark. I'm definitely upvoting that. I'm playing around with the .usage() function that Katherine mentioned, looks like it could be promising. I'm definitely not familiar with the API so there's probably better ways to do this but plugging into a Notebook is giving good results so far.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;from IPython.display import display&lt;BR /&gt;gis = GIS("home")&lt;BR /&gt;items = gis.content.search(query="type:Feature Service")&lt;BR /&gt;for item in items:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;try:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;itemHistory = item.usage(date_range='1Y', as_df=True)&amp;nbsp; &amp;nbsp;# &amp;lt;--- Looking in the past 12 months&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;total = itemHistory['Usage'].sum()&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;if total &amp;lt;20:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;# &amp;lt;---&amp;nbsp;Less than 20 total views&lt;/SPAN&gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;display(item)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;except:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;pass&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 17:24:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733511#M36242</guid>
      <dc:creator>JasonJordan00</dc:creator>
      <dc:date>2020-05-14T17:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Unused Feature Services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733512#M36243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow, thanks for posting the code! I'll need to give that a try as well! &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 18:09:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733512#M36243</guid>
      <dc:creator>Katie_Clark</dc:creator>
      <dc:date>2020-05-14T18:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding Unused Feature Services</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733513#M36244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice bit of code&amp;nbsp;Jason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wasn't aware&amp;nbsp;of the item.usage object, so thanks for sharing!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 23:01:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/finding-unused-feature-services/m-p/733513#M36244</guid>
      <dc:creator>mdonnelly</dc:creator>
      <dc:date>2020-05-14T23:01:30Z</dc:date>
    </item>
  </channel>
</rss>

