What are place details?
Place
You can use place details to:
- Return key attributes
Attributes are fields and values for a single feature or non-spatial record. They are typically stored in a database or service such as a feature service. for a placeA place, also known as a point of interest (POI), is a location that represents a business, administrative entity, or geographic feature around the world. A place can also have attributes associated with it, such as a name, address, category, and ID. . - 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/places/{place request with a valid place IDplace, 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
requestedparameter 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=pjsonRequired parameters
| Name | Description | Examples |
|---|---|---|
place | The id of the place for which you want to fetch additional details. | place |
requested | The array of fields that define the attributes to return for a place. | requested |
token | An API key or OAuth 2.0 access token | token= |
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
requestedparameter, specify the fields from theFields Placegroup. - 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
requestedparameter, specify the fields from theFields locationprice 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
requestedparameter, specify the fields from theFields Addressplace 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
requestedparameter, specify the fields from theFields detailsprice 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.