From 4599cbee54595013bfd81878e23401e1cf370045 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 4 Sep 2023 17:47:24 +0700 Subject: [PATCH] add stats api docs --- mkdocs/docs/api/stats.md | 37 +++++++++++++++++++++++++++++++++++++ mkdocs/mkdocs.yml | 1 + 2 files changed, 38 insertions(+) create mode 100644 mkdocs/docs/api/stats.md diff --git a/mkdocs/docs/api/stats.md b/mkdocs/docs/api/stats.md new file mode 100644 index 0000000..9cc1f4a --- /dev/null +++ b/mkdocs/docs/api/stats.md @@ -0,0 +1,37 @@ +# Statistics API endpoints + +## Primary + +⚠️ **Experimental** + +**GET** `/api/stats/primary/` + +Get primary statistics for your videos, channels, playlists and download queue. + +## Watch Progress + +⚠️ **Experimental** + +**GET** `/api/stats/watch/` + +Get statistics over your watch progress. + +## Download History + +⚠️ **Experimental** + +**GET** `/api/stats/downloadhist/` + +Get statistics for last days download history. + +## Biggest Channels + +⚠️ **Experimental** + +**GET** `/api/stats/biggestchannels/` + +Get a list of biggest channels, specify *order* parameter. + +Parameter: + +- order: doc_count (default), duration, media_size diff --git a/mkdocs/mkdocs.yml b/mkdocs/mkdocs.yml index 7047860..95b594e 100644 --- a/mkdocs/mkdocs.yml +++ b/mkdocs/mkdocs.yml @@ -36,6 +36,7 @@ nav: - 'Download': 'api/download.md' - 'Snapshot': 'api/snapshot.md' - 'Task': 'api/task.md' + - 'Stats': 'api/stats.md' - 'Additional': 'api/additional.md' - Links: - 'Main site': https://www.tubearchivist.com