Add YouTube sync API

This commit is contained in:
video-prize-ranch
2022-04-10 14:58:24 -04:00
parent c6f727c3d0
commit 654ea49110
+24
View File
@@ -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"
}
}
}
```