> For the complete documentation index, see [llms.txt](https://docs.manifold.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.manifold.xyz/client-sdk/sdk/product/common/getinventory.md).

# getInventory

**getInventory()** → [ProductInventory](/client-sdk/reference/productinventory.md)

Retrieves the product’s total supply and total number of purchases.

#### Returns: [ProductInventory](/client-sdk/reference/productinventory.md)

| Field          | Type   | Required | Description                                                        |
| -------------- | ------ | -------- | ------------------------------------------------------------------ |
| totalSupply    | number | ✅        | Total product supply.  A value of `-1` indicates unlimited supply. |
| totalPurchased | number | ✅        | Total product purchased                                            |
