There seems to be a limit of 10 items when querying items on AGO. I would like to return all items in an organization. Here is the code I was using:
from arcgis.gis import GIS
gis = GIS("https://organization.maps.arcgis.com", "username", "password")
gis.content.search(query="")
Thank you for any assistance you may provide. Thank you for everything and have a delightful day.
Sincerely,
Joe Guzi
Solved! Go to Solution.
Hey Joe - The API reference for the content here defines the max_items parameter that provides control to the number of results returned. By default, the max_items parameter returns 10 items. You can set that parameter to a desired number:
search_results = a_gis.content.search(query="*", max_items=50)
I don't believe there is a limit to the number you can enter for that parameter.
Hey Joe - The API reference for the content here defines the max_items parameter that provides control to the number of results returned. By default, the max_items parameter returns 10 items. You can set that parameter to a desired number:
search_results = a_gis.content.search(query="*", max_items=50)
I don't believe there is a limit to the number you can enter for that parameter.
jyaist-esristaff Thank you so much. The documentation you referenced was way more useful than the documentation I was looking at. This was the nudge I needed. Thanks again!
How to search in specific folder. or how to retrieve all feature services folder wise?