From 1cd25e2f8eb37186d7f70686c3d15fbc1426e698 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 5 Mar 2019 20:19:02 -0600 Subject: [PATCH] Add '/api/v1/stats' --- API.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/API.md b/API.md index 90138c9..3f82c49 100644 --- a/API.md +++ b/API.md @@ -1,3 +1,30 @@ +##### GET `/api/v1/stats` + +> Schema: + +```javascript +{ + "version": String, + "software": { + "name": "invidious", + "version": String, + "branch": String + }, + "openRegistrations": Bool, + "usage": { + "users": { + "total": Int32, + "activeHalfyear": Int32, + "activeMonth": Int32 + } + }, + "metadata": { + "updatedAt": Int64, + "lastChannelRefreshedAt": Int64 + } +} +``` + ##### GET `/api/v1/videos/:id` > Schema: