From 654ea4911002d35f3ecbe93cb2bf980856ee4feb Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Sun, 10 Apr 2022 14:58:24 -0400 Subject: [PATCH] Add YouTube sync API --- Odysee-API/api.odysee.com.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Odysee-API/api.odysee.com.md b/Odysee-API/api.odysee.com.md index 8e9e213..49fc564 100644 --- a/Odysee-API/api.odysee.com.md +++ b/Odysee-API/api.odysee.com.md @@ -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" + } + } +} ``` \ No newline at end of file