mirror of
https://gitea.invidious.io/iv-org/documentation.git
synced 2024-08-15 00:53:34 +00:00
Updated API (markdown)
This commit is contained in:
parent
b3d322e597
commit
fb4d17bbda
1 changed files with 103 additions and 7 deletions
110
API.md
110
API.md
|
@ -1,7 +1,103 @@
|
||||||
List of endpoints:
|
GET `/api/v1/videos/:id`
|
||||||
- `/api/v1/videos`
|
> Given :id, return `video`
|
||||||
- `/api/v1/trending`
|
> Schema:
|
||||||
- `/api/v1/top`
|
```
|
||||||
- `/api/v1/channels/:ucid`
|
{
|
||||||
- `/api/v1/channels/:ucid/videos`
|
"title": String,
|
||||||
- `/api/v1/search`
|
"videoId": String,
|
||||||
|
"videoThumbnails": [
|
||||||
|
{
|
||||||
|
"quality": String,
|
||||||
|
"url": String,
|
||||||
|
"width": Int32,
|
||||||
|
"height": Int32
|
||||||
|
},
|
||||||
|
],
|
||||||
|
|
||||||
|
"description": String,
|
||||||
|
"descriptionHtml": String,
|
||||||
|
"published": Int64
|
||||||
|
|
||||||
|
"keywords": Array(String),
|
||||||
|
"viewCount": Int64,
|
||||||
|
"likeCount": Int32,
|
||||||
|
"dislikeCount": Int32,
|
||||||
|
|
||||||
|
"isFamilyFriendly": Bool,
|
||||||
|
"allowedRegions": Array(String),
|
||||||
|
"genre": String,
|
||||||
|
|
||||||
|
"author": String,
|
||||||
|
"authorId": String,
|
||||||
|
"authorUrl": String,
|
||||||
|
|
||||||
|
"lengthSeconds": Int32,
|
||||||
|
"allowRatings": Bool,
|
||||||
|
"rating": Float32,
|
||||||
|
"isListed": Bool,
|
||||||
|
|
||||||
|
"adaptiveFormats": [
|
||||||
|
{
|
||||||
|
"index": String,
|
||||||
|
"bitrate": String,
|
||||||
|
"init": String,
|
||||||
|
"url": String,
|
||||||
|
"itag": String,
|
||||||
|
"type": String,
|
||||||
|
"clen": String,
|
||||||
|
"lmt": String,
|
||||||
|
"projectionType": Int32,
|
||||||
|
"container": String,
|
||||||
|
"encoding": String,
|
||||||
|
"qualityLabel": String?,
|
||||||
|
"resolution": String?
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"formatStreams": [
|
||||||
|
{
|
||||||
|
"url": String,
|
||||||
|
"itag": String,
|
||||||
|
"type": String,
|
||||||
|
"quality": String,
|
||||||
|
"container": String,
|
||||||
|
"encoding": String,
|
||||||
|
"qualityLabel": String,
|
||||||
|
"resolution": String,
|
||||||
|
"size": String
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"captions": [
|
||||||
|
{
|
||||||
|
"label": String,
|
||||||
|
"languageCode": String
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"recommendedVideos": [
|
||||||
|
{
|
||||||
|
"videoId": String,
|
||||||
|
"title": String,
|
||||||
|
"videoThumbnails": [
|
||||||
|
{
|
||||||
|
"quality": String,
|
||||||
|
"url": String,
|
||||||
|
"width": Int32,
|
||||||
|
"height": Int32
|
||||||
|
},
|
||||||
|
],
|
||||||
|
"author": String,
|
||||||
|
"lengthSeconds": Int32,
|
||||||
|
"viewCountText" String
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
GET `/api/v1/trending`
|
||||||
|
|
||||||
|
GET `/api/v1/top`
|
||||||
|
|
||||||
|
GET `/api/v1/channels/:ucid`
|
||||||
|
|
||||||
|
GET `/api/v1/channels/:ucid/videos`
|
||||||
|
|
||||||
|
GET `/api/v1/search`
|
||||||
|
|
Loading…
Reference in a new issue