YouTube Comments API iconStatus:Waiting For Requests

YouTube Comments API

Extract YouTube video and Shorts comments with author details, engagement metrics, and pagination.

No Setup Required
GET REST API
Structured JSON Response
Instant Access

How to Call the YouTube Comments API

Simple REST API endpoint. Just make a GET request with your API key and get structured data back.

Method:GET
Endpoint:https://api.parseium.com/v1/youtube-comments
Cost:1 credit per call

Code Examples

cURL

curl -X GET 'https://api.parseium.com/v1/youtube-comments?video_id=dQw4w9WgXcQ&api_key=YOUR_API_KEY'

TypeScript

const response = await fetch(`https://api.parseium.com/v1/youtube-comments?video_id=dQw4w9WgXcQ&api_key=${process.env.PARSEIUM_API_KEY}`, {
  method: 'GET',
});

const data = await response.json();
console.log(data);

Python

import requests
import os

api_key = os.environ['PARSEIUM_API_KEY']
response = requests.get(
    f'https://api.parseium.com/v1/youtube-comments?video_id=dQw4w9WgXcQ&api_key={api_key}'
)

data = response.json()
print(data)

Query Parameters

Pass parameters in the URL query string:

video_id=dQw4w9WgXcQ

Response Schema

The API returns structured JSON data with the following schema:

{
  "video_id": {
    "type": "string"
  },
  "comments": [
    {
      "id": {
        "type": "string"
      },
      "content": {
        "type": "string"
      },
      "published_time_text": {
        "type": "string"
      },
      "published_time": {
        "type": "string"
      },
      "reply_level": {
        "type": "number"
      },
      "author": {
        "name": {
          "type": "string"
        },
        "channel_id": {
          "type": "string"
        },
        "is_verified": {
          "type": "boolean"
        },
        "is_creator": {
          "type": "boolean"
        },
        "avatar_url": {
          "type": "string"
        },
        "channel_url": {
          "type": "string"
        }
      },
      "engagement": {
        "likes": {
          "type": "number"
        },
        "replies": {
          "type": "number"
        }
      }
    }
  ],
  "continuation_token": {
    "type": "string"
  },
  "has_more": {
    "type": "boolean"
  }
}

Need more details? Check out our full API documentation for authentication, error handling, rate limits, and advanced options.

Use Cases for YouTube Comments

See how developers use this API in production applications.

Sentiment Analysis

Analyze audience sentiment by extracting and processing comments to understand viewer reactions and feedback.

Engagement Tracking

Monitor comment engagement metrics, identify top contributors, and track discussion trends over time.

Content Research

Extract viewer questions and feedback to inform future content creation and audience interests.

Simple, Transparent Pricing

Every API call to YouTube Comments costs 1 credit

Choose a plan based on your monthly usage. All plans include access to all APIs.

Starter
$49/mo

~150,000 API calls/mo

  • 150,000 credits/month
  • Email support
  • 1,000 requests/day
  • Priority processing
Get Started
Most Popular
Pro
$99/mo

~700,000 API calls/mo

  • 700,000 credits/month
  • Priority support
  • 10,000 requests/day
  • Advanced features
Get Started
Business
$299/mo

~3,000,000 API calls/mo

  • 3M credits/month
  • Dedicated support
  • Unlimited requests
  • Custom integrations
Get Started

Need more? Check out our for enterprise options and custom plans.

Frequently Asked Questions

Common questions about the YouTube Comments API.

What comment data is included?

Each comment includes full text content, timestamps (relative and ISO 8601), author details (name, channel ID, verification status, creator badge), engagement metrics (likes, reply counts), and reply level for nested comments.

How does pagination work?

First request uses only `video_id`. Response includes `continuation_token` if more comments exist. Pass this token in subsequent requests as `continuation` parameter to fetch additional pages.

How are replies handled?

The `reply_level` field indicates comment depth: 0 for top-level comments, 1+ for nested replies. All comments are returned in a flat array for easy processing.

Does this work for YouTube Shorts?

Yes, the API works for both regular YouTube videos and Shorts. Simply use the video ID from any Short URL (e.g., youtube.com/shorts/VIDEO_ID) as the `video_id` parameter.

Free your Data

Stop wasting hours writing parsing scripts for each site. Stop overpaying for tokens with LLM extraction.

  • easy integration
  • works with any scraping stack
  • fast and accurate
  • scalable performance
  • thousands of pages per day