YouTube Media Downloader

フリーミアム
よって DataFanatic | 更新済み 2 days ago | Data
人気

9.9 / 10

レイテンシー

1,541ms

サービスレベル

100%

Health Check

100%

すべてのディスカッションに戻る

Video URL

Rapid account: Lokeshgpt 82
lokeshgpt82
a month ago

May I know if there is any way we can get the video url and embed url for a specific video based on ID. I checked the response and could not find any. can you let me know how to get the video.

Also it would be helpful to have comment count and like count in Get Video Details endpoint

Rapid account: Data Fanatic
DataFanatic Commented a month ago

Hello. Thank you for choosing us.

  1. For getting the video URLs and embed URLs:
    This can be done by constructing strings as shown below.

    Video URL:
    `https://youtu.be/${videoId}`
    or `https://www.youtube.com/watch?v=${videoId}`
    
    Embed URL:
    `https://www.youtube.com/embed/${videoId}`
    
    Embed Code:
    `<iframe width="${width}" height="${height}" src="${embedUrl}" title="${title}" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>`
    

    Thus, this feature can be easily implemented in your client codes; we won’t add it to the endpoint.

  2. For getting the comment count and like count in the “Get Video Details” endpoint:
    We’ve added likeCount and commentCountText to the response of the endpoint /video/details. We hope it helps.

ディスカッションに参加しましょう-以下にコメントを追加してください:

ログイン/サインアップして新しいコメントを投稿