<@U04UQ68083H> How can I tell the number of identi...
# ory-copilot
b
@chilly-king-10285 How can I tell the number of identities we have?
b
A message from kapa.ai
To determine the number of identities you have in Ory, you can use the List Identities API endpoint (
GET /admin/identities
). This endpoint returns a paginated list of identities. By retrieving all pages and counting the total number of identities returned, you can determine the total count. The API supports pagination parameters such as page size and page token to help you iterate through all identities if you have more than one page of results. There is no direct "count" endpoint, so you need to aggregate the results yourself as you page through them [Ory API Reference](https://raw.githubusercontent.com/ory/docs/master/docs/reference/api.json). Alternatively, if you are using the Ory CLI, you can use the following command to list identities:
Copy code
ory list identities --page-size 100
You would then count the number of identities returned, iterating through pages if necessary [ory list identities](https://www.ory.sh/docs/cli/ory-list-identities#ory-list-identities). In summary, you need to list all identities (using the API or CLI) and count them, as there is no dedicated endpoint that returns only the total count.