> ## Documentation Index
> Fetch the complete documentation index at: https://docs.neuralverge.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# YouTube comments

> Get the comments and replies of a YouTube video: author, text, likes, reply count, creator heart and when it was posted. 2 point per returned record.



## OpenAPI

````yaml /openapi.json post /functions/v1/run-youtube-comments
openapi: 3.0.0
info:
  title: NeuralVerge API
  version: 1.0.0
  description: >-
    NeuralVerge API for AI research, search, extraction, and structured data
    source execution.
servers:
  - url: https://api.neuralverge.ai
    description: NeuralVerge API
security:
  - BearerAuth: []
tags:
  - name: AI Research
    description: Multi-step research workflows and the sessions they run in.
  - name: AI Extract
    description: Schema-driven extraction workflows.
  - name: Search
    description: Fast, synchronous web search with no session or polling.
  - name: Company intelligence
    description: Company profile lookups from company databases.
  - name: E-commerce & Marketplaces
    description: >-
      Product, seller, and review lookups on Amazon, eBay, Walmart, AliExpress,
      and Alibaba.
  - name: Enrichment
    description: Email and phone enrichment, validation, and discovery.
  - name: Product reviews
    description: >-
      Software and business reviews from Capterra, Gartner Peer Insights, and
      Trustpilot.
  - name: Social media
    description: LinkedIn profile, company, and people lookups.
  - name: Company Registries
    description: Company Registries data sources.
  - name: Startup & Funding Data
    description: Startup & Funding Data data sources.
  - name: Maps & Local Businesses
    description: Maps & Local Businesses data sources.
paths:
  /functions/v1/run-youtube-comments:
    post:
      tags:
        - Social media
      summary: YouTube comments
      description: >-
        Get the comments and replies of a YouTube video: author, text, likes,
        reply count, creator heart and when it was posted. 2 point per returned
        record.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  description: Video URL. e.g. https://www.youtube.com/watch?v=dQw4w9WgXcQ
                  type: string
                max_comments:
                  description: Max comments (up to 1000)
                  type: integer
                  minimum: 1
                  maximum: 1000
                  default: 20
                sort_by:
                  description: 'Sorting order. Options: TOP_COMMENTS = Top comments'
                  type: string
                  enum:
                    - TOP_COMMENTS
                newer_than:
                  description: >-
                    Only newer than (date or period; sorts newest first). e.g.
                    2026-01-01 or 30 days
                  type: string
              required:
                - url
            example:
              url: https://www.youtube.com/watch?v=dQw4w9WgXcQ
              max_comments: 2
      responses:
        '200':
          description: Run completed.
          content:
            application/json:
              example:
                session_id: 11111111-1111-1111-1111-111111111111
                kind: youtube_comments
                url: https://www.youtube.com/watch?v=dQw4w9WgXcQ
                max_comments: 2
                sort_by: NEWEST_FIRST
                newer_than: ''
                partial: false
                human: >-
                  # YouTube comments


                  - **Video:** video dQw4w9WgXcQ

                  - **Max comments:** 2

                  - **Sorting:** newest first

                  - **Records returned:** 2

                  - **Title:** Rick Astley - Never Gonna Give You Up (Official
                  Video) (4K Remaster) (2.5M comments in total)
                machine:
                  total_items: 2
                  items:
                    - id: UgwBG6IMzcTyXRAfX-B4AaABAg
                      type: comment
                      reply_to_id: null
                      author: '@Arared0002'
                      text: >-
                        I wonder how he's doing now/how much money he made from
                        this
                      published_time_text: 29 minutes ago
                      vote_count: 0
                      reply_count: 2
                      has_creator_heart: false
                      author_is_channel_owner: false
                      video_id: dQw4w9WgXcQ
                      video_url: https://www.youtube.com/watch?v=dQw4w9WgXcQ
                      video_title: >-
                        Rick Astley - Never Gonna Give You Up (Official Video)
                        (4K Remaster)
                      video_comments_count: 2460732
                    - id: UgwNjIn5PX_fZxu1lOR4AaABAg
                      type: comment
                      reply_to_id: null
                      author: '@marcopezzini7022'
                      text: 1,8 mld of visualization, 1,7 mld of trolling
                      published_time_text: 55 minutes ago
                      vote_count: 0
                      reply_count: 0
                      has_creator_heart: false
                      author_is_channel_owner: false
                      video_id: dQw4w9WgXcQ
                      video_url: https://www.youtube.com/watch?v=dQw4w9WgXcQ
                      video_title: >-
                        Rick Astley - Never Gonna Give You Up (Official Video)
                        (4K Remaster)
                      video_comments_count: 2460732
                  errors: []
                total_points: 4
              schema:
                type: object
                properties:
                  session_id:
                    type: string
                    description: Session identifier for this run.
                  kind:
                    type: string
                    description: Data source identifier for this endpoint.
                  url:
                    type: string
                  max_comments:
                    type: integer
                  sort_by:
                    type: string
                  newer_than:
                    type: string
                  partial:
                    type: boolean
                    description: >-
                      True when the scrape stopped early and returned the
                      records collected so far.
                  human:
                    type: string
                    description: Markdown summary of the result, for display.
                  machine:
                    type: object
                    properties:
                      total_items:
                        type: integer
                      items:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                            type:
                              type: string
                            reply_to_id: {}
                            author:
                              type: string
                            text:
                              type: string
                            published_time_text:
                              type: string
                            vote_count:
                              type: integer
                            reply_count:
                              type: integer
                            has_creator_heart:
                              type: boolean
                            author_is_channel_owner:
                              type: boolean
                            video_id:
                              type: string
                            video_url:
                              type: string
                            video_title:
                              type: string
                            video_comments_count:
                              type: integer
                      errors:
                        type: array
                        items: {}
                    description: Structured result payload.
                  total_points:
                    type: integer
                    description: Points charged for this run.
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '402':
          description: Payment Required
        '500':
          description: Internal Error
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.