Get started with the Spatial Analysis service

The Spatial Analysis service contains a number of tasks that allow you to perform common spatial analyses on your hosted data. An overview of the available tasks can be found in Overview of tasks contained in the Spatial Analysis service. These tasks are available as tools in Map Viewer Classic and ArcGIS API for Python. These tasks allow you to perform analysis against hosted layers as well as other layers they have access to.

To learn more about accessing these tasks using Map Viewer Classic, see the Perform analysis help topic or ArcGIS API for Python documentation. Note that in some cases, the Spatial Analysis REST API has more functionality that is not exposed in Map Viewer Classic or ArcGIS API for Python.

Using these tools in ArcGIS Online Map Viewer Classic consumes credits. For more information on credits, see Service credits overview.

You can programmatically access the Spatial Analysis service in the following ways:

If you want to learn more about each tool, in addition to the information provided in the ArcGIS REST API documentation, see Perform analysis.

Licensing

To use the analysis tasks, the administrator of your organization needs to grant you certain privileges. To use any of the analysis tools, you will need the Spatial Analysis privilege. If the output of your task is a hosted feature service, as opposed to a feature collection, you also need the two following privileges:

These privileges are available with a Creator or GIS Professional user type and a Publisher, Facilitator, or Administrator role. If you do not have these privileges, you will not see the Spatial Analysis toolbox.

Certain tasks need additional privileges such as Network Analysis and GeoEnrichment. If the task requires additional privileges, they will be listed in the task documentation.

Common patterns

The tasks in the Spatial Analysis service all share the following common pattern: