YouTube
YouTube Video Comments
Get comments (comment threads) from a YouTube video. Returns each comment's text, author, author channel, like count, reply count, publication date, last-updated date, a direct link, and preview replies. Supports sorting by most recent or relevance, and fetching up to 20 pages in a single call.
Price: $0.005 per page. Free tier: 50 requests/month.
get/v1/youtube/comments
Request
- Base URL: https://apidirect.io
- URL: https://apidirect.io/v1/youtube/comments
- Auth: API key in header X-API-Key
Query parameters
urlstring required
YouTube video URL (watch?v=, youtu.be/, /shorts/, /embed/, /live/ or /v/ forms) or 11-character video ID
pagesinteger
Number of pages to fetch and merge (1-20). Each page returns up to ~100 comments. Billed per page.
sort_by'most_recent' | 'relevance'
Sort order
Response
Successful response
Changes
No recorded changes to this operation across all 1 revision of this API.