YouTube Comments
Each record is one YouTube comment or reply: its text, author, likes, replies, date and the video it belongs to.
$0.80 per 1,000 records
You pay only for the records you get. Zero records cost zero. 6,250 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Public comments and replies on YouTube videos, from video links, a channel's latest videos or a search. Each record carries the text, author, likes, reply count, date and the video it belongs to.
Data from youtube.com
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 6,250 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/youtube-comments/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"video_urls": [
"https://www.youtube.com/watch?v=dQw4w9WgXcQ"
]
},
"max_items": 50
}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
30 fields: 22 here, 8 technical ones under Technical details.
Basics
- Video title
The title of the video the comment belongs to.
Example Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)
- Channel name
Name of the channel that published the video.
Example Rick Astley
- Is a reply
Yes when this is a reply, no when it is a main comment.
Example No
- Comment text
What the person wrote, with typed emails and phone numbers hidden.
Example Ok let’s be honest here Rick rolling is the one meme that will never die
- Author
The author's public name or handle on YouTube.
Example @JetpackGamer456
- Written by video owner
Yes when the channel that posted the video wrote this comment.
Example No
- Verified author
Yes when the author has a verified badge.
- Official artist
Yes when the author is an official artist channel.
- Likes
Number of likes, rounded by YouTube for large numbers.
Example 428,000
- Replies
Number of replies under the comment; zero for replies themselves.
Example 768
- Edited
Yes when the comment was changed after posting.
Example Yes
- Pinned
Yes when the video's creator pinned this comment to the top.
Example No
- Hearted by creator
Yes when the video's creator gave the comment a heart.
Example No
- Position
Place in YouTube's order, within the video or within the reply thread.
Example 2
- Video comment total
Total number of comments on the video, as YouTube counts them.
Example 2,461,404
Dates
- Posted (as shown)
The posting time as YouTube shows it, such as "3 weeks ago".
Example 6 years ago (edited)
- Posted on (approx.)
Estimated date and time the comment was posted.
Example Nov 6, 2020
- Date accuracy
How exact the estimated date is: day, month or year.
Example year
Links
- Video page
Web address of the video the comment was posted on.
Example youtube.com/watch?v=dQw4w9WgXcQ
- Channel page
Web address of the channel that published the video.
- Comment page
Direct web address that opens the video at this comment.
Example youtube.com/watch?v=dQw4w9WgXcQ&lc=UgyyEqaBXOKgoi4cf7l4AaABAg
- Author channel page
Web address of the author's own YouTube channel.
Technical detailsField names and types for developers, and the 8 fields hidden above
Hidden by default
These 8 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- Video code
videoIdThe short code YouTube uses to identify the video. - Channel code
channelIdThe code YouTube uses to identify the video's channel. - Comment code
commentIdThe code YouTube uses to identify this comment. - Replied-to comment code
parentCommentIdFor replies, the code of the comment being answered. - Author channel code
authorChannelIdThe code YouTube uses to identify the author's channel. - Sort order
sortThe order used to collect comments: top or newest. - Search input
sourceThe video link, channel or search words that led to this video. - Collected on
scrapedAtDate and time this record was gathered.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 1 sample record carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
videoId | text | Video code (hidden) | 1 of 1 |
videoUrl | link | Video page | 1 of 1 |
videoTitle | text | Video title | 1 of 1 |
channelName | text | Channel name | 1 of 1 |
channelId | text | Channel code (hidden) | 1 of 1 |
channelUrl | link | Channel page | 0 of 1 |
commentId | text | Comment code (hidden) | 1 of 1 |
commentUrl | link | Comment page | 1 of 1 |
isReply | yes or no | Is a reply | 1 of 1 |
parentCommentId | text | Replied-to comment code (hidden) | 0 of 1 |
text | text | Comment text | 1 of 1 |
author | text | Author | 1 of 1 |
authorChannelId | text | Author channel code (hidden) | 0 of 1 |
authorChannelUrl | link | Author channel page | 0 of 1 |
authorIsChannelOwner | yes or no | Written by video owner | 1 of 1 |
authorIsVerified | yes or no | Verified author | 0 of 1 |
authorIsArtist | yes or no | Official artist | 0 of 1 |
likeCount | number | Likes | 1 of 1 |
replyCount | number | Replies | 1 of 1 |
publishedTimeText | text | Posted (as shown) | 1 of 1 |
publishedAtApprox | date and time | Posted on (approx.) | 1 of 1 |
publishedAtPrecision | text | Date accuracy | 1 of 1 |
isEdited | yes or no | Edited | 1 of 1 |
isPinned | yes or no | Pinned | 1 of 1 |
isHeartedByCreator | yes or no | Hearted by creator | 1 of 1 |
position | number | Position | 1 of 1 |
sort | text | Sort order (hidden) | 1 of 1 |
videoCommentCount | number | Video comment total | 1 of 1 |
source | link | Search input (hidden) | 1 of 1 |
scrapedAt | date and time | Collected on (hidden) | 1 of 1 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Comment text | Video title | Channel name | Is a reply | Author | Written by video owner | Verified author | Official artist | Likes | Replies | Edited | Pinned | Hearted by creator | Position | Video comment total | Posted (as shown) | Posted on (approx.) | Date accuracy | Video page | Channel page | Comment page | Author channel page |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Ok let’s be honest here Rick rolling is the one meme that will never die | Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster) | Rick Astley | No | @JetpackGamer456 | No | — | — | 428,000 | 768 | Yes | No | No | 2 | 2,461,404 | 6 years ago (edited) | Nov 6, 2020 | year | youtube.com/watch?v=dQw4w9WgXcQ | — | youtube.com/watch?v=dQw4w9WgXcQ&lc=UgyyEqaBXOKgoi4cf7l4AaABAg | — |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- YouTube shows comment dates as relative text ("3 weeks ago"), so exact timestamps are approximate.
- E-mail addresses and phone numbers typed into a comment are masked.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.