# YouTube Comments API

Read what viewers said about a public video.

Give Fiber a video ID or watch URL. The response pairs each comment with its text, like count and reply count.



Provider in the worked example: Fiber.

Price shown for this route: 4.36¢ for one tested request.



## What it can do

### Read the first page of comments on Me at the zoo.

Give Fiber a video ID or watch URL. The response pairs each comment with its text, like count and reply count.

Price: 4.36¢ per tested request.


## A real example

Tested on 2026-11-25 through Fiber.

One paid call from our own test run.

Your agent asked: Read the first page of comments on Me at the zoo.

Returned in this test:

- Video: [Me at the zoo](https://www.youtube.com/watch?v=jNQXAC9IVRw)
- First page: 20 comments
- First comment: The San Diego Zoo celebrated being the filming location.
- Reported replies: 986 on the zoo’s comment

Charged in this test: $0.0436.

One public video. Counts can change and the provider marks publication dates as estimates.




## Try the API request

Use your TaskFuel API key as TASKFUEL_API_KEY in your terminal or server. Keep it out of browser code.

### 1. Check the price

This request checks the price without paying. Omit nextPageToken for the first page.

```sh
curl --fail-with-body https://app.taskfuel.ai/v1/call \
  -H "Authorization: Bearer $TASKFUEL_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'TASKFUEL_REQUEST'
{
  "url": "https://mpp.orthogonal.com/fiber/v1/youtube/video-comments",
  "method": "POST",
  "body": {
    "videoId": "jNQXAC9IVRw"
  },
  "dryRun": true
}
TASKFUEL_REQUEST
```

### 2. Run the request

Review amount_usd in the quote. To pay and run, change dryRun to false and add maxAmountUsd with that approved amount inside the same JSON object. Keep the inputs unchanged; this limit applies to one call.

### 3. Read the result

Read output.comments for text and counts, then output.nextPageToken for the next request.



[Setup and API reference](https://taskfuel.ai/docs/) · [Job polling and timeout recovery](https://app.taskfuel.ai/using.md)


## Connect your agent

Read the [setup guide](https://taskfuel.ai/docs/setup/) and choose the connection your agent supports.

Use one TaskFuel account and prepaid balance. Inspect the provider and request quote before a paid call, then review the returned response and recorded charge.



## When to use it

### Find recurring questions.

On both pages, viewers wondered why the recommendation had appeared years after the upload. Grouping questions by theme makes that pattern visible.

### Find a busy thread.

The zoo’s comment had 986 reported replies. The reply count identifies a thread for closer reading.




## Questions

### How do I read the next page?

Send the same video ID and the previous output.nextPageToken. Our second request returned another 20 comments for $0.0436. Viewers on both pages asked why YouTube had recommended the video years later.

### How much did this request cost?

The Fiber request cost $0.0436 on 25 November 2026. Your agent shows the price for your own request before it pays.

## Related tool guides

- [Youtube channel videos api](https://taskfuel.ai/tools/youtube-channel-videos-api/)
- [Youtube transcript api](https://taskfuel.ai/tools/youtube-transcript-api/)


## Reference

- [Read this guide on the website](https://taskfuel.ai/tools/youtube-comments-api/).
- [Browse providers and capabilities](https://taskfuel.ai/catalog/).
- [Pricing](https://taskfuel.ai/pricing/).
- [Agent instructions](https://taskfuel.ai/llms.txt).
