From a2164e352c80b1819e3f9949ba094f3a8ff6aaed Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 13 Nov 2018 20:36:57 -0600 Subject: [PATCH] Updated API (markdown) --- API.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/API.md b/API.md index 49b4e46..97fc83a 100644 --- a/API.md +++ b/API.md @@ -318,6 +318,12 @@ Captions can also be selected with an ISO `lang`, e.g. &lang=en, `tlang` will au } ``` +Parameters: + +``` +sort_by: "newest", "oldest", "popular" (default: newest) +``` + Note that a channel's username (if it doesn't include spaces) is also valid in place of `ucid`, e.g. `/api/v1/channels/BlenderFoundation`. ##### GET `/api/v1/channels/:ucid/videos`, `/api/v1/channels/videos/:ucid` @@ -358,6 +364,7 @@ Parameters: ``` page: Int32 +sort_by: "newest", "oldest", "popular" (default: newest) ``` ##### GET `/api/v1/channels/search/:ucid`