YouTube Media Downloader

FREEMIUM
Door DataFanatic | Bijgewerkt 15 days ago | Data
Populariteit

9.9 / 10

Latency

1,467ms

Serviceniveau

100%

Health Check

100%

Terug naar alle discussies

Video URL

Rapid account: Lokeshgpt 82
lokeshgpt82
15 days 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 15 days 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.

Doe mee aan de discussie - voeg hieronder een opmerking toe

Log in / Schrij u in om nieuwe opmerkingen te plaatsen