YouTube Video Comments API: AI Large Language Models

Fetch YouTube video comments, author details, like counts, and reply counts with configurable comment depth.

📝

Overview

About this model

YouTube Video Comments extracts the top-level discussion thread from any public video, returning each comment's author name, author thumbnail, publication date, text, like count, and reply count. This surfaces real audience reaction — questions, complaints, praise, feature requests — without manually scrolling and copy-pasting from the watch page, and the reply count on each comment tells you which threads sparked the most discussion. Comment depth is configurable in increments of 20, so you can pull a quick sample or a deeper set for full sentiment analysis.

1Sentiment analysis: Feed comment text into an LLM to gauge audience reaction to a video or announcement.
2Customer feedback mining: Extract recurring questions and complaints from a product demo video's comments.
3Competitive monitoring: Read how audiences respond to a competitor's video launches.
4Community engagement reporting: Surface the most-liked and most-replied-to comments for a content report.
💰

Pricing & Value

Cost analysis

muapiappFrom $0.003333 per 20 comments

Live and Standard pricing are chunked by 20 comments; Standard normal/high starts at $0.001/$0.002 per chunk.

Fal.aiNot available

Not offered as a standalone API.

ReplicateNot available

Not offered as a standalone API.

** Competitor pricing is estimated based on similar model architectures and usage tiers.

⚙️

Technical Details

Configuration schema

Video Idstring

YouTube video ID or full YouTube URL (watch, embed, short link).

Default ValuedQw4w9WgXcQ
Depthinteger

Number of comments to retrieve in multiples of 20 (Live: 20 to 200; Standard: up to 700).

Default Value20
LocationEnum (213 options)

Country to target for the search.

Default ValueUnited States
LanguageEnum (129 options)

Language to search in.

Default ValueEnglish
Tagstring

Optional request tag for tracing.

Default Valuenull
Delivery MethodEnum (2 options)

Use Live for immediate results or Standard for queued tasks.

Default Valuelive
PriorityEnum (2 options)

Standard task priority.

Default Valuenormal
📖

Implementation Guide

Developer documentation

How to Use YouTube Video Comments API

  1. Provide video ID: Pass the YouTube video ID or URL in video_id.
  2. Set delivery and depth: Live requests support 20–200 comments; Standard requests support up to 700, in 20-result chunks.
  3. Retrieve comments: Returns structured comments with author details, publication date, text, like counts, and reply counts.
curl -X POST https://api.muapi.ai/api/v1/seo-youtube-video-comments \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video_id": "dQw4w9WgXcQ",
    "depth": 20
  }'

Common Questions

Frequently asked

How is comment extraction priced?

Live requests reserve from $0.003333 per chunk of 20 comments; Standard normal/high starts at $0.001/$0.002 per 20-comment chunk. The final charge reconciles the returned task cost.

Does it include comment replies?

It includes top-level comments and indicates the reply count for each comment; individual replies are not expanded in the response.

What is the maximum number of comments per request?

Live requests support up to 200 comments; Standard requests support up to 700, set via `depth` in increments of 20.

What author information is returned per comment?

Author title, author profile URL, author thumbnail, publication date, comment text, like count, and reply count.

Can this be used for automated sentiment analysis?

Yes, the returned comment text is well suited to passing into an LLM or sentiment classifier for aggregate audience reaction scoring.