<?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: get a list of all arcgis items with arcgis python module in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812417#M2523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't find anything in the reference. I'm looking for a way to get a list of all items in my AGO account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Apr 2018 13:41:22 GMT</pubDate>
    <dc:creator>JohnBroecher</dc:creator>
    <dc:date>2018-04-03T13:41:22Z</dc:date>
    <item>
      <title>get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812415#M2521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to&amp;nbsp;get a list of all arcgis online items with the python module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 01:13:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812415#M2521</guid>
      <dc:creator>JohnBroecher</dc:creator>
      <dc:date>2018-04-01T01:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812416#M2522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the API reference&amp;nbsp;&lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/"&gt;https://esri.github.io/arcgis-python-api/apidoc/html/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What specifically is it you need?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 01 Apr 2018 02:28:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812416#M2522</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2018-04-01T02:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812417#M2523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couldn't find anything in the reference. I'm looking for a way to get a list of all items in my AGO account.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:41:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812417#M2523</guid>
      <dc:creator>JohnBroecher</dc:creator>
      <dc:date>2018-04-03T13:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812418#M2524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try searching using an owner filter like:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;gis.content.search("owner:my_username", max_items=1000)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;If you authenticate with your account, then it should find everything you own.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#arcgis.gis.ContentManager.search" title="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.gis.toc.html#arcgis.gis.ContentManager.search"&gt;arcgis.gis module — arcgis 1.4.0 documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812418#M2524</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-04-03T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812419#M2525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The API reference above is correct. There is a search method which should do&amp;nbsp;exactly what you need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/400458_search.png" style="width: 620px; height: 430px;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 13:52:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812419#M2525</guid>
      <dc:creator>RonnieRichards</dc:creator>
      <dc:date>2018-04-03T13:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812420#M2526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe this script can help.&lt;/P&gt;&lt;P&gt;The output will export excel files contains&amp;nbsp;all parameters like title, type, itemid, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;from&lt;/SPAN&gt; arcgis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;gis &lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; GIS
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; pandas &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; pd

portal &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; GIS&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"url portal"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"username"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"password"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;#set "max_users" parameters in search() if you have more than 100 users in your portal&lt;/SPAN&gt;
users_all &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; portal&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;users&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;search&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; 

&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;get_item&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;user&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
       list_items &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
       content_item &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; user&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;items&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
       &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; content_item&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
             list_items&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemid&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; item
      
      folders &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; user&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;folders
       &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; folder &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; folders &lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
             folder_items &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; user&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;items&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;folder&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'title'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
             &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; item &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; folder_items&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
                     list_items&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;item&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;itemid&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; item
       pd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;DataFrame&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;list_items&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;transpose&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;to_excel&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;user&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;username&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'.xlsx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; i &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; range&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;len&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;users_all&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
       &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"extract "&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; str&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;users_all&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"data to excel..."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
       get_item&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;users_all&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;i&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812420#M2526</guid>
      <dc:creator>citrasagala</dc:creator>
      <dc:date>2021-12-12T09:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812421#M2527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I don't have an enterprise portal where does the Excel end up? It doesn't show up in my organization's content in AGO. The script seems to run fine and loops through my users, but I can't figure out where the exports are located.&lt;/P&gt;&lt;P&gt;Is there something I can add to the script to download the Excel after its been exported?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 18:07:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/812421#M2527</guid>
      <dc:creator>ConorMacNaughton</dc:creator>
      <dc:date>2020-10-30T18:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/1015780#M5410</link>
      <description>&lt;P&gt;I know this is a bit old but you can just modify the script to specify an output location:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;pd.DataFrame(list_items).transpose().to_excel('C:\\temp\\' + str(user.username)+'.xlsx')&lt;/LI-CODE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/59014"&gt;@ConorMacNaughton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;If I don't have an enterprise portal where does the Excel end up? It doesn't show up in my organization's content in AGO. The script seems to run fine and loops through my users, but I can't figure out where the exports are located.&lt;/P&gt;&lt;P&gt;Is there something I can add to the script to download the Excel after its been exported?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 22:37:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/1015780#M5410</guid>
      <dc:creator>Marc_Graham</dc:creator>
      <dc:date>2021-01-11T22:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/1015803#M5411</link>
      <description>&lt;P&gt;Great script thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 00:04:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/1015803#M5411</guid>
      <dc:creator>Marc_Graham</dc:creator>
      <dc:date>2021-01-12T00:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/1019272#M5463</link>
      <description>&lt;P&gt;The script is great! Thanks for sharing... I have been trying to perform this task but in my case, I just need to list the items inside a specific folder within AGOL's content folders. I like the way the original scripts outputs the table with&amp;nbsp;&lt;SPAN&gt;title, type, itemid.&amp;nbsp;&lt;/SPAN&gt;Any assistance will be appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 21:02:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/1019272#M5463</guid>
      <dc:creator>ErnestoCarreras2</dc:creator>
      <dc:date>2021-01-22T21:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: get a list of all arcgis items with arcgis python module</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/1048976#M5941</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I got it to work but was not getting all results. Turns out there's a default of 100 items returned max. I had to explicitly change that to see everything:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;folder_items = user.items(folder=folder['title'],max_items=1000)&lt;/P&gt;</description>
      <pubDate>Tue, 20 Apr 2021 03:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/get-a-list-of-all-arcgis-items-with-arcgis-python/m-p/1048976#M5941</guid>
      <dc:creator>SolanaFoo2</dc:creator>
      <dc:date>2021-04-20T03:44:36Z</dc:date>
    </item>
  </channel>
</rss>

