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 (selected by default).

  3. In the dropdown, select Esri 2025 (selected by default).

  4. In the Variables section, click Population card.

  5. Check 2025 Population Density (Pop per Square Mile) (Esri).

  6. Scroll to the bottom and click Export as JSON to copy the analysis variable to the clipboard.

    The analysis variable ID is: ["populationtotals.POPDENS_CY"]

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    7
    8
    9
     {
       "analysisVariables": [
         "populationtotals.POPDENS_CY"
       ],
       "useData": {
         "sourceCountry": "US",
         "hierarchy": "esri2025"
       }
     }
  7. 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 (selected by default).

  3. In the dropdown, select Esri 2025 (selected by default).

  4. In the Variables section, click Key Facts.

  5. Check 2025 Median Home Value (Esri).

  6. Scroll to the bottom and click Export as JSON to copy the analysis variable to the clipboard.

    The analysis variable IDs are: ["homevalue.MEDVAL_CY"].

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    7
    8
    9
     {
       "analysisVariables": [
         "homevalue.MEDVAL_CY"
       ],
       "useData": {
         "sourceCountry": "US",
         "hierarchy": "esri2025"
       }
     }
  7. 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 (selected by default).

  3. In the dropdown, select Esri 2025 (selected by default).

  4. In the Variables section, click Spending.

  5. Select 2025 Meals at Restaurants/Other.

  6. Scroll to the bottom and click Export as JSON to copy the analysis variable to the clipboard.

    The analysis variable IDs are: ["food.X1131_X"].

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    7
    8
    9
     {
       "analysisVariables": [
         "food.X1131_X"
       ],
       "useData": {
         "sourceCountry": "US",
         "hierarchy": "esri2025"
       }
     }
  7. 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.