Get comments on a YouTube video.
Endpoint
/v1/youtube/videos/comments
Query
Link to the YouTube video whose comments should be listed.
Opaque cursor from a previous response to fetch the next page.
Comment sort order. `top` returns highest-ranked comments; `newest` returns the most recent comments.
const response = await fetch( "https://api.socialfetch.dev/v1/youtube/videos/comments?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ", { headers: { "x-api-key": "YOUR_API_KEY" } } ); const data = await response.json(); console.log(data);