Skip to content

getCategory

Function
getCategory(requestOptionsIGetCategoryOptions): Promise<IGetCategoryResponse>

Returns details about a single category by Id.

Use dark colors for code blocksCopy
1 2 3 4 5 6 7 8 9 import { getCategories } from "@esri/arcgis-rest-places"; import { ApiKeyManager } from "@esri/arcgis-rest-request";  const response = getCategory({  categoryId: "10000",  authentication: ApiKeyManager.fromKey("YOUR_API_KEY") });  console.log(response);
Parameters
ParameterType
requestOptionsIGetCategoryOptions
Returns 
Promise<IGetCategoryResponse>

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.