# YouTube — Comments

Get YouTube video comments data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by ScrapeCreators, pass parameters such as continuationToken, order, url, and retrieve structured data including content, identifier, author context, returned engagement field, and returned published time field for content research and account lookup, and integration reference.

Documentation: https://openany.si/youtube/youtube-video-comments-9146839e/510ee6e9-7451-431b-89de-dd69a89daf3c/
API ID: 510ee6e9-7451-431b-89de-dd69a89daf3c
Provider: scrapecreators
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/scrapecreators/v1/youtube/video/comments
Page update time: 2026-12-03T02:53:55.392Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00188 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:53:55.235Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "1880",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## YouTube — Comments API

Retrieve comments and replies from a YouTube video, including each comment's text content, author details, like count, reply count, and publish date. Provide url in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `comments[].content` | Content |
| `comments[].id` | Identifier |
| `comments[].author` | Author context |
| `comments[].engagement` | Returned engagement field |
| `comments[].publishedTime` | Returned published time field |
| `comments[].publishedTimeText` | Returned published time text field |
| `comments[].<key>` | Returned field |
| `comments[].replyLevel` | Returned reply level field |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "YouTube — Comments request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "YouTube video URL"
        },
        "continuationToken": {
          "type": "string",
          "description": "Continuation token to get more comments. Get 'continuationToken' from previous response."
        },
        "order": {
          "type": "string",
          "description": "Order of comments",
          "enum": [
            "top",
            "newest"
          ]
        }
      },
      "required": [
        "url"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "comments": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "author": {
            "type": "object",
            "properties": {
              "avatarUrl": {
                "type": "string"
              },
              "channelId": {
                "type": "string"
              },
              "channelUrl": {
                "type": "string"
              },
              "isCreator": {
                "type": "boolean"
              },
              "isVerified": {
                "type": "boolean"
              },
              "name": {
                "type": "string"
              }
            }
          },
          "content": {
            "type": "string"
          },
          "engagement": {
            "type": "object",
            "properties": {
              "likes": {
                "type": "integer"
              },
              "replies": {
                "type": "integer"
              }
            }
          },
          "id": {
            "type": "string"
          },
          "publishedTime": {
            "type": "string"
          },
          "publishedTimeText": {
            "type": "string"
          },
          "repliesContinuationToken": {
            "type": "string"
          },
          "replyLevel": {
            "type": "integer"
          }
        }
      }
    },
    "continuationToken": {
      "type": "string"
    },
    "credits_charged": {
      "type": "integer"
    },
    "credits_remaining": {
      "type": "integer"
    },
    "success": {
      "type": "boolean"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/scrapecreators/v1/youtube/video/comments?continuationToken=4qmFsgKrCBIYVUNkRkpXVWE0M3NtUm00SXBIQnB&order=top&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "comments": [
    {
      "author": {
        "avatarUrl": "https://yt3.ggpht.com/ytc/AIdro_lQ_2v9lDqwRrmdvEBfDNyFOvgQICl68X6WFkwZ5KI=s88-c-k-c0x00ffffff-no-rj",
        "channelId": "UC8JC3uSUmmXTCTKl-bgr1DA",
        "channelUrl": "https://youtube.com/@SimonT80",
        "isCreator": false,
        "isVerified": false,
        "name": "@SimonT80"
      },
      "content": "I love how in the middle he said \"I've been able to work with 2 great coaches... Pete and Coach Tomlin\"... Side shade to Coach Sean Payton, love it :)",
      "engagement": {
        "likes": 110,
        "replies": 5
      },
      "id": "UgwVfRopfS2F-WB3aF14AaABAg",
      "publishedTime": "2025-01-23T23:14:02.948Z",
      "publishedTimeText": "9 days ago",
      "repliesContinuationToken": "Eg0SC2RRdzR3OVdnWGNRGAYy1AEK...",
      "replyLevel": 0
    }
  ],
  "continuationToken": "Eg0SCzVFV2F4bVd....",
  "credits_charged": 1,
  "credits_remaining": 1000000,
  "success": true
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide url in query (string). Keep identifiers and URLs in the formats documented for this implementation.

### Which values can I use for order?
The selected schema accepts top, newest. Keep the documented string type and exact spelling for this input.

### Where do URL parameters belong?
Use the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- scrapecreators: https://openany.si/youtube/youtube-video-comments-9146839e/510ee6e9-7451-431b-89de-dd69a89daf3c/
- tikhub: https://openany.si/youtube/youtube-video-comments-9146839e/f1f15694-965e-479f-a95f-f3a8662aaf33/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
