TubeGrade Comments API

The Comments API from TubeGrade, for comments.

GitHub OpenAPI

Operations 3

GET /comments Get Comments #
POST /comments/continue Post Comments Continue #
GET /v1/videos/{video_id}/comments Get Comments #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/tubegrade-com:tubegrade-com-comments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

tubegrade-com-comments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fast Comments API
  version: 0.1.0
tags:
- name: Comments
paths:
  /comments:
    get:
      summary: Get Comments
      description: 'Scrape top-level comments for a video via InnerTube.


        Query params:

        video_id - 11-char YouTube video id (required)

        limit - max comments (default 20, max COMMENTS_MAX_LIMIT)

        sort_by - ''top'' (default) or ''newest'''
      operationId: get_comments_comments_get
      parameters:
      - name: video_id
        in: query
        required: true
        schema:
          type: string
          title: Video Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 20
          title: Limit
      - name: sort_by
        in: query
        required: false
        schema:
          type: string
          default: top
          title: Sort By
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Comments
  /comments/continue:
    post:
      summary: Post Comments Continue
      description: Follow a continuation token returned by GET /comments.
      operationId: post_comments_continue_comments_continue_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Body_post_comments_continue_comments_continue_post'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      tags:
      - Comments
  /v1/videos/{video_id}/comments:
    get:
      tags:
      - Comments
      summary: Get Comments
      description: Scrape a video's top-level comments via InnerTube. Returns author, text, like count, reply count and timestamp per comment. Use `sort` to switch between 'top' and 'newest'. Replies are not fetched.
      operationId: get_comments_v1_videos__video_id__comments_get
      parameters:
      - name: video_id
        in: path
        required: true
        schema:
          type: string
          title: Video Id
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 100
          minimum: 1
          description: Max comments
          default: 20
          title: Limit
        description: Max comments
      - name: sort
        in: query
        required: false
        schema:
          type: string
          pattern: ^(top|newest)$
          description: '''top'' or ''newest'''
          default: top
          title: Sort
        description: '''top'' or ''newest'''
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Top-level comments for the video
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Get Comments V1 Videos  Video Id  Comments Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    Body_post_comments_continue_comments_continue_post:
      properties:
        token:
          type: string
          title: Token
        limit:
          type: integer
          title: Limit
          default: 20
      type: object
      required:
      - token
      title: Body_post_comments_continue_comments_continue_post
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError