From 4df2876fea63ca1dfb87aaaa4171daf2cb6df06a Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 20 Apr 2019 14:12:34 -0500 Subject: [PATCH] Updated API (markdown) --- API.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/API.md b/API.md index 99b1e58..102b7d2 100644 --- a/API.md +++ b/API.md @@ -1,3 +1,12 @@ +### Pretty + +All endpoints that return a JSON body support `&pretty=1` for printing the response as formatted JSON. + +### Fields + +All endpoints that return a JSON body support the [fields API](https://developers.google.com/youtube/v3/getting-started#fields) for specifying desired fields to reduce bandwidth consumption. This can be used by adding `&fields=FIELDS` with the desired fields, for example [`/api/v1/videos/aqz-KE-bpKQ?fields=videoId,title,description`](https://invidio.us/api/v1/videos/aqz-KE-bpKQ?fields=videoId,title,description&pretty=1). + + ##### GET `/api/v1/stats` > Schema: