OpenRouter has launched a new Analytics API that allows developers to monitor and query user and AI agent activity metrics over time.
OpenRouter has released a User Activity Analytics API endpoint, allowing developers to query usage data over the last 30 UTC days. The API provides detailed programmatic access to metrics such as request counts, token consumption (including prompt, completion, and reasoning tokens), and associated costs. Developers can filter activity by specific dates, API key hashes, or user IDs, facilitating granular tracking of human and AI agent usage within their organizations.
Offering programmatically queryable activity metrics is a critical addition for developers building AI agents and large-scale applications on OpenRouter.
* Developers can now construct custom internal dashboards to monitor token usage and costs directly without relying on manual CSV exports.
* Support for filtering by user ID and API key hash makes it much easier to audit multi-tenant applications and isolate heavy or anomalous usage patterns.
* The API returns data grouped by model and provider, ensuring transparency for multi-provider configurations and routing strategies.
DISCOVERED
2h ago
2026-06-11
PUBLISHED
2h ago
2026-06-11
RELEVANCE
AUTHOR
OpenRouter