API Direct
Endpoints
YouTube Video Comments

YouTube Video Comments

GET /v1/youtube/comments

Get comments from any YouTube video by URL. Returns each comment's text, author, like count, reply count, publication date, a direct link, and up to 5 preview replies. Supports sorting by most recent or relevance, and fetching multiple pages in a single API call.

Cost
$0.005 per page
Free tier
50 requests/month

Parameters

url *
YouTube video URL or 11-character video ID
pages
Number of pages to fetch, 1-10 (default: 1). Each page returns up to ~100 comments.
sort_by
Sort order: most_recent, relevance (default: relevance)

Example Request

curl "https://apidirect.io/v1/youtube/comments?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ&pages=1&sort_by=relevance" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "comments": [
    {
      "comment_id": "Ugzge340dBgB75hWBm54AaABAg",
      "text": "can confirm: he never gave us up",
      "author": "@YouTube",
      "author_channel_id": "UCBR8-60-B28hp2BmDPdntcQ",
      "author_channel_url": "http://www.youtube.com/@YouTube",
      "author_thumbnail": "https://yt3.ggpht.com/.../photo.jpg",
      "likes": 261929,
      "reply_count": 1000,
      "date": "2025-04-22 19:05:08",
      "updated_date": "2025-04-22 19:05:08",
      "url": "https://youtube.com/watch?v=dQw4w9WgXcQ&lc=Ugzge340dBgB75hWBm54AaABAg",
      "video_id": "dQw4w9WgXcQ",
      "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
      "source": "YouTube",
      "domain": "youtube.com",
      "replies": [
        {
          "comment_id": "Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHE9eIiztxR",
          "text": "YOUTUBE AND ONE LIKE WOOHAAAAH",
          "author": "@linganguliguliwatcha",
          "author_channel_id": "UCjFRISlX-LPxiqViJAE3h6Q",
          "author_channel_url": "http://www.youtube.com/@linganguliguliwatcha",
          "author_thumbnail": "https://yt3.ggpht.com/.../photo.jpg",
          "likes": 7026,
          "date": "2025-04-22 19:14:32",
          "url": "https://youtube.com/watch?v=dQw4w9WgXcQ&lc=Ugzge340dBgB75hWBm54AaABAg.AHE8_QAWJx9AHE9eIiztxR",
          "video_id": "dQw4w9WgXcQ"
        }
      ]
    }
  ],
  "pages": 1,
  "count": 100
}

Your Usage

Free tier this month
Loading...
Recent Activity