Stats API

📋 Table of Contents

Overview

The Stats API provides comprehensive statistics and analytics for the OASIS ecosystem. It tracks system performance, user activity, network health, and provides real-time insights into the platform's usage and performance.

System Statistics

Get System Stats

GET /api/stats/system
Authorization: Bearer YOUR_TOKEN

Response:

Get System Health

Response:

Get System Performance

Query Parameters:

  • timeframe (string, optional): Timeframe (hour, day, week, month)

  • includeDetails (boolean, optional): Include detailed performance metrics

Response:

User Statistics

Get User Stats

Query Parameters:

  • timeframe (string, optional): Timeframe (hour, day, week, month)

  • includeDetails (boolean, optional): Include detailed user statistics

Response:

Get User Activity

Query Parameters:

  • timeframe (string, optional): Timeframe (hour, day, week, month)

  • userId (string, optional): Filter by specific user ID

Response:

Get User Retention

Query Parameters:

  • cohort (string, optional): Cohort period (day, week, month)

  • periods (int, optional): Number of periods to analyze (default: 12)

Response:

Network Statistics

Get Network Stats

Response:

Get Network Health

Response:

Get Network Performance

Query Parameters:

  • timeframe (string, optional): Timeframe (hour, day, week, month)

  • includeDetails (boolean, optional): Include detailed performance metrics

Response:

Performance Statistics

Get Performance Stats

Query Parameters:

  • timeframe (string, optional): Timeframe (hour, day, week, month)

  • includeDetails (boolean, optional): Include detailed performance metrics

Response:

Query Parameters:

  • timeframe (string, optional): Timeframe (hour, day, week, month)

  • metric (string, optional): Specific metric to analyze

Response:

Error Responses

Stats Not Available

Invalid Timeframe

Data Not Found

Service Unavailable


← Previous: Search API | Next: Settings API

Last updated