Get a single YouTube video.
Endpoint
/v1/youtube/videos
Query
Link to the YouTube video. Shorts URLs are also supported.
Optional preferred language for returned text when the source supports localization.
const response = await fetch( "https://api.socialfetch.dev/v1/youtube/videos?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ", { headers: { "x-api-key": "YOUR_API_KEY", } } ); const data = await response.json(); console.log(data);