From acc5fcaea13a14ad62f8ac42f3b2399b99167d67 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 7 Aug 2018 14:37:58 -0500 Subject: [PATCH] Updated API (markdown) --- API.md | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/API.md b/API.md index 501ea33..a5016d4 100644 --- a/API.md +++ b/API.md @@ -34,6 +34,7 @@ "allowRatings": Bool, "rating": Float32, "isListed": Bool, + "hlsUrl": String?, "adaptiveFormats": [ { @@ -122,11 +123,76 @@ ##### GET `/api/v1/top` > Schema: ``` +[ + { + "title": String, + "videoId": String, + "videoThumbnails": [ + { + "quality": String, + "url": String, + "width": Int32, + "height" Int32 + ], + + "lengthSeconds": Int32, + "viewCount": Int64, + + "author": String, + "authorUrl": String, + + "published": Int64, + "description": String, + "descriptionHtml": String + } +] ``` ##### GET `/api/v1/channels/:ucid` > Schema: ``` +{ + "author": String, + "authorId": String, + "authorUrl": String, + "authorBanners": [ + { + "url": String, + "width": Int32, + "height": Int32 + } + ], + "authorThumbnails": [ + { + "url": String, + "width": Int32, + "height": Int32 + } + ], + + "subCount": Int32, + "totalViews": Int64, + "joined": Int64, + "paid": Bool, + "isFamilyFriendly": Bool, + "description": String, + "allowedRegions": Array(String), + "latestVideos": [ + { + "title": String, + "videoId": String, + "published": Int64, + "videoThumbnails": [ + { + "quality": String, + "url": String, + "width": Int32, + "height": Int32 + } + ] + } + ] +} ``` ##### GET `/api/v1/channels/:ucid/videos`