I have created an application using ArcGIS Online. I have some layers in it. Now I want a complete report of all layers means I want to export/download layer data in any format.

So Is there any solution or APIs, through which we can query the layers and download the data?

  • Go-to my content and export them. If exported to shapefile, open relevant dbf in Excel etc.
    – FelixIP
    Aug 29 '18 at 19:47

The usual way to query an ArcGIS layer is by using the REST API.

You didn't mention which technology your application is using, but assuming it's a web application, you should probably use the ArcGIS API for JavaScript. More specific: The QueryTask object can be used to query data from a layer.

  • Yes, It's a web application. I am able to query data from the layer. I have some fields in the layer. Basically, I need to download the whole data(all field data) of the layer in pdf or any other format. Can you suggest any solution for that?
    – Tarni
    Aug 29 '18 at 10:25
  • If it has to be PDF, I don't think so. AGOL does not have a reporting facility (support.esri.com/en/technical-article/000012597), so you would have to use a 3rd party report generator, or try something like this: stackoverflow.com/questions/742271/…. If any format is fine, you could for instance use JavaScript to open a new window, write the results of the QueryTask to that window, and have a user save that to a file. Or perhaps have a Copy button that copies the data to the clipboard?
    – Berend
    Aug 29 '18 at 11:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.