---
title: getItemPath
description: "Learn how to build custom functionality when working with the React Common by Kendo UI with the help of the getItemPath."
api_reference: true
type: inner_api
slug: api_common_getitempath
---
# getItemPath
Returns the data item path in the tree based on the level parameter.
#### Parameters
##### tree
any[]
The data tree.
##### level
number[]
The level of the target tree item.
##### subItemsField?
string
The field which points to the subitems collection of each data item.
#### Returns
any[]
- The path of the data item.