-
Notifications
You must be signed in to change notification settings - Fork 12
/
invidious_video_api.yaml
182 lines (166 loc) · 3.67 KB
/
invidious_video_api.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
trending:
title: Trending
url: /api/v1/trending
cacheSeconds: 21600 # 6 hours
queryParams:
type:
type:
- Music
- Gaming
- Movies
region:
type: "#ISO3166"
default: GetUserCountryCode
popular:
title: Popular
url: /api/v1/popular
search:
title: Search
url: /api/v1/search
paginationType: Pages
queryParams:
q:
type: string
sort:
type:
- relevance
- rating
- date
- views
date:
type:
- hour
- today
- week
- month
- year
duration:
type:
- short
- long
type:
type:
- video
- playlist
- channel
- all
arrayType: CommaSeparated
features:
type:
- hd
- subtitles
- creative_commons
- 3d
- live
- purchased
- 4k
- 360
- location
- hdr
arrayType: CommaSeparated
region:
type: "#ISO3166"
default: GetUserCountryCode
cacheSeconds: 300 # 5 minutes
# Auth endpoints
auth_feed:
title: Subscriptions
url: /api/v1/auth/feed
authenticated: true
queryParams:
max_results:
type: number
default: 20
paginationType: Pages
responseHandler: AuthFeedHandler
auth_playlists:
title: Playlists
url: /api/v1/auth/playlists
authenticated: true
paginationType: Continuation
playlist:
title: Playlist
url: /api/v1/playlists/{plid}
responseHandler: PlaylistHandler
paginationType: Pages
# video_info, playlist_info and channel_info are used by the
# Bookmarks, so they are cached for longer
video_info:
title: Video
url: /api/v1/videos/{id}
responseHandler: VideoInfoHandler
cacheSeconds: 259200 # 3 days
playlist_info:
title: Playlist
url: /api/v1/playlists/{plid}
responseHandler: PlaylistInfoHandler
cacheSeconds: 259200 # 3 days
channel_info:
title: Channel
url: /api/v1/channels/{ucid}
responseHandler: ChannelInfoHandler
cacheSeconds: 259200 # 3 days
tryCount: 3
# Channel endpoints
channel_videos:
title: Channel videos
url: /api/v1/channels/{ucid}/videos
responseHandler: ChannelVideosHandler
paginationType: Continuation
tryCount: 3
queryParams:
sort_by:
# defaults to newest
type:
- newest
- oldest
- popular
channel_playlists:
title: Channel playlists
url: /api/v1/channels/{ucid}/playlists
responseHandler: ChannelPlaylistsHandler
paginationType: Continuation
tryCount: 3
queryParams:
sort_by:
default: newest
type:
- newest
- last
channel_shorts:
title: Channel shorts
url: /api/v1/channels/{ucid}/shorts
responseHandler: ChannelVideosHandler
paginationType: Continuation
tryCount: 3
channel_streams:
title: Channel streams
url: /api/v1/channels/{ucid}/streams
responseHandler: ChannelVideosHandler
paginationType: Continuation
tryCount: 3
channel_podcasts:
title: Channel podcasts
url: /api/v1/channels/{ucid}/podcasts
responseHandler: ChannelPlaylistsHandler
paginationType: Continuation
tryCount: 3
channel_releases:
title: Channel releases
url: /api/v1/channels/{ucid}/releases
responseHandler: ChannelPlaylistsHandler
paginationType: Continuation
tryCount: 3
# This is implemented only by Playlet backend.
# Created because auto-generated channels don't have tabs except for "featured"
channel_featured:
title: Channel Home
url: /api/v1/channels/{ucid}/featured
responseHandler: ChannelVideosHandler
paginationType: Continuation
watch_history:
title: Watch history
url: /api/v1/auth/history
authenticated: true
paginationType: Pages
responseHandler: WatchHistoryHandler