When the YouTube comments API is missing replies, the usual cause is simple: the code reads only the first tier. A comment thread carries only some of its replies. Each top-level comment has its own reply list, and that list has its own pages. On November 11, 2026, from 00:15 to 01:10 Singapore time (SGT), we sent 47 live requests to the EveryInfra youtube/comments endpoint for 4 public videos. Parent comments with more than 10 replies usually stopped at exactly 10 replies (38 of 83 cases).
One popular comment declared 588 replies, and the same response carried none of them. With newest sort, two calls 15 minutes apart returned the same top-level comments. With popular sort, the large video kept only 55% of its threads between the two calls.
Key points
- The official docs, updated November 10, 2026, still say that
replies.commentsin a thread is a subset. To get all replies, callcomments.listwithparentId. Each tier has its own page token.- We measured 439 pairs of "one parent comment in one call". Of the 83 parents with more than 10 replies, 38 returned exactly 10 replies and 36 returned none, because the 100-row limit ran out first.
- The small video with 90 comments adds up: 36 top-level comments plus 54 declared replies equals 90, the video's
comment_count. But only 42 replies came back. The 12 missing replies sit under 3 parent comments.- Popular sort is a bad base for a repeatable sample. On the large video, only 11 of the first 20 threads were the same in two calls. Newest sort gave identical results.
- One call returned only 34 rows, with no
like_countand noreply_count, and the status was still 200. Mark this case as "fields missing" in your results, not as complete.
This is an updated version of our article from September 5, 2026. The original explained two-tier pagination from the official docs. Its main points are still correct. But it had no live tests, and it did not cover changes after September. YouTube added an image field to comments on September 30.
It started a GIF comment rollout in mid-October. It moved its API docs to new URLs in early November. For this update, we checked each fact in the old article against today's official pages. We added live data, the scripts that compute every number, and a checklist that you can use today. The section "The September claims, checked again" lists what changed.
Two-tier pagination: the upper tier pages through the video's threads. The lower tier pages through each parent's replies. The two kinds of page token do not mix.
Where the missing replies go
Before the docs and the code, here are the places where replies went missing in our tests. Each one has a different cause and a different fix. If you mix them into one "completeness rate", the number tells you nothing useful.
| Where the replies went | Example from our tests | Can you recover them? | How |
|---|---|---|---|
| The thread carries only the first batch of replies | Large video: one parent declares 171 replies, 10 come back | Yes | Official comments.list with parentId, page by page |
| The 100-row limit runs out before later threads get replies | Large video, popular sort: 20 threads use 20 rows, replies use 80 rows, and 9 of 17 parents with replies get none | Yes | Fetch a smaller scope per call, or make more calls |
| The two sort orders show different sets | Small video, popular sort: 2 fewer threads, and 3 parents report 1 reply fewer | Partly | Use newest sort as the base, and popular sort only as an extra |
| Fields are missing from the response | Same request: 74 rows once, 34 rows without reply counts later | Yes | Detect it, mark the call as incomplete, and fetch again later |
| The platform does not show them | Small video: 3 parents declare 5, 10, and 3 replies, and at most 2 come back | Usually not | Write the gap into your results |
The last row needs a note. Those 3 parents on the small video declare 5, 10, and 3 replies. None of these counts is above the batch size of 10. But every call and both sort orders stopped at 2 replies. We cannot see where the other replies went.
The author or the channel owner may have deleted them. They may wait in a review queue. A spam filter may hide them. The YouTube Help Center says that the author or the channel owner can remove comments.
YouTube can also remove comments that break its policies (YouTube Help: view, manage, or remove comments). Held comments can stay in "Held for review" for up to 60 days (YouTube Help: comment settings). Your scraper cannot fix these gaps. You can only report them clearly.
What two-tier pagination is: what the official docs say today
The YouTube Data API has two comment resources. A commentThread holds one top-level comment and possibly some of its replies. A comment is a single comment, either top-level or a reply. The resource page is direct about this: a thread resource does not always contain all replies to a comment. To get all replies, you call comments.list (CommentThreads resource, Google, updated 2026-11-10).
The field table is more specific about replies.comments[]. The list contains a limited number of replies. Unless the number of items equals snippet.totalReplyCount, the list is only a subset of all replies. To get all replies, call comments.list and set parentId to the parent comment.
This text has not changed since the September article. The URL has changed. The old /youtube/v3/docs/commentThreads path now redirects to /youtube/data/reference/rest/v3/commentThreads, and the page footer says "Last updated 2026-11-10 UTC".
![Screenshot of the field table on the official YouTube Data API CommentThreads resource page, with two rows in teal boxes. The first row is snippet.totalReplyCount, the total number of replies to the top-level comment. The second row is replies.comments], which says that the list contains a limited number of replies and is a subset unless its length equals totalReplyCount, and that comments.list with parentId returns all replies.
The official docs. The teal boxes mark the two passages that we quote. Captured on November 11, 2026, SGT. Screenshot of the YouTube Data API CommentThreads resource page
Each method page describes its own request. The first tier is commentThreads.list. You set videoId, and maxResults accepts 1 to 100 with a default of 20. You use nextPageToken from the response to get the next page. The order parameter accepts time (the default) or relevance.
The searchTerms parameter limits results to comments that contain some words. The second tier is comments.list. You set parentId to the parent comment. Again, maxResults accepts 1 to 100 with a default of 20. The reply list has its own nextPageToken.
The page also says that YouTube currently supports replies only for top-level comments. Replies to replies may come in the future. So the structure today has exactly two tiers, not a tree of any depth.
| Tier | Method | Scope parameter | Page size | Paging | Quota cost |
|---|---|---|---|---|---|
| Tier 1: threads of a video | commentThreads.list |
videoId |
1–100, default 20 | Its own nextPageToken
|
1 unit per call |
| Tier 2: replies to one parent | comments.list |
parentId |
1–100, default 20 | Its own nextPageToken
|
1 unit per call |
| Replies inside a thread | Tier 1 with part=replies
|
Cannot set it | "A limited number", no exact value in the docs | No paging | No extra cost |
Do not mix the two kinds of token. A thread token only continues the thread list. A reply token only continues the replies of that one parent. If you use the token of one parent to continue another parent, the result is undefined.
The September article said this too. Our tests did not change it, but they show it in practice. As you will see below, you must also read one EveryInfra response by thread. Each reply links to its parent only through reply_to_id.
For quota, each of the two list methods costs 1 unit per call (quota calculator). The official overview page now lists the default daily limits. You get 100 search.list calls, 100 videos.insert calls, and 10,000 units for all other methods. When you run out, you can apply through the quota extension form (YouTube Data API overview, quota section).
This split came in the June 1, 2026 entry of the revision history. It was already in force when we wrote the September article, but that article did not mention it. If you only read comments, 10,000 units means up to 10,000 pages per day. For most videos, quota alone does not stop you from getting all comments.
The September claims, checked again
We keep what is still correct and fix what is out of date. On November 11, 2026, we read each fact from the September 5 article against the official pages. The table shows the result. The first column is a summary, not a quote.
| Claim in the September article | Result of today's check | Action |
|---|---|---|
replies.comments in a thread can be a subset |
Still correct, same wording | Keep, add a screenshot |
totalReplyCount is the reply count of one top-level comment, not the length of the thread list |
Still correct | Keep |
commentThreads.list uses videoId and nextPageToken, and maxResults goes up to 100 |
Still correct; we add the default of 20 and the cost of 1 unit | Keep and extend |
comments.list uses parentId, and the reply list has its own token |
Still correct; we add "one level of replies only" | Keep and extend |
A searchTerms result covers only that query |
Still correct | Keep |
The docs separate commentsDisabled, missing permissions, and video not found |
Still correct; the error table also has commentThreadNotFound and channelNotFound
|
Keep |
Doc links point to /youtube/v3/docs/...
|
Out of date: they redirect to /youtube/data/reference/rest/v3/...
|
Update links |
| "This is not an EveryInfra test report" | Out of date: this update adds 47 live requests | Change to a test report |
| No word on quota | The quota split started on June 1 | Add |
| No word on comment images and GIFs |
snippet.imageUrl since September 30; the URL expires after 6 hours |
Add |
The old Stack Overflow thread from the September article is still online (Stack Overflow discussion from 2015). The person who asked saw a thread that declared 39 replies but had no replies section. The answer used comments.list with parentId and got 44 replies.
One lesson still holds: when two counts disagree, treat the larger one as the expected count. The API is more likely to return too few items than to report too many. In our tests, one parent sometimes reported different reply counts under the two sort orders. The larger value always came from newest sort, which agrees with this lesson.
Test design: 4 videos, 3 rounds, 2 sort orders
We chose 4 public videos by comment volume, so that no result depends on one video. All are Python tutorials, so the comments have similar topics. The main differences are size and activity.
We found them with two youtube/search calls at 00:15 and 00:16 SGT, for "python tutorial for beginners full course" and "youtube data api comments replies python". For each video, we first called youtube/video to read comment_count. Then we called youtube/comments once with newest sort and once with popular sort. Each call used the maximum limit of 100.
| Label | Video | Published | comment_count |
Why we chose it |
|---|---|---|---|---|
| Small | 0FtcHjI5lmw, a tutorial on scraping YouTube comments with Python | 2023-10-31 | 90 | Fewer than 100 comments, so one call can test a full fetch |
| New | VKMMqojw9OY, a visual Python intro | 2026-08-31 | 138 | About two months old, comments still arrive |
| Medium | Ro_MScTDfU4, Python in 30 minutes | 2024-11-18 | 694 | Medium size, many replies |
| Large | rfscVS0vtbw, a full Python course | 2018-07-11 | 46,104 | Large video, top comments have hundreds of replies |
We ran the same 12 calls (4 video lookups and 8 comment calls) in 3 rounds. Round 1 ran from 00:16 to 00:22 SGT, round 2 from 00:31 to 00:37, and round 3 from 01:03 to 01:09. We also ran some single tests. At 00:23 we sent an unknown parameter, parent_id, and an invalid sort value, relevance, to see the error messages. At 00:23 we also sent a comment link with lc= to see if it points the call at one parent.
At 00:28 we used since to get only comments from November 1 or later. All calls used one test key. We saved every raw response. A script computes every number in this article from those raw files.
Test 1: how top-level comments and replies share 100 rows
First, the structure of a response. EveryInfra youtube/comments returns up to 100 rows per call. Each row has is_reply, and reply rows also have reply_to_id. Top-level comments and replies are in one array.
When you sort the rows of each response by type, the pattern is very regular. First come the top-level comments of 20 threads. Then come the replies that those 20 threads carry. Then come the next 20 threads, then their replies, until the 100 rows are full.
For example, the small video with newest sort in round 1 returned 20 top-level rows, 21 replies, 16 top-level rows, and 21 replies. The large video with popular sort returned 20 top-level rows and 80 replies. The second page of threads did not fit at all.
So read the response by thread. First come the top-level rows of a group of threads, then the replies of those threads. If rows are left, the next group of threads follows. This explains why the number of top-level comments changes so much between sort orders. Popular sort puts the threads with the most replies first, and their replies fill the 100 rows very quickly.
The numbers make this clear. With newest sort, top-level comments took 36, 80, 84, and 74 rows on the 4 videos. With popular sort, they took 34, 85, 40, and 20 rows. On the large video, popular sort used 80 of 100 rows for replies and covered only 20 threads. Newest sort covered 74 threads.
So if you want to know what people are saying in general, use newest sort, or keep most rows for top-level comments. Your sample will be much wider. If you want to see how the top few discussions developed, popular sort is the right tool. But it covers very few threads.
This result has limits. First, it applies only when limit is 100 and the video has more than 100 comments. On a small video with fewer than 100 comments, one call gets all threads, and sort only changes the order. Second, "20 threads per page" is a pattern that we saw in more than 40 responses.
It is not a written promise of the endpoint, and it can change. Our check script below does not depend on the number 20. It depends only on the is_reply and reply_to_id fields.
Test 2: declared reply counts against replies returned
The second question is the "missing replies" in the title. Each top-level comment carries reply_count, which is the count that the platform declares. The rows in the same response whose reply_to_id points to that comment are the replies that came back. Compare the two, and you know which parent is incomplete and by how much.
We combined all complete responses from the three rounds. That gave 439 pairs of "one parent comment in one call". Each pair has a declared count and a returned count.
There were 356 pairs with 10 or fewer declared replies. In 282 of them, the returned count was equal to or higher than the declared count, so that batch was complete. In 49 pairs, no replies came back, and 25 pairs had some replies. A parent with no replies was almost always in the last page of threads in that response. The rows ran out before its replies got a turn.
A parent with some replies was usually the "platform does not show them" case from the first table, such as the 3 parents on the small video. The 83 pairs with more than 10 declared replies look very different. In 38 pairs exactly 10 replies came back. In 36 pairs none came back. The other 9 returned 3, 9, 11, 11, 11, 11, 19, 21, and 21 replies.
This "line at 10" is the "limited number of replies" in the official docs. The docs do not give a number. In our tests, it was 10 in most cases, sometimes one or two more, and at most 21. The higher counts all came from newest sort on the medium and large videos. We think that this is related to how the platform loads replies in batches, but the response does not prove it.
So we write "sometimes more than 10", not a rule. For people who write scrapers, the useful rule is simple. If a parent's reply_count is larger than the replies that came back, treat that parent as incomplete. Create a separate fetch job for it. Do not assume "at most 10" or "at most 20".
Here is one example. On the large video with popular sort, the second top-level comment had 35,000 likes and declared 588 replies. The same response carried none of them.
The 10 replies of the first popular comment, plus the replies of the next threads, used all 100 rows. We also tried another approach. We added the comment ID to the video URL as the lc= parameter, to point the call at that comment. The response had 85 of 100 rows in common with the call without lc=.
The 588-reply comment was still in second place, still with 0 replies. So lc= comment links have no effect on our endpoint. To get hundreds of replies under one popular comment, use the official comments.list.
Two real responses: a parent declares 588 replies but none come back; the same request once returns without reply counts. Captured on November 11, 2026, SGT. Text and user names are hidden. Real EveryInfra API responses, 2026-11-11 00:22–00:32 SGT
Test 3: does a 90-comment video add up?
On a small video that fits in one call, do the numbers match exactly? The small video has a comment_count of 90.
With newest sort, the response had 78 rows: 36 top-level comments and 42 replies. The reply_count values of the 36 top-level comments add up to 54. And 36 plus 54 is exactly 90.
This equation tells us three things. First, a video's comment_count includes replies. It is not the number of top-level comments. If you compare the number of top-level comments with it, it never matches.
One Stack Overflow user read only top-level comments and got 4,309. The video page showed 8,487 (Stack Overflow discussion from 2022). The answer added replies, and on another video it got 3,300 of 3,359 comments. That person did not find the last 59 either.
Second, our 36 top-level comments are complete, because top-level plus declared replies equals the total. There is no gap. Third, only 42 replies came back, 12 fewer than the 54 declared. All 12 belong to 3 parents (which declare 5, 10, and 3 replies and return 2 each).
| Small video, newest sort (00:17 SGT) | Count | Note |
|---|---|---|
Video comment_count
|
90 | From youtube/video
|
Top-level comments (is_reply false) |
36 | 2 more than with popular sort |
Sum of reply_count on top-level rows |
54 | 36 + 54 = 90, equal to the total |
Replies returned (is_reply true) |
42 | Replies are complete for 25 parents |
| Reply gap | 12 | All under 3 parents, each stops at 2 |
| Replies that link to a parent | 42 / 42 | Each reply_to_id points to a top-level row in the same response |
| Duplicate IDs | 0 | 0 in all 6 small-video calls over 3 rounds |
This gives you a completeness statement that you can put in your results: "All top-level comments are present (36; top-level plus declared replies equals the video total of 90). We have 42 replies. 3 parents have 12 replies that we could not get, cause unknown." This is much more useful than "86.7% complete". The reader knows what is missing, where it is, and whether it can be fixed.
This check needs one condition: the top-level comments must be complete. You can say that only when top-level comments plus declared replies equal the video total. On a video with more than 100 comments, one call cannot get all top-level comments, so the equation does not help. In that case, report "threads fetched" and "reply gaps in those threads" separately.
One more caution: with popular sort, the small video returned only 34 top-level comments, 2 fewer than newest sort. And 3 parents reported 1 reply fewer than with newest sort. So run this check on the newest-sort result.
Test 4: is the same request stable over time?
For research or a weekly report, you must be able to run the same request later and get similar results. If not, nobody can check your sample. We ran the 12 calls in 3 rounds and compared the top-level comments of the same video and sort order between rounds.
With newest sort, round 1 and round 2 had identical top-level comments on the small and new videos. The medium video had 2 fewer in round 2, and the large video had 4 fewer. The missing ones were the last rows. Round 2 carried a few more replies, which pushed the last top-level comments out of the 100 rows.
No new comments appeared. Popular sort was different. The two calls were less than 15 minutes apart. Only 28 of 40 threads on the medium video were the same.
On the large video, only 11 of 20 were the same. The platform computes popular order by relevance, and that order changes. The official docs match this: order=relevance in commentThreads.list means "by relevance", with no promise of stable order.
Round 3 ran half an hour after round 2, and it confirmed the result. With newest sort, the small video again had the same 36 top-level comments. The medium video kept 81 of 82. All 70 top-level comments of the large video from round 2 were still there, and round 3 added 4 more.
The new video added 3 more top-level comments. These 7 extra comments all showed "2 months ago" as their post time. They were not new comments from the last half hour. Round 3 carried fewer replies, so older top-level comments that were outside the 100 rows came back in.
With popular sort, the large video kept 15 of 20 threads and the medium video kept 30 of 40. That is a bit more stable than rounds 1 and 2, but a quarter of the threads still changed. The conclusion holds: use newest sort for repeatable samples. When you compare two runs, align them by ID first, and then check whether the extra rows are really new.
We also found a smaller detail. In the same round, one parent sometimes reported different reply_count values under the two sort orders. Over the three rounds, a parent appeared under both sort orders 295 times. In 12 of those cases the counts differed. These 12 cases came from 5 parents, and newest sort always reported the larger count.
The largest gap was on the large video: newest sort reported 171 replies and popular sort reported 148, a gap of 23. This suggests that the popular view hides or filters some replies. For completeness checks, use the count from newest sort. This matches the 2015 lesson to "take the larger value".
| Measure | Newest sort | Popular sort |
|---|---|---|
| Large video, top-level overlap between rounds 1 and 2 | 70 / 74 | 11 / 20 |
| Medium video, top-level overlap between rounds 1 and 2 | 82 / 84 | 28 / 40 |
| Small video, top-level comments | 36 | 34 |
Which order reported the larger reply_count
|
12 times | 0 times |
| Good for | Repeatable samples, incremental updates | Looking at the top discussions |
Test 5: the same request, with fields missing
In round 2, the small video with popular sort returned only 34 rows. All were top-level comments, with no replies. No row had like_count or reply_count. Fifteen minutes earlier, the same request returned 74 rows with all fields.
We saw this response only once in 3 rounds, but it can occur.
For a scraper, this is the most dangerous case. It returns no error, the status is 200, and the row count is not zero. If you only check "did it return data", you will treat a result without replies as complete.
The check is easy. If no row in a response has like_count, mark the whole response as "fields missing". Do not use it for completeness checks, and fetch again later. Our check script does exactly this.
In round 3, the same request returned all fields again, so a later retry works. This example also shows why completeness belongs in your results and not only in your logs. The log shows this call as "success". Only the fields in the result show that you cannot use it.
Test 6: wrong parameters return 422 and cost nothing
The last group of tests covers wrong parameters. A wrong parameter is free, and the error message lets a program fix itself. At 00:23 we sent a parameter that does not exist, parent_id. The endpoint returned 422. The message said that youtube/comments accepts only url, limit, since, and sort, and it included a request example that works.
With sort set to relevance, the endpoint returned 422 and said that only newest and popular are allowed. Both messages said "Nothing was charged". These errors also tell you something: our endpoint has no parent_id parameter, so it cannot page through the replies of one parent.
The table puts the four response types from our tests side by side. Your scraper needs a separate status for each one.
| Case in our tests | HTTP status | Rows | Record it as |
|---|---|---|---|
| Normal response, all fields | 200 | 34–100 | Use it; compare declared and returned replies |
No like_count or reply_count in any row |
200 | 34 |
fields_missing; fetch again later |
| Unknown parameter or invalid sort value | 422 | 0 | Fix the request from the error message; not charged |
| Rate limit | 429 | 0 | Wait for retry_after, then retry; not charged |
Fetching comments with EveryInfra: request, fields, and limits
Here is the request from our tests. Read the key from an environment variable, and do not put it in your code. The url is the video link.
sort is newest or popular. limit goes up to 100. since filters by comment date and returns only comments from that day or later.
curl -s -X POST https://api.everyinfra.com/api/v1/social \
-H "Authorization: Bearer $EVERYINFRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"platform":"youtube","action":"comments",
"params":{"url":"https://www.youtube.com/watch?v=rfscVS0vtbw",
"sort":"newest","limit":100}}'
Each row has the fields below. They match the response_fields list of youtube/comments in the catalog. The meaning comes from the catalog. The "What we saw" column comes from more than 40 responses in our tests.
| Field | Meaning | What we saw |
|---|---|---|
id |
Comment ID | A reply ID is "parent ID + dot + reply ID" in all 3 rounds |
text |
Comment text | No empty text in these tests |
author_name |
Display name | Ordinary user names; hide them in analysis |
like_count |
Likes | Sometimes missing from a whole response (Test 5) |
reply_count |
Replies (top-level rows) | Sometimes missing from a whole response; can differ by sort |
posted_at |
Post time | Relative time such as "2 years ago" or "11 minutes ago", sometimes with "(edited)" |
is_reply |
Is this a reply | Always present |
reply_to_id |
ID of the parent comment | Only on reply rows; top-level rows do not have this key |
platform |
Platform | Always youtube |
posted_at is relative time, and this matters for completeness. "2 years ago" is exact only to the year, and it is relative to the request time. So store the request time with every call. If you do not, a month later you cannot know which day "1 day ago" was.
We write the request time (SGT) next to each row. The W3C provenance model PROV recommends the same thing: record which activity produced the data, and when (W3C PROV-O). Write the timestamp in RFC 3339 format, with a time zone.
since is the easiest way to get new comments only. At 00:28 we called the large video with since set to 2026-11-01. We got 6 rows. Three were from "4 days ago", one from "1 day ago", one from "5 days ago", and one from "8 days ago". A video with 46,104 comments had only 6 new comments in about 10 days.
If you call it once a day with since, one call is enough. Look at the "8 days ago" row. From the request time, that is November 2 or 3, which is after the since date. So the filter uses the real comment date, not the words of the relative time.
Here is what you can and cannot do with our endpoint.
| You can | You cannot |
|---|---|
| Get pages of threads, plus the first batch of replies for each thread | Get replies after the first batch of one parent |
Sort by newest or popular
|
Page by parent: there is no parent_id parameter |
Get only new comments with since
|
Point the call at one comment with an lc= link |
| Pay nothing for requests with wrong parameters | Read moderation queues or hidden comments |
If your analysis needs all replies under a few popular comments, use the official comments.list for those comments. To read public comments, the official API needs only an API key. In AI tools, you can also connect the same capability as an MCP tool, as the MCP setup page shows. The protocol itself is in the MCP specification.
The capability pages are YouTube comments, YouTube video, and YouTube search. The platform overview is the YouTube Scraper API. For your first call, follow the quickstart.
Getting all replies from the official API: a Python two-tier loop
If you need every reply on a video, here is a two-tier loop with the official Python client (PyPI page). Its structure is the two-tier pagination itself. The outer loop pages through threads by videoId.
The inner loop pages through replies by parentId, but only for parents where the declared count is higher than the replies returned. Each tier keeps its own token. The official sample repository also has comment thread examples for comparison (youtube/api-samples).
import os
from googleapiclient.discovery import build
yt = build("youtube", "v3", developerKey=os.environ["YOUTUBE_API_KEY"])
def threads(video_id):
token = None
while True:
r = yt.commentThreads().list(part="snippet,replies", videoId=video_id,
maxResults=100, order="time",
pageToken=token).execute()
yield from r["items"]
token = r.get("nextPageToken")
if not token:
return
def replies(parent_id):
token = None
while True:
r = yt.comments().list(part="snippet", parentId=parent_id,
maxResults=100, pageToken=token).execute()
yield from r["items"]
token = r.get("nextPageToken")
if not token:
return
for t in threads("rfscVS0vtbw"):
top = t["snippet"]["topLevelComment"]
declared = t["snippet"]["totalReplyCount"]
inline = t.get("replies", {}).get("comments", [])
if declared > len(inline): # the thread carries only some replies
inline = list(replies(top["id"]))
# store top and inline, plus declared, len(inline), and the request time
We did not run this code for this article. It is a configuration example, and each parameter comes from the two method pages above. Note three things. First, order="time" makes the result repeatable, for the reasons in Test 4. Second, the inner loop runs only for incomplete parents.
So the quota cost is "parents to fill × pages per parent". Take the first 20 threads of the large video with popular sort. Their declared reply counts are 148, 588, 211, 457, 127, 46, 318, 140, 28, 21, 42, 29, 29, 20, 20, 10, 1, and so on. At 100 replies per page, these 20 threads need 34 comments.list calls, which is 34 quota units. That is very little against the default of 10,000 units per day.
Third, the counts can still disagree after you fill everything, for the reasons in the next sections. The official pagination guide and error reference describe nextPageToken and the quota errors. Common parameters such as fields and key are on the Google API system parameters page.
Put the completion state in your results: a progress table and four small checks
The main advice of the September article was this: store comment content and fetch progress separately. Put the completion state in the results, not only in the logs. For this update, we turned that advice into a progress table. We then ran the four check cases from the old article on real responses.
The content table removes duplicates by comment ID and keeps the video, the parent, and the observation time. The progress table has one row per "video × parent", with the declared count, the returned count, a status, and a reason. In SQLite, use INSERT ... ON CONFLICT DO UPDATE to update content rows by ID (SQLite UPSERT, Python sqlite3 module).
CREATE TABLE comment (
id TEXT PRIMARY KEY, video_id TEXT, parent_id TEXT,
text TEXT, like_count INTEGER, reply_count INTEGER,
posted_at_raw TEXT, observed_at TEXT, sort TEXT
);
CREATE TABLE progress (
video_id TEXT, parent_id TEXT, -- empty parent_id = thread tier
declared INTEGER, fetched INTEGER,
status TEXT, -- complete / partial / not_reached / fields_missing / unreadable
reason TEXT, observed_at TEXT,
PRIMARY KEY (video_id, parent_id)
);
Write the content first, and then move the progress forward. If you save "next page" before you save the current page, a failure in between skips data. In the other order, a failed run only reads one page again. That makes duplicates, and the update by ID removes them. Each of the four check cases from the old article now has real data:
| Check case from the old article | Real data from this update | Result |
|---|---|---|
| A thread carries fewer replies than declared, so create a fill job | 157 of 439 pairs returned fewer replies than declared | Progress shows partial or not_reached; none is marked complete by mistake |
| A reply list has another page, so continue that parent | Parents that declare 588, 171, 457, and so on return 0 or 10 | Our endpoint cannot page; mark them and use the official comments.list
|
| Reading the same page twice must not double the unique count | 6 small-video calls, 416 rows in total, 78 unique IDs | 78 after removing duplicates by ID, no doubling |
| A failed request must not overwrite an old result with an empty one | One small-video call with missing fields (round 2, popular sort) | Recorded as fields_missing; the round 1 result stays |
The 416 and the 78 in the third row deserve a note. Over 3 rounds and 2 sort orders, the small video had 6 calls. Together they returned 416 rows. If you append them all, your content table has 416 rows, which is more than 5 times the real count.
After removing duplicates by ID, 78 rows remain, the same as one newest-sort call. This also shows that the video got no new comments in that hour, and we read the same set again and again. Do not remove duplicates by comment text. Two people who both write "thanks" made two comments, and an edited comment from one person is still one comment.
Across all calls, we got 78 of the 90 comments on the small video, which is 87%. On the new video, we got 130 of 138, or 94%, because it has few replies and almost all top-level comments fit in 100 rows. On the medium video we got 213 comments, or 31%.
On the large video we got 288, only 0.6%. That is not a problem in itself. You should not fetch a large video in one go. Use since for new comments, or fetch only the threads that you need.
The problem is the report. It must say which sort order, which time, and what share of the total the sample covers. Do not call it "the comments of this video".
Why comment counts never match: gaps that you cannot fix
Even after you page through both tiers, the counts often disagree. The first cause is review. A channel owner can hold comments for review.
Held comments stay in "Held for review" for up to 60 days. They do not appear in the public API, but they can already be in the count. The official commentThreads.list has a moderationStatus parameter with the values heldForReview and likelySpam. Only requests authorized by the channel owner can use it (commentThreads.list). The second cause is deletion and filtering.
Authors or channel owners can delete comments, and the platform can remove spam. A YouTube community post also describes ongoing work against spam comments and impersonation (YouTube community: updates to reduce spam and impersonation). The third cause is timing. The count on the video page, the comment_count in the API, and the pages that you read do not come from the same moment.
| Cause | In the count? | In the public API? | What you can do |
|---|---|---|---|
| Held for review (up to 60 days) | Can be | No | Only the channel owner can read it with moderationStatus
|
| Deleted by the author or the owner | Until the count updates | No | Report the gap |
| Removed as spam | Until the count updates | No | Report the gap |
| Count and pages read at different times | Yes | Not yet | Store the fetch time with each call |
| Hidden in the popular view | Yes | Under newest sort | Use the count from newest sort |
One creator on Reddit saw 43 comments in YouTube Studio and on the video page, but could count only 36. They checked held comments and hidden users and did not find the other 7 (r/NewTubers discussion). This is the same thing as the 3 parents on our small video that declare 5, 10, and 3 replies and show 2 each. The count includes them, and the public view does not.
For gaps like these, you can do one thing only. Write the gap and the places that you checked into your results. Do not estimate, fill, or delete counts to make the numbers match.
This is also why we do not recommend a "98% complete" number in a report. It needs a reliable denominator, and comment_count includes comments that you cannot see. A more honest report has layers. How many threads did you get, and is the thread list complete?
How many parents have incomplete replies, and by how much? How many calls failed or had missing fields? The statement for the small video in Test 3 is a good template.
The cost: what fetching comments costs
Our endpoint charges per call. youtube/comments and youtube/video cost $0.000556 per call, and youtube/search costs $0.000778 per call (catalog price_usd, read on November 12, 2026). One youtube/comments call returns up to 100 rows, so 1,000 comment rows cost about $0.0056. Wrong parameters cost nothing. Our 47 requests for this article had 43 charged calls, for a total of $0.023908. On November 11, the search calls were also charged at $0.000556.
Of the 4 free requests, 2 were the 422 errors in Test 6. Two other calls hit the rate limit and returned 429. They are not part of the 47. We waited and retried, and the 429 responses were also free. So we sent 49 requests in total. The full price list is on the pricing page.
| Case | Calls | Cost |
|---|---|---|
| One video: details + 100 rows with newest sort | 2 | $0.001112 |
| One video: add 100 rows with popular sort | 3 | $0.001668 |
50 videos, one since call per video per day |
50 per day | $0.0278 per day, about $0.83 per month |
| This article: 4 videos × 3 rounds | 36 | $0.020016 |
The official API does not charge per call. It uses quota: 1 unit per page of comments, 10,000 units per day by default. The cost is elsewhere. You set up a Google Cloud project, manage keys, handle quota errors, and follow the YouTube API Services Developer Policies. For comment collection, the most important rule is storage time.
Data that you get without user authorization can be stored for at most 30 calendar days. After that, you delete it or fetch it again (YouTube API Services Developer Policies, updated November 6, 2026, Terms of Service). For long-term research, this rule changes how you store data. Researchers can also apply to the YouTube Researcher Program, which gives approved researchers more quota (YouTube Researcher Program).
What changed since September: four updates about comments
The original article dates from September 5. In the two months after that, YouTube made several changes that affect comment collection. Each item below has a date, a source, and what it means for you.
| Date | Change | Effect on comment collection |
|---|---|---|
| 2026-09-30 |
snippet.imageUrl added to comments |
Save images at once; the URL expires after 6 hours |
| 2026-10-13 | YouTube confirms GIF comments (mobile only) | Comment text can be empty |
| 2026-11-10 | Comment reference pages updated; old /youtube/v3/docs/ links redirect |
Update links in code and docs |
| 2026-11-06 | Developer Policies page updated | The 30-day storage rule is still there |
First, comments can now contain images and GIFs. The September 30, 2026 entry in the revision history added snippet.imageUrl to the comments resource, with access for all users in November. The resource page says that this is a signed URL that expires 6 hours after you get it (Comments resource). From October 14, 2026, GIF comments started to appear on mobile (9to5Google, October 14, 2026). TechRepublic on October 16, 2026 and Notebookcheck on October 18, 2026 reported it too, based on the revision history above.
What this means: there will be more comments with a GIF and no text, so the text can be empty. Image URLs expire in 6 hours, so save images when you fetch them. Our 40-plus responses had no empty text. But your scraper must accept empty text and count those comments separately.
Second, GIF comments arrive in stages. Creator Handbook on October 19, 2026 reported that YouTube confirmed the feature on October 13, 2026. It is mobile only for now, and creators cannot turn it off yet.
YouTube first announced GIFs at the Made on YouTube event in September (9to5Google, September 23, 2026). What this means: the share of GIF comments on the same video changes over time. Keep this in mind when you compare periods.
Third, the official docs moved to new URLs. The doc path moved from /youtube/v3/docs/ to /youtube/data/reference/rest/v3/, and the old links redirect. What this means: update the links in your code comments and internal docs. If the redirect stops one day, the old links break.
Fourth, the developer policy page was updated on November 6, 2026 (Developer Policies), and the 30-day storage rule is still there. In the EU, the rules for researcher data access under Article 40 of the Digital Services Act came as Delegated Regulation 2025/2050 (EUR-Lex text). EUR-Lex updated its summary on January 28, 2026 (EUR-Lex summary, European Commission page). A preprint from December 2025 describes what researchers can and cannot do under this framework (arXiv:2512.14223). What this means: EU researchers now have a formal way to request platform data, in addition to public comments.
How to describe the data in research
Researchers care about this more than product teams, because a sample that nobody can describe is a result that nobody can check. A 2026 tutorial in Behavior Research Methods explains how to collect YouTube data with the official API. It notes that each set of replies needs its own request, so replies take much longer to collect than top-level comments (Campos-Moinier, 2026). A Programming Historian lesson asks readers to think about ethics before text analysis of comments (Programming Historian). For example, can readers identify the authors?
Based on our tests, we suggest that a data section states at least the six items below. The small-video statement in Test 3 works as a template.
| Item | What to write | Example from this article |
|---|---|---|
| Videos | Which videos, and how you chose them | 4 Python tutorials from two youtube/search calls |
| Sort and limit | Sort order and row limit per call |
newest and popular, limit 100 |
| Time | Fetch time with time zone | 2026-11-11, 00:16–01:10 SGT, 3 rounds |
| Top-level list | Complete or not, and how you know | Small video: 36 + 54 = 90 = comment_count
|
| Reply gaps | How many, and under which parents | 12 replies under 3 parents |
| Failed calls | Count and handling | 1 × fields missing; fetched again |
Our article on social media research sample integrity covers sampling in general. Our article on Reddit comment completeness covers the same problem on another platform. Reddit uses "more comments" placeholders, and YouTube uses "declared count higher than returned count". The idea is the same, but you cannot copy the parameters from one to the other.
Downstream use: keep the parent links
After you get the comments, many teams group topics, score sentiment, or ask a model to write a weekly comment report. For all of these, the parent link matters a lot. A reply that says "this is wrong" means almost nothing without the comment it answers.
So keep reply_to_id in your export, and analyze each reply together with its parent. Two guides show how to model this on two platforms: YouTube comment topic report and Douyin comments as JSON. For a cross-platform view, see how to scrape TikTok comments, the TikTok comments API, and the TikTok Scraper API.
FAQ
Why is the YouTube comments API missing replies?
The most common cause is that the code uses only commentThreads.list, and the replies in a thread are a subset. The official docs give the fix.
For each parent whose totalReplyCount is higher than the replies in the thread, call comments.list with parentId. Then page through the result. In our tests, parents with more than 10 replies mostly returned exactly 10.
Why is the YouTube comment count wrong?
A video's comment count includes replies. It also includes comments that are held for review, deleted, or filtered, which you cannot see. On our small video, 36 top-level comments plus 54 declared replies is exactly 90. But 12 of those replies did not come back.
Does YouTube support replies to replies?
The official comments.list page says that YouTube currently supports replies only for top-level comments. Replies to replies may come in the future (comments.list). So there are only two tiers today. A reply that mentions another user is still a reply to the top-level comment.
Is there a YouTube comments API that does not need the official API?
Yes. You can use a data API that charges per call, such as EveryInfra youtube/comments.
It costs $0.000556 per call for up to 100 rows, and wrong parameters are free. It cannot page through the replies of one parent. When you need all replies under one popular comment, you still need the official comments.list.
References
- CommentThreads resource, Google for Developers, updated 2026-11-10, https://developers.google.com/youtube/data/reference/rest/v3/commentThreads
- CommentThreads: list, Google for Developers, updated 2026-11-10, https://developers.google.com/youtube/data/reference/rest/v3/commentThreads/list
- Comments resource, Google for Developers, updated 2026-11-10, https://developers.google.com/youtube/data/reference/rest/v3/comments
- Comments: list, Google for Developers, updated 2026-11-10, https://developers.google.com/youtube/data/reference/rest/v3/comments/list
- YouTube Data API revision history, Google for Developers, read 2026-11-11, https://developers.google.com/youtube/data/revision_history
- YouTube Data API overview (quota), Google for Developers, read 2026-11-11, https://developers.google.com/youtube/data/getting-started
- Quota calculator, Google for Developers, read 2026-11-11, https://developers.google.com/youtube/data/determine_quota_cost
- Errors, Google for Developers, read 2026-11-11, https://developers.google.com/youtube/data/reference/rest/v3/errors
- Implementation guide: pagination, Google for Developers, read 2026-11-11, https://developers.google.com/youtube/data/guides/implementation/pagination
- YouTube API Services Developer Policies, Google, updated 2026-11-06, https://developers.google.com/youtube/terms/developer-policies
- YouTube API Services Terms of Service, Google, read 2026-11-11, https://developers.google.com/youtube/terms/api-services-terms-of-service
- Quota extension form, YouTube Help, read 2026-11-11, https://support.google.com/youtube/contact/yt_api_form
- View, manage, or remove comments, YouTube Help, read 2026-11-11, https://support.google.com/youtube/answer/6000976
- Comment settings, YouTube Help, read 2026-11-11, https://support.google.com/youtube/answer/9483359
- Updates to reduce spam and impersonation, YouTube Community, read 2026-11-11, https://support.google.com/youtube/thread/169359445
- google-api-python-client, GitHub, read 2026-11-11, https://github.com/googleapis/google-api-python-client
- google-api-python-client, PyPI, read 2026-11-11, https://pypi.org/project/google-api-python-client/
- youtube/api-samples, GitHub, read 2026-11-11, https://github.com/youtube/api-samples
- Google API system parameters, Google Cloud, read 2026-11-11, https://cloud.google.com/apis/docs/system-parameters
- Why doesn't my commentThread call give replies, Stack Overflow, 2015, https://stackoverflow.com/questions/31546995/why-doesnt-my-commentthread-call-give-replies-for-some-comment-threads
- How to extract all YouTube comments using YouTube API, Stack Overflow, 2022, https://stackoverflow.com/questions/71768274/how-to-extract-all-youtube-comments-using-youtube-api-python
- Number of comments doesn't match up, Reddit r/NewTubers, https://www.reddit.com/r/NewTubers/comments/sdbibv/number_of_comments_doesnt_match_up/
- YouTube begins rolling out GIF support, 9to5Google, 2026-10-14, https://9to5google.com/2026/10/14/youtube-begins-rolling-out-gif-support/
- YouTube Rolls Out GIF Comments, TechRepublic, 2026-10-16, https://www.techrepublic.com/article/news-youtube-gif-comments-rollout/
- YouTube opens comment section to pictures and GIFs, Notebookcheck, 2026-10-18, https://www.notebookcheck.net/YouTube-opens-comment-section-to-pictures-and-GIFs-for-everyone-in-November.1427311.0.html
- Slow rollout of YouTube GIF comments splits users, Creator Handbook, 2026-10-19, https://www.creatorhandbook.net/slow-rollout-of-youtube-gif-comments-splits-users/
- Made on YouTube 2026, 9to5Google, 2026-09-23, https://9to5google.com/2026/09/23/made-on-youtube-2026/
- Commission Delegated Regulation (EU) 2025/2050, EUR-Lex, 2025-07-01, https://eur-lex.europa.eu/legal-content/EN/TXT/?uri=OJ:L_202502050
- DSA: sharing platform data with vetted researchers (summary), EUR-Lex, 2026-01-28, https://eur-lex.europa.eu/EN/legal-content/summary/digital-services-act-sharing-platform-and-search-engine-data-with-vetted-researchers.html
- Delegated act on data access under the DSA, European Commission, 2025-07-02, https://digital-strategy.ec.europa.eu/en/library/delegated-act-data-access-under-digital-services-act-dsa
- Research Opportunities and Challenges of the EU's Digital Services Act, arXiv:2512.14223, 2025-12-16, https://arxiv.org/abs/2512.14223
- YouTube Researcher Program, YouTube, read 2026-11-11, https://research.youtube/
- Collecting data from YouTube using the official API, Behavior Research Methods, 2026, https://doi.org/10.3758/s13428-026-03116-8
- Text Mining YouTube Comment Data with Wordfish in R, Programming Historian, https://programminghistorian.org/en/lessons/text-mining-youtube-comments
- RFC 3339: Date and Time on the Internet, IETF, https://www.rfc-editor.org/rfc/rfc3339
- PROV-O: The PROV Ontology, W3C, https://www.w3.org/TR/prov-o/
- Model Context Protocol specification 2025-06-18, https://modelcontextprotocol.io/specification/2025-06-18
- SQLite UPSERT, SQLite, https://www.sqlite.org/lang_upsert.html
- sqlite3 module, Python documentation, https://docs.python.org/3/library/sqlite3.html
- EveryInfra data catalog (YouTube), read 2026-11-11, https://api.everyinfra.com/api/v1/social/catalog?platform=youtube
Originally published on the EveryInfra blog: YouTube Comments API Missing Replies: Two-Tier Pagination and Completeness Checks. This article was written with AI assistance; the numbers come from the API calls and sources linked above, and were checked before publishing.
EveryInfra is a pay-per-call data API for AI agents and developers: everyinfra.com.


Top comments (0)