Search code examples
pythonrestsoaparcgisesri

ESRI API for BAO reports in Python


Currently we use ESRI's Business Analyst Online (BAO) to create demographic reports based on geospatial inputs (3-mile ring around an address, or within a city's boundaries, etc.). These are generally output from the point and click web application as PDF or Excel files.

I'm trying to automate the process of retrieving those reports from ESRI BAO. I have installed the Python 3.5+ package arcgis following instructions found here. This seems to get me started with the ArcGIS functionality, but I don't see any API functionality for the BAO toolset. Is there another API package I should be downloading? Or is there documentation on a REST/SOAP API I can call from Python? I've looked over the documentation, but if there's something there about what I'm trying to do I haven't found it.

Has anybody tried to do this before and been successful? Let me know.


Solution

  • After starting trials for several ArcGIS services I found that ArcGIS Online provides access to ESRI's REST API. As of today, once you've signed up (either paying or with a trial) you can navigate to the ArcGIS GeoEnrichment Service Documentation. That documentation tells you everything you need to know about how to access the same reports you would find in ESRI BAO, but through a REST API.