You will learn: how to query demographic and lifestyle information about a place with the ArcGIS REST API.
The ArcGIS World GeoEnrichment Service can get rich social and economic information about a location or area. It provides a queryable database of thousands of demographic, lifestyle, and environmental variables. The data can be used to enrich geographic data with contextual variables for analysis. If you would like to create an application that can find demographic data around a location, you can use the ArcGIS REST API and the enrich
operation. You just pass in the location (studyArea) and the search options such as distance and the service returns a set of data facts. To learn more about the types of queries and data that can be discovered for a location, please visit the documentation.
In this tutorial , you will use the ArcGIS REST API to access the ArcGIS World GeoEnrichement Service to query demographic data for the area around a trailhead situated in an urban area to learn more about the surrounding residents.
Install Postman to execute HTTP requests. Go to this tutorial if you need an access token.
Open Postman and click [+] in the tab bar to create a new request.
In the new tab, set the following:
POST
https://geoenrich.arcgis.com/arcgis/rest/services/World/geoenrichmentserver/GeoEnrichment/enrich
Click on Body > x-www-form-urlencoded and add the following parameters as Key/Value pairs:
f
: json
token
: Go to this tutorial if you need an access token.inSR
: 4326
outSR
: 4326
returnGeometry
: true
Add the following parameters as Key/Value pairs to specify the areas we would like to study:
studyAreas
:[
{
"geometry":{
"x":-118.09047,
"y":33.81091
}
}
]
studyAreasOptions
:{
"areaType":"RingBuffer",
"bufferUnits":"esriMiles",
"bufferRadii":[1]
}
Add the following parameters as Key/Value pairs to specify variables or collections of variables we would like to retrieve:
dataCollections
: ["KeyGlobalFacts", "KeyUSFacts"]
Click Send to run the request.
In the response window, click Pretty > JSON. It should look something like this:
{
"results": [
{
"paramName": "GeoEnrichmentResult",
"dataType": "GeoEnrichmentResult",
"value": {
"version": "2.0",
"FeatureSet": [
{
"displayFieldName": "",
"fieldAliases": {
"ID": "ID",
"OBJECTID": "Object ID",
"sourceCountry": "sourceCountry",
"areaType": "areaType",
"bufferUnits": "bufferUnits",
"bufferUnitsAlias": "bufferUnitsAlias",
"bufferRadii": "bufferRadii",
"aggregationMethod": "aggregationMethod",
"HasData": "HasData",
"TOTPOP": "Total Population",
"TOTHH": "Total Households",
"AVGHHSZ": "Average Household Size",
"TOTMALES": "Male Population",
"TOTFEMALES": "Female Population",
"TOTPOP00": "2000 Total Population",
"TOTPOP10": "2010 Total Population",
"TOTPOP_CY": "2017 Total Population",
"TOTPOP_FY": "2022 Total Population",
"GQPOP_CY": "2017 Population in Group Quarters",
"DIVINDX_CY": "2017 Diversity Index",
"TOTHH00": "2000 Total Households",
"TOTHH10": "2010 Total Households",
"TOTHH_CY": "2017 Total Households",
"TOTHH_FY": "2022 Total Households",
"AVGHHSZ_CY": "2017 Average Household Size",
"MEDHINC_CY": "2017 Median Household Income",
"MEDHINC_FY": "2022 Median Household Income",
"AVGHINC_CY": "2017 Average Household Income",
"AVGHINC_FY": "2022 Average Household Income",
"PCI_CY": "2017 Per Capita Income",
"PCI_FY": "2022 Per Capita Income",
"TOTHU00": "2000 Total Housing Units",
"TOTHU10": "2010 Total Housing Units",
"TOTHU_CY": "2017 Total Housing Units",
"TOTHU_FY": "2022 Total Housing Units",
"OWNER_CY": "2017 Owner Occupied HUs",
"OWNER_FY": "2022 Owner Occupied HUs",
"RENTER_CY": "2017 Renter Occupied HUs",
"RENTER_FY": "2022 Renter Occupied HUs",
"VACANT_CY": "2017 Vacant Housing Units",
"VACANT_FY": "2022 Vacant Housing Units",
"MEDVAL_CY": "2017 Median Home Value",
"MEDVAL_FY": "2022 Median Home Value",
"AVGVAL_CY": "2017 Average Home Value",
"AVGVAL_FY": "2022 Average Home Value",
"POPGRW10CY": "2010-2017 Growth Rate: Population",
"HHGRW10CY": "2010-2017 Growth Rate: Households",
"FAMGRW10CY": "2010-2017 Growth Rate: Families",
"POPGRWCYFY": "2017-2022 Growth/Yr: Population",
"HHGRWCYFY": "2017-2022 Growth/Yr: Households",
"FAMGRWCYFY": "2017-2022 Growth/Yr: Families",
"MHIGRWCYFY": "2017-2022 Growth/Yr: Median HH Inc",
"PCIGRWCYFY": "2017-2022 Growth/Yr: Per Capita Income",
"DPOP_CY": "2017 Total Daytime Population",
"DPOPWRK_CY": "2017 Daytime Pop: Workers",
"DPOPRES_CY": "2017 Daytime Pop: Residents"
},
"geometryType": "esriGeometryPolygon",
"spatialReference": {
"wkid": 4326,
"latestWkid": 4326
},
"fields": [
{
"name": "ID",
"type": "esriFieldTypeString",
"alias": "ID",
"length": 256
},
{
"name": "OBJECTID",
"type": "esriFieldTypeOID",
"alias": "Object ID"
},
{
"name": "sourceCountry",
"type": "esriFieldTypeString",
"alias": "sourceCountry",
"length": 256
},
{
"name": "areaType",
"type": "esriFieldTypeString",
"alias": "areaType",
"length": 256
},
{
"name": "bufferUnits",
"type": "esriFieldTypeString",
"alias": "bufferUnits",
"length": 256
},
{
"name": "bufferUnitsAlias",
"type": "esriFieldTypeString",
"alias": "bufferUnitsAlias",
"length": 256
},
{
"name": "bufferRadii",
"type": "esriFieldTypeDouble",
"alias": "bufferRadii"
},
{
"name": "aggregationMethod",
"type": "esriFieldTypeString",
"alias": "aggregationMethod",
"length": 256
},
{
"name": "HasData",
"type": "esriFieldTypeInteger",
"alias": "HasData"
},
{
"name": "TOTPOP",
"type": "esriFieldTypeDouble",
"alias": "Total Population",
"fullName": "KeyGlobalFacts.TOTPOP",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTHH",
"type": "esriFieldTypeDouble",
"alias": "Total Households",
"fullName": "KeyGlobalFacts.TOTHH",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "AVGHHSZ",
"type": "esriFieldTypeDouble",
"alias": "Average Household Size",
"fullName": "KeyGlobalFacts.AVGHHSZ",
"component": "scripts",
"decimals": 2,
"units": "count"
},
{
"name": "TOTMALES",
"type": "esriFieldTypeDouble",
"alias": "Male Population",
"fullName": "KeyGlobalFacts.TOTMALES",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTFEMALES",
"type": "esriFieldTypeDouble",
"alias": "Female Population",
"fullName": "KeyGlobalFacts.TOTFEMALES",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTPOP00",
"type": "esriFieldTypeDouble",
"alias": "2000 Total Population",
"fullName": "KeyUSFacts.TOTPOP00",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTPOP10",
"type": "esriFieldTypeDouble",
"alias": "2010 Total Population",
"fullName": "KeyUSFacts.TOTPOP10",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTPOP_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Total Population",
"fullName": "KeyUSFacts.TOTPOP_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTPOP_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Total Population",
"fullName": "KeyUSFacts.TOTPOP_FY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "GQPOP_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Population in Group Quarters",
"fullName": "KeyUSFacts.GQPOP_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "DIVINDX_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Diversity Index",
"fullName": "KeyUSFacts.DIVINDX_CY",
"component": "demographics",
"decimals": 1,
"units": "count"
},
{
"name": "TOTHH00",
"type": "esriFieldTypeDouble",
"alias": "2000 Total Households",
"fullName": "KeyUSFacts.TOTHH00",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTHH10",
"type": "esriFieldTypeDouble",
"alias": "2010 Total Households",
"fullName": "KeyUSFacts.TOTHH10",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTHH_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Total Households",
"fullName": "KeyUSFacts.TOTHH_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTHH_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Total Households",
"fullName": "KeyUSFacts.TOTHH_FY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "AVGHHSZ_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Average Household Size",
"fullName": "KeyUSFacts.AVGHHSZ_CY",
"component": "demographics",
"decimals": 2,
"units": "count"
},
{
"name": "MEDHINC_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Median Household Income",
"fullName": "KeyUSFacts.MEDHINC_CY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "MEDHINC_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Median Household Income",
"fullName": "KeyUSFacts.MEDHINC_FY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "AVGHINC_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Average Household Income",
"fullName": "KeyUSFacts.AVGHINC_CY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "AVGHINC_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Average Household Income",
"fullName": "KeyUSFacts.AVGHINC_FY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "PCI_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Per Capita Income",
"fullName": "KeyUSFacts.PCI_CY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "PCI_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Per Capita Income",
"fullName": "KeyUSFacts.PCI_FY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "TOTHU00",
"type": "esriFieldTypeDouble",
"alias": "2000 Total Housing Units",
"fullName": "KeyUSFacts.TOTHU00",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTHU10",
"type": "esriFieldTypeDouble",
"alias": "2010 Total Housing Units",
"fullName": "KeyUSFacts.TOTHU10",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTHU_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Total Housing Units",
"fullName": "KeyUSFacts.TOTHU_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "TOTHU_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Total Housing Units",
"fullName": "KeyUSFacts.TOTHU_FY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "OWNER_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Owner Occupied HUs",
"fullName": "KeyUSFacts.OWNER_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "OWNER_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Owner Occupied HUs",
"fullName": "KeyUSFacts.OWNER_FY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "RENTER_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Renter Occupied HUs",
"fullName": "KeyUSFacts.RENTER_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "RENTER_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Renter Occupied HUs",
"fullName": "KeyUSFacts.RENTER_FY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "VACANT_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Vacant Housing Units",
"fullName": "KeyUSFacts.VACANT_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "VACANT_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Vacant Housing Units",
"fullName": "KeyUSFacts.VACANT_FY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "MEDVAL_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Median Home Value",
"fullName": "KeyUSFacts.MEDVAL_CY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "MEDVAL_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Median Home Value",
"fullName": "KeyUSFacts.MEDVAL_FY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "AVGVAL_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Average Home Value",
"fullName": "KeyUSFacts.AVGVAL_CY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "AVGVAL_FY",
"type": "esriFieldTypeDouble",
"alias": "2022 Average Home Value",
"fullName": "KeyUSFacts.AVGVAL_FY",
"component": "demographics",
"decimals": 0,
"units": "currency",
"currency": "$"
},
{
"name": "POPGRW10CY",
"type": "esriFieldTypeDouble",
"alias": "2010-2017 Growth Rate: Population",
"fullName": "KeyUSFacts.POPGRW10CY",
"component": "demographics",
"decimals": 2,
"units": "pct"
},
{
"name": "HHGRW10CY",
"type": "esriFieldTypeDouble",
"alias": "2010-2017 Growth Rate: Households",
"fullName": "KeyUSFacts.HHGRW10CY",
"component": "demographics",
"decimals": 2,
"units": "pct"
},
{
"name": "FAMGRW10CY",
"type": "esriFieldTypeDouble",
"alias": "2010-2017 Growth Rate: Families",
"fullName": "KeyUSFacts.FAMGRW10CY",
"component": "demographics",
"decimals": 2,
"units": "pct"
},
{
"name": "POPGRWCYFY",
"type": "esriFieldTypeDouble",
"alias": "2017-2022 Growth/Yr: Population",
"fullName": "KeyUSFacts.POPGRWCYFY",
"component": "demographics",
"decimals": 2,
"units": "pct"
},
{
"name": "HHGRWCYFY",
"type": "esriFieldTypeDouble",
"alias": "2017-2022 Growth/Yr: Households",
"fullName": "KeyUSFacts.HHGRWCYFY",
"component": "demographics",
"decimals": 2,
"units": "pct"
},
{
"name": "FAMGRWCYFY",
"type": "esriFieldTypeDouble",
"alias": "2017-2022 Growth/Yr: Families",
"fullName": "KeyUSFacts.FAMGRWCYFY",
"component": "demographics",
"decimals": 2,
"units": "pct"
},
{
"name": "MHIGRWCYFY",
"type": "esriFieldTypeDouble",
"alias": "2017-2022 Growth/Yr: Median HH Inc",
"fullName": "KeyUSFacts.MHIGRWCYFY",
"component": "demographics",
"decimals": 2,
"units": "pct"
},
{
"name": "PCIGRWCYFY",
"type": "esriFieldTypeDouble",
"alias": "2017-2022 Growth/Yr: Per Capita Income",
"fullName": "KeyUSFacts.PCIGRWCYFY",
"component": "demographics",
"decimals": 2,
"units": "pct"
},
{
"name": "DPOP_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Total Daytime Population",
"fullName": "KeyUSFacts.DPOP_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "DPOPWRK_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Daytime Pop: Workers",
"fullName": "KeyUSFacts.DPOPWRK_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
},
{
"name": "DPOPRES_CY",
"type": "esriFieldTypeDouble",
"alias": "2017 Daytime Pop: Residents",
"fullName": "KeyUSFacts.DPOPRES_CY",
"component": "demographics",
"decimals": 0,
"units": "count"
}
],
"features": [
{
"attributes": {
"ID": "0",
"OBJECTID": 1,
"sourceCountry": "US",
"areaType": "RingBuffer",
"bufferUnits": "esriMiles",
"bufferUnitsAlias": "Miles",
"bufferRadii": 1,
"aggregationMethod": "BlockApportionment:US.BlockGroups",
"HasData": 1,
"TOTPOP": 12483,
"TOTHH": 4793,
"AVGHHSZ": 2.6,
"TOTMALES": 5998,
"TOTFEMALES": 6485,
"TOTPOP00": 11957,
"TOTPOP10": 12075,
"TOTPOP_CY": 12483,
"TOTPOP_FY": 12817,
"GQPOP_CY": 9,
"DIVINDX_CY": 59.8,
"TOTHH00": 4741,
"TOTHH10": 4682,
"TOTHH_CY": 4793,
"TOTHH_FY": 4897,
"AVGHHSZ_CY": 2.6,
"MEDHINC_CY": 103043,
"MEDHINC_FY": 110749,
"AVGHINC_CY": 127914,
"AVGHINC_FY": 143207,
"PCI_CY": 48741,
"PCI_FY": 54278,
"TOTHU00": 4796,
"TOTHU10": 4795,
"TOTHU_CY": 4883,
"TOTHU_FY": 4987,
"OWNER_CY": 3976,
"OWNER_FY": 4046,
"RENTER_CY": 817,
"RENTER_FY": 851,
"VACANT_CY": 90,
"VACANT_FY": 90,
"MEDVAL_CY": 615497,
"MEDVAL_FY": 651281,
"AVGVAL_CY": 633805,
"AVGVAL_FY": 690419,
"POPGRW10CY": 0.46,
"HHGRW10CY": 0.32,
"FAMGRW10CY": 0.37,
"POPGRWCYFY": 0.53,
"HHGRWCYFY": 0.43,
"FAMGRWCYFY": 0.45,
"MHIGRWCYFY": 1.45,
"PCIGRWCYFY": 2.18,
"DPOP_CY": 8467,
"DPOPWRK_CY": 2432,
"DPOPRES_CY": 6035
},
"geometry": {
"rings": [
[
[
-118.09047000000001,
33.82541919753795
],
[
-118.0892706196524,
33.825384620280985
],
[
-118.08807695778293,
33.82528105336855
],
[
-118.08689470556358,
33.825108990588944
],
[
-118.08572949968536,
33.82486925230243
],
[
-118.08458689544486,
33.82456298152423
],
[
-118.08347234022214,
33.82419163846691
],
[
-118.08239114747664,
33.82375699356871
],
[
-118.08134847138611,
33.82326111904088
],
[
-118.08034928225045,
33.822706378974985
],
[
-118.07939834277778,
33.822095418057444
],
[
-118.07850018536678,
33.82143114894539
],
[
-118.07765909049367,
33.82071673836468
],
[
-118.0768790663072,
33.81995559199654
],
[
-118.07616382952902,
33.81915133822522
],
[
-118.07551678775043,
33.818307810824784
],
[
-118.0749410232096,
33.817429030667626
],
[
-118.0744392781264,
33.81651918654272
],
[
-118.07401394166428,
33.815582615175046
],
[
-118.07366703858054,
33.81462378054187
],
[
-118.07340021961889,
33.813647252585014
],
[
-118.0732147536886,
33.81265768542024
],
[
-118.07311152186729,
33.811659795148714
],
[
-118.07309101325453,
33.810658337375564
],
[
-118.07315332269542,
33.80965808454346
],
[
-118.07329815038341,
33.80866380318909
],
[
-118.07352480334384,
33.807680231230606
],
[
-118.07383219878962,
33.80671205539493
],
[
-118.0742188693323,
33.8057638888917
],
[
-118.07468297002248,
33.804840249440396
],
[
-118.07522228718545,
33.803945537755396
],
[
-118.07583424900888,
33.80308401659034
],
[
-118.07651593783119,
33.80225979044277
],
[
-118.0772641040721,
33.8014767860139
],
[
-118.0780751817376,
33.80073873351738
],
[
-118.07894530542578,
33.80004914892522
],
[
-118.07987032875188,
33.799411317234956
],
[
-118.08084584410483,
33.798828276837945
],
[
-118.08186720364102,
33.79830280506208
],
[
-118.08292954141584,
33.79783740495807
],
[
-118.08402779654708,
33.79743429339137
],
[
-118.08515673730136,
33.7970953904965
],
[
-118.08631098598853,
33.796822310543384
],
[
-118.08748504454627,
33.796616354258866
],
[
-118.08867332069428,
33.7964785026402
],
[
-118.08987015453374,
33.79640941228915
],
[
-118.09106984546628,
33.79640941228915
],
[
-118.09226667930572,
33.7964785026402
],
[
-118.09345495545374,
33.796616354258866
],
[
-118.09462901401147,
33.796822310543384
],
[
-118.09578326269865,
33.7970953904965
],
[
-118.09691220345294,
33.79743429339137
],
[
-118.09801045858418,
33.79783740495807
],
[
-118.09907279635898,
33.79830280506208
],
[
-118.10009415589519,
33.798828276837945
],
[
-118.10106967124814,
33.799411317234956
],
[
-118.10199469457424,
33.80004914892522
],
[
-118.1028648182624,
33.80073873351738
],
[
-118.1036758959279,
33.8014767860139
],
[
-118.10442406216882,
33.80225979044277
],
[
-118.10510575099113,
33.80308401659034
],
[
-118.10571771281455,
33.803945537755396
],
[
-118.10625702997753,
33.804840249440396
],
[
-118.10672113066771,
33.8057638888917
],
[
-118.10710780121039,
33.80671205539493
],
[
-118.10741519665618,
33.807680231230606
],
[
-118.1076418496166,
33.80866380318909
],
[
-118.10778667730459,
33.80965808454346
],
[
-118.10784898674548,
33.810658337375564
],
[
-118.10782847813273,
33.811659795148714
],
[
-118.1077252463114,
33.81265768542024
],
[
-118.10753978038112,
33.813647252585014
],
[
-118.10727296141947,
33.814623780541886
],
[
-118.10692605833573,
33.815582615175046
],
[
-118.1065007218736,
33.81651918654272
],
[
-118.1059989767904,
33.81742903066761
],
[
-118.10542321224958,
33.818307810824784
],
[
-118.104776170471,
33.81915133822522
],
[
-118.10406093369282,
33.81995559199654
],
[
-118.10328090950635,
33.82071673836468
],
[
-118.10243981463324,
33.82143114894539
],
[
-118.10154165722223,
33.822095418057444
],
[
-118.10059071774957,
33.822706378974985
],
[
-118.0995915286139,
33.82326111904088
],
[
-118.09854885252338,
33.82375699356871
],
[
-118.09746765977786,
33.82419163846691
],
[
-118.09635310455515,
33.82456298152423
],
[
-118.09521050031465,
33.824869252302456
],
[
-118.09404529443644,
33.825108990588944
],
[
-118.09286304221709,
33.82528105336855
],
[
-118.09166938034761,
33.825384620280985
],
[
-118.09047000000001,
33.82541919753795
]
]
]
}
}
]
}
]
}
}
],
"messages": []
}
Find the array of results
in the response. Each result will contain a FeatureSet
with some key properties:
fields
: An array of information about each returned variable, including its name
, human readable alias
, unit
and type
.geometryType
: The type of geometry in the geometry
key. Usually this will be esriGeometryPolygon
.features
: The results of the query. Each feature will have attributes
representing the variables that we queried and a geometry
representing the shape of the area for those geometries.You have successfully retrieved demographic data for the area around the San Gabriel River Trail.
The Geoenrichment API can also accept polygons, street addresses and named areas such as states, counties and zip codes and can buffer input geometries with drive-time areas. Try using these options to make requests for different areas.
Try using the data collections API or use the demographic data browser to explore the available data. Hover over the tooltips to see the variable names.