A place category is a structure that represents a group of places that are related. Each category contains a categoryId, fullLabel, and parents (IDs). You use categories to help refine the results returned from nearby search and bounding box search.
There are four levels of place categories. The Level 1 category names and IDs include the following:
Arts and Entertainment:10000
Business and Professional Services:11000
Community and Government:12000
Dining and Drinking:13000
Events:14000
Health and Medicine:15000
Landmarks and Outdoors:16000
Retail:17000
Sports and Recreation:18000
Travel and Transportation:19000
How to find categories
To search for categories you use the places service /categories and /categories/{categoryId} requests. /categories returns all categories or filters categories that match a string, whereas /categories/{categoryId} returns the details for a specific category ID.
A text filter that will be used for searching categories.
The text must be at least three characters and will be applied as a
partial match. For example, using the filter "off" would return
categories using the word "Office" as well as those using the word
"Coffee".
The authentication token with the premium:user:placesprivilege, used to access the Places service.
The token parameter can be either an API Key or short-lived token. See
ArcGIS security
documentation
for more information on authenticating with a token or API key.
Alternatively, you can supply a token in the request header with one of
the following keys using the "Bearer" scheme:
Authorization: Bearer <YOUR_TOKEN>
X-Esri-Authorization: Bearer <YOUR_TOKEN>
Code examples
Get all categories
In this example, you use the getCategories operation to return all parent and child categories. You should use this endpoint to fetch the latest set of categories.
In this example, you search for a category using an ID. The categoryId is 13033, which is the ID for bubble tea shops. The parent categories are cafes, coffee, and tea houses. These fall within the broad category of Dining and Drinking.