What are place details?
Place details are the attributes associated with a place such as name, street address, phone number, website, and social media sites. The number of attributes available for a place can vary.
You can use place details to:
- Return key attributes for a place.
- Find the address and locale information.
- Get telephone, email, and website information.
- Gain insight and compare places.
How to get place details
To get place attributes you use the places service /places/{place
request with a valid place ID. To get a place ID, you can perform a nearby search or bounding box search. Once you have a place
, you need to define a list of the fields you would like with the requested
parameter. For example, requested
or requested
.
The general steps are:
- Get the places service URL.
- Set the
requested
parameter with the fields you are interested in.Fields - Execute the request.
The fields you can use are listed below. They are organized into the following price groups:
Price group | Field names |
---|---|
Place | name , categories |
Location | location |
Address | address , address , address , address , address , address , address , address , address |
Details | contact , contact , contact , contact , social , social , social |
URL request
https://places-api.arcgis.com/arcgis/rest/services/places-service/v1/places/<PLACE_ID>?token=<ACCESS_TOKEN>&f=pjson
Parameters
Name | In | Type | Required | Default value | Description |
---|---|---|---|---|---|
placeId | path | PlaceId |
| The Id of the place for which you want to fetch additional details. | |
requestedFields | query | array[string] |
| The array of fields that define the attributes to return for a place. | |
icon | query | string | none | Determines whether icons are returned and the type of icon to use with a place or category. | |
f | query | string | json | The requested response format - either | |
token | query | string |
| The authentication token, created from an ArcGIS Location Platform account, with the |
Code examples
Get place attributes
This example uses /places/{place
to get the place attributes for bd5f5dfa788b7c5f59f3bfe2cc3d9c60
. The place attributes are the primary attributes for every place and include name
and categories
. The values are always valid. The attributes are displayed below.
Steps
- Reference the places service.
- Set the place ID.
- In the
requested
parameter, specify the fields from theFields Place
group.ss - Set the token parameter to your access token.
APIs
places.fetchPlace({
placeId: "bd5f5dfa788b7c5f59f3bfe2cc3d9c60",
requestedFields: ["name", "categories"]
})
.then(results => {
console.log(JSON.stringify(results, null, 2))
})
REST API
curl 'https://places-api.arcgis.com/arcgis/rest/services/places-service/v1/places/bd5f5dfa788b7c5f59f3bfe2cc3d9c60' \
-d 'requestedFields=name,categories' \
-d 'f=pjson' \
-d 'token=<ACCESS_TOKEN>' \
Get location attributes
This example uses /places/{place
to get the location attributes for cff0074688d7fc1c0a1cd65d83f29f38
.
Steps
- Reference the places service.
- Set the place ID.
- In the
requested
parameter, specify the fields from theFields location
price group. - Set the token parameter to your access token.
APIs
places.fetchPlace({
placeId: "cff0074688d7fc1c0a1cd65d83f29f38",
requestedFields: [
"location"
]
})
.then(results => {
console.log(JSON.stringify(results, null, 2))
})
REST API
curl 'https://places-api.arcgis.com/arcgis/rest/services/places-service/v1/places/cff0074688d7fc1c0a1cd65d83f29f38' \
-d 'requestedFields=location' \
-d 'f=pjson' \
-d 'token=<ACCESS_TOKEN>' \
Get address attributes
This example uses /places/{place
to get the address attributes for bd5f5dfa788b7c5f59f3bfe2cc3d9c60
. The address attributes describe the location and delivery information associated with a place. All of the attributes with valid values are displayed below. Attributes such as address
, address
, and address
do not apply and are null
.
Steps
- Reference the places service.
- Set the place ID.
- In the
requested
parameter, specify the fields from theFields Address
place group. - Set the token parameter to your access token.
APIs
places.fetchPlace({
placeId: "bd5f5dfa788b7c5f59f3bfe2cc3d9c60",
requestedFields: [
"address:adminRegion",
"address:country",
"address:extended",
"address:locality",
"address:poBox",
"address:postcode",
"address:postTown",
"address:region",
"address:streetAddress"
]
})
.then(results => {
console.log(JSON.stringify(results, null, 2))
})
REST API
curl 'https://places-api.arcgis.com/arcgis/rest/services/places-service/v1/places/bd5f5dfa788b7c5f59f3bfe2cc3d9c60' \
-d 'requestedFields=address:adminRegion,address:country,address:extended, address:locality, address:poBox, address:postcode, address:postTown, address:region, address:streetAddress' \
-d 'f=pjson' \
-d 'token=<ACCESS_TOKEN>' \
Get details attributes
This example uses /places/{place
to get the details attributes for bd5f5dfa788b7c5f59f3bfe2cc3d9c60
. The details attributes include contact and social media information. All of the valid attributes with valid values are displayed below.
Steps
- Reference the places service.
- Set the place ID.
- In the
requested
parameter, specify the fields from theFields details
price group. - Set the token parameter to your access token.
APIs
places.fetchPlace({
placeId: "bd5f5dfa788b7c5f59f3bfe2cc3d9c60",
requestedFields: [
"contactInfo:telephone",
"contactInfo:website",
"contactInfo:fax",
"contactInfo:email",
"socialMedia:facebookId",
"socialMedia:instagram",
"socialMedia:twitter"
]
})
.then(results => {
console.log(JSON.stringify(results, null, 2))
})
REST API
curl 'https://places-api.arcgis.com/arcgis/rest/services/places-service/v1/places/bd5f5dfa788b7c5f59f3bfe2cc3d9c60' \
-d 'requestedFields=contactInfo:telephone,contactInfo:website,contactInfo:fax,contactInfo:email,socialMedia:facebookId,socialMedia:instagram,socialMedia:twitter' \
-d 'f=pjson' \
-d 'token=<ACCESS_TOKEN>' \
Tutorials

Find nearby places and details
Find points of interest near a location and get detailed information about them.

Find places in a bounding box
Perform a text-based search to find places within a bounding box.