# Total number of logins

**URL:** <https://community.auth0.com/t/total-number-of-logins/184234>\
**Category:** Get Help\
**Tags:** users, management-api\
**Created:** [March 20, 2025, 9:36pm UTC](https://community.auth0.com/t/total-number-of-logins/184234 "2025-03-20T21:36:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![criz.c](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/criz.c/32/73235_2.png) [@criz.c](https://community.auth0.com/u/criz.c)\
**Post date:** [March 20, 2025, 9:36pm UTC](https://community.auth0.com/t/total-number-of-logins/184234/1 "2025-03-20T21:36:51Z")

</div>

Hi,

I have a few questions.

Is there any way to determine following numbers.

1. Total number of logins
2. Total number of successful logins.  
Note: The requirement is not total number of users logged in, I know I get that info from Activity tab in Auth0 Dashboard.
3. Total number of users not enrolled for MFA and the list.  
For getting this info I called API - [https://domain-name/api/v2/users?take=100](https://domain-name/api/v2/users?take=100). then I filter users based on field  
“multifactor”: [  
“guardian”  
]  
But I have more than 2k users, since the maximum users I can retrieve is 100 I have to call the API more than 20 times and do the filter. I am looking if there is a single API to get the total number of users who are not enrolled for MFA

Thank you.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [March 20, 2025, 11:12pm UTC](https://community.auth0.com/t/total-number-of-logins/184234/3 "2025-03-20T23:12:18Z")

</div>

Hi @criz.c,

Welcome back to the Auth0 Community !

The number of successful logins is shown through the logins\_count parameter when calling the GET /api/v2/users endpoint. This documentation on how to [Search Users with Query Syntax](https://auth0.com/docs/manage-users/user-search/user-search-query-syntax) should also be handy.

According to our [Retrieve Users with the Get Users Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint)

> The endpoint returns a maximum of 50 users, even if more users match your query.
> 
> If you need to return more than 50 users, use the `page` parameter to show more pages of results. Each page contains 50 users. For example, you can specify `&page=2` to show results 51-100, specify `&page=3` to show results 101-150, and so on. However, this endpoint never returns a total of more than 1000 users with the same search criteria, even with paging.

However you can [Export all Users](https://auth0.com/docs/api/management/v2/jobs/post-users-exports) using the POST /api/v2/jobs/users-exports endpoint and query the “multifactor”: [“guardian”] as you have specified above, then subtract them from the total. You can also check this [KB article](https://community.auth0.com/t/retrieving-a-list-of-users-with-a-specific-mfa-enrollment/118993).

I hope this helps.  
Thanks,  
Remus

---

<div class="post-metadata">

**Author:** ![criz.c](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/criz.c/32/73235_2.png) [@criz.c](https://community.auth0.com/u/criz.c)\
**Post date:** [March 21, 2025, 2:40pm UTC](https://community.auth0.com/t/total-number-of-logins/184234/4 "2025-03-21T14:40:05Z")

</div>

Thanks Remus, for the response.

I should have been more clear about my question. I am looking for total number logins for all users for a particular day or the day that had greatest logins in a day of a particular month.

I am not looking for total number of logins for a particular user.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [March 21, 2025, 5:41pm UTC](https://community.auth0.com/t/total-number-of-logins/184234/5 "2025-03-21T17:41:12Z")

</div>

Hi @criz.c,

In this case i would recommend using the `GET /api/v2/stats/daily` endpoint from the Management API, documented under [Get daily stats](https://auth0.com/docs/api/management/v2/stats/get-daily), which can retrieve the number of logins that occurred each day within a specified date range. This way you can use the query parameters offered by the endpoint and check for a specific day, or a month.

This should better fit your use case and if you have additional questions please let me know.  
Best regards,  
Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 4, 2025, 5:42pm UTC](https://community.auth0.com/t/total-number-of-logins/184234/6 "2025-04-04T17:42:04Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
