Service statistics

Returns connection and usage statistics. Session and usage counts persist across deploys via Redis.

get/api/stats

Request

  • Base URL: https://agentdeals.dev
  • URL: https://agentdeals.dev/api/stats
  • Auth: none required

Response

Service statistics

activeSessionsinteger

Currently connected MCP sessions

totalSessionsAllTimeinteger

Cumulative sessions across all deploys (persisted in Redis)

totalApiHitsAllTimeinteger

Cumulative REST API hits across all deploys (persisted in Redis)

totalToolCallsAllTimeinteger

Cumulative MCP tool calls across all deploys (persisted in Redis)

sessionsTodayinteger

Sessions opened since midnight UTC. Persisted per day, so a deploy does not reset it. Counts only from the date the daily series began — see sessions.recording_since on /api/traffic.

serverStartedstring date-time

ISO timestamp of current server start

clientsobject

Cumulative session counts per MCP client name (e.g. claude-desktop, cursor)

toolCallsByClientobject

Cumulative MCP tool-call counts per MCP client name. Missing/empty client IDs bucket to 'unknown'. Values sum to totalToolCallsAllTime (invariant).

toolCallsByNameobject

Cumulative MCP tool-call counts per tool name. The tools we offer are search_deals, plan_stack, compare_vendors, track_changes, get_referral_code; counts against names no longer offered are historical and stay in the total. Pre-feature historical calls bucket to 'unknown'. Values sum to totalToolCallsAllTime (invariant).

Changes

No recorded changes to this operation across all 1 revision of this API.