Search code examples
htmlrestweb-crawlerarcgisarcgis-server

how to get all the information of maps in ArcGIS online


I'm using ArcGIS REST API and would like to retrieve information about the maps in the ArcGIS online gallery.

For example, I want all the information from this page:http://doc.arcgis.com/en/living-atlas/item/?itemId=aa9c87d6f17b452296252bd75005f6a4 This is for one map

I know each map has an itemID, but they have tons of maps in this page:http://doc.arcgis.com/en/living-atlas/#s=0&subCat=0&type=All&area=All, how do I get all the map IDs from it? Is there a REST service to do that? I didn't find one in their REST API reference.


Solution

  • That page that you're referencing is using the ArcGIS REST API. If you look at the network panel of your browser console, you'll see first it's searching for all the groups that have the tag of "gallery" and the owner is esri OR Esri_cy_US using the groups search endpoint:

    groups query

    Then it takes those groups and finds all the items in those groups using the search endpoint:

    search items in groups

    Good luck using the REST API!