Tutorial: Find data using analysis variables

Learn how to use the Analysis Variable Finder tool to find global and local data for your application.

Global and local facts for San Diego

An analysis variable is an input data field name that defines what data to query and return from the GeoEnrichment service. Analysis variables are used to discover facts and information about the people and places in an area, which can help enrich applications for industries such as real estate and retail.

In this tutorial you learn how to find analysis variables for:

  • Population
  • Home values
  • Spending data

Prerequisites

Steps

Find population density

  1. Go to the Analysis Variable Finder tool.
  2. In the dropdown, select United States.
  3. Click Population.
  4. Check 2022 Population Density (Pop per Square Mile) (Esri).
  5. Click Copy JSON to copy the analysis variable to the clipboard. The analysis variable ID is: ["populationtotals.POPDENS_CY"].
  6. Make a request to the GeoEnrichment service using the variable to find the values within a study area.
cURLcURLHTTP
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

curl https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/Geoenrichment/enrich? \
-d "studyAreas=[{'geometry':{'x': -117.1042, 'y': 32.7671}}]" \
-d "analysisVariables=["populationtotals.POPDENS_CY"]" \
-d "f=json" \
-d "token=<ACCESS_TOKEN>"

Find home values

  1. Go to the Analysis Variable Finder tool.
  2. In the dropdown, select United States.
  3. Click Key Facts > Key US Facts.
  4. Check 2022 Home Value (Esri). Two variables will be selected: 2022 Median Home Value and 2022 Average Home Value.
  5. Click Copy JSON to copy the variables to the clipboard. The analysis variable IDs are: ["homevalue.MEDVAL_CY","homevalue.AVGVAL_CY"].
  6. Make a request to the GeoEnrichment service using the variables to find the values within a study area.
cURLcURLHTTP
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

curl https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/Geoenrichment/enrich? \
-d "studyAreas=[{'geometry':{'x': -117.1042, 'y': 32.7671}}]" \
-d "analysisVariables=["homevalue.MEDVAL_CY","homevalue.AVGVAL_CY"]" \
-d "f=json" \
-d "token=<ACCESS_TOKEN>"

  1. Go to the Analysis Variable Finder tool.
  2. In the dropdown, select United States.
  3. Click Spending.
  4. Select 2022 Meals at Restaurants/Other.
  5. Click Copy JSON to copy the variables to the clipboard. The analysis variable IDs are: ["food.X1131_X"].
  6. Make a request to the GeoEnrichment service using the variable to find the values within a study area.
cURLcURLHTTP
Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

curl https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/Geoenrichment/enrich? \
-d "studyAreas=[{'geometry':{'x': -117.1042, 'y': 32.7671}}]" \
-d "analysisVariables=["food.X1131_X"]" \
-d "f=pjson" \
-d "token=<ACCESS_TOKEN>"

What's next?

Learn how to use additional tools, APIs, and location services in these tutorials:

Query demographic data

Query demographic information for locations around the world with the GeoEnrichment service.


Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.