<@U04UQ68083H> how can I get OAuth Client stats li...
# ory-copilot
t
@chilly-king-10285 how can I get OAuth Client stats like: login, signups, etc?
b
A message from kapa.ai
I'm sorry, but the knowledge sources do not provide a direct way to retrieve OAuth client statistics such as logins, signups, or similar activity metrics via the Ory APIs. The available endpoints for listing and retrieving OAuth2 clients (e.g.,
listOAuth2Clients
,
getOAuth2Client
) only return client configuration details and do not include usage or activity statistics like login or signup counts [ory list oauth2-clients](https://www.ory.sh/docs/cli/ory-list-oauth2-clients). However, there is a related feature request and discussion about observability and activity logging in Ory Network, which mentions the need for structured activity logs for signups, logins, and other account activities, with the intention to make these accessible to administrators. This includes the idea of aggregate activity metrics in the Ory Console, but as of now, this appears to be a planned or requested feature rather than something currently available via API or UI [Github Issue: Observability of self-service account activity and authentication](https://github.com/ory/network/issues/118). If you need real-time event streams, Ory Actions provides live event streams for OAuth2-related events (such as logins, consent, token issuance, etc.), which you could potentially consume and aggregate externally to build your own statistics dashboard [Live event streams: Ory OAuth2](https://www.ory.sh/docs/actions/live-events#ory-oauth2). Summary: - There is no built-in API to get OAuth client stats like logins or signups. - Activity logging and aggregate stats are discussed as a feature request, not yet generally available. - You can use Ory Actions event streams to capture relevant events and build your own stats externally. If you need more detailed guidance on setting up event consumption or have a specific use case, please let me know!