<?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: AGO Credit Usage Download in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/ago-credit-usage-download/m-p/1617879#M11418</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/898241"&gt;@AJohnson_HFHI&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It is &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.admin.html#arcgis.gis.admin.AGOLUsageReports.users" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Dates are returned as epochs so you will need to convert to a date string. You can access each dictionary per username and get the credit consumption for each day.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
import json

agol = GIS("home")

report = agol.admin.usage_reports.users(time_frame="7days")

print(json.dumps(report, indent= 4))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if this is what you were looking for.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 23 May 2025 12:55:54 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2025-05-23T12:55:54Z</dc:date>
    <item>
      <title>AGO Credit Usage Download</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/ago-credit-usage-download/m-p/1616926#M11408</link>
      <description>&lt;P&gt;Hi - I'm looking to utilize the Python-API for downloading a per-user daily credit usage report from ArcGIS Online.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm on the latest version of the python-api. I've tried to utilize the AGOLUsageReports module but it appears it gives a high level snapshot, not per user usage metrics.&lt;/P&gt;&lt;P&gt;I'm trying to replicate the same type of report that ArcGIS Online can generate but more granular per user, and then automatically add the data to local databases for analysis. I've also tried to run similar tools that were shown here:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/api-python/administration/dev-summit-2024-manage-your-organization-using-arcgis-api-for-python?utm_source=chatgpt.com" target="_blank" rel="noopener"&gt;Dev Summit 2024: Manage your organization using ArcGIS API for Python&lt;/A&gt;&amp;nbsp;but it doesn't look like&amp;nbsp;gis.users.me.report(...) exists in the current release.&lt;/P&gt;&lt;P&gt;Any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Wed, 21 May 2025 13:24:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/ago-credit-usage-download/m-p/1616926#M11408</guid>
      <dc:creator>AJohnson_HFHI</dc:creator>
      <dc:date>2025-05-21T13:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: AGO Credit Usage Download</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/ago-credit-usage-download/m-p/1617879#M11418</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/898241"&gt;@AJohnson_HFHI&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It is &lt;A href="https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.admin.html#arcgis.gis.admin.AGOLUsageReports.users" target="_blank" rel="noopener"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Dates are returned as epochs so you will need to convert to a date string. You can access each dictionary per username and get the credit consumption for each day.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS
import json

agol = GIS("home")

report = agol.admin.usage_reports.users(time_frame="7days")

print(json.dumps(report, indent= 4))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if this is what you were looking for.&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 12:55:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/ago-credit-usage-download/m-p/1617879#M11418</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-05-23T12:55:54Z</dc:date>
    </item>
  </channel>
</rss>

