mirror of
https://codeberg.org/librarian/documentation
synced 2024-12-06 19:16:16 +01:00
Add YouTube sync API
This commit is contained in:
@@ -128,4 +128,28 @@ Get the sub count of a channel.
|
||||
"error": "authentication required",
|
||||
"data": null
|
||||
}
|
||||
```
|
||||
|
||||
## `GET` /yt/resolve
|
||||
Get LBRY claim or channel IDs from YouTube video/channel IDs.
|
||||
|
||||
### Query parameters
|
||||
* video_ids: YouTube video ID (multiple accepted, comma-seperated)
|
||||
* channel_ids: YouTube channel ID (multiple accepted, comma-seperated)
|
||||
|
||||
### `200` OK
|
||||
```json
|
||||
{
|
||||
"success": true,
|
||||
"error": null,
|
||||
"data": {
|
||||
"videos": {
|
||||
"5JvLV2-ngCI": "@AlphaNerd#8/how-ssh-works-2#6",
|
||||
"12eoipnmdq": "" # Invalid or non-synced videos will return null
|
||||
},
|
||||
"channels": {
|
||||
"UC5UAwBUum7CPN5buc-_N1Fw": "@TheLinuxExperiment#e5d96ea3720b01cca537c6d90f38e8c11ff06a0a"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user