> ## 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.

# Facebook comments

> Comments on public Facebook posts, photos, videos and reels: text, date, author, likes and replies count, with optional replies up to 3 levels deep. 5 point per returned record.



## OpenAPI

````yaml /openapi.json post /functions/v1/run-facebook-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-facebook-comments:
    post:
      tags:
        - Social media
      summary: Facebook comments
      description: >-
        Comments on public Facebook posts, photos, videos and reels: text, date,
        author, likes and replies count, with optional replies up to 3 levels
        deep. 5 point per returned record.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                url:
                  description: >-
                    Post, photo, video or reel URL. e.g.
                    https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl
                  type: string
                max_items:
                  description: Max comments (up to 1000)
                  type: integer
                  minimum: 1
                  maximum: 1000
                  default: 50
                sort:
                  description: >-
                    Comments mode. Options: RANKED_UNFILTERED = All,
                    RANKED_THREADED = Most relevant, RECENT_ACTIVITY = Newest
                  type: string
                  enum:
                    - RANKED_UNFILTERED
                    - RANKED_THREADED
                    - RECENT_ACTIVITY
                  default: RANKED_UNFILTERED
                newer_than:
                  description: >-
                    Comments newer than (date or period). e.g. 2024-01-01 or 3
                    months
                  type: string
                include_replies:
                  description: Include comment replies (each reply is a result)
                  type: boolean
              required:
                - url
            example:
              url: >-
                https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl
              max_items: 2
      responses:
        '200':
          description: Run completed.
          content:
            application/json:
              example:
                session_id: 11111111-1111-1111-1111-111111111111
                kind: facebook_comments
                url: >-
                  https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl
                max_items: 2
                include_replies: false
                sort: RANKED_UNFILTERED
                newer_than: ''
                partial: false
                human: >-
                  # Facebook comments


                  - **Post:**
                  humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl

                  - **Max comments:** 2

                  - **Sorting:** RANKED_UNFILTERED

                  - **Records returned:** 2
                machine:
                  total_items: 2
                  items:
                    - id: '354937476306913'
                      url: >-
                        https://www.facebook.com/humansofnewyork/posts/pfbid02F3oUSMSz1n1QQeZPWbyJVuFT9qTTwAF8rjUnGoFqchtNj4eb8tfziu8qAnzkKWZel?comment_id=354937476306913
                      text: >-
                        This is so inspiring and an example of one drop turning
                        into a wave.
                      date: '2021-08-15T19:56:39.000Z'
                      author_id: >-
                        pfbid02A6uZowm3Bmf6KodwuzPTUoSuDMUcTe75vKBhMuerZskhva1D2rGpEiBdFa31PFWKl
                      author_name: Linda Josey
                      author_url: null
                      author_picture_url: >-
                        https://scontent.fwbw1-1.fna.fbcdn.net/v/t39.30808-1/628945932_26322496050667653_3192206021497894358_n.jpg?stp=cp6_dst-jpg_tt6&cstp=mx1024x1025&ctp=s32x32&_nc_cat=102&_nc_map=urlgen_bucketless&ccb=1-7
                      likes_count: 8
                      replies_count: null
                      depth: 0
                      reply_to_comment_id: null
                      attachments: []
                      post_url: >-
                        https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl
                      post_title: >-
                        (2/3) “I knew nothing about gardening. But I knew how to
                        google, so I looked up some easy stuff to plant. Turns
                        out it’s hard to mess up herbs. So I went to the
                        clearance rack at Home Depot and got so
                    - id: '354938439640150'
                      url: >-
                        https://www.facebook.com/humansofnewyork/posts/pfbid02F3oUSMSz1n1QQeZPWbyJVuFT9qTTwAF8rjUnGoFqchtNj4eb8tfziu8qAnzkKWZel?comment_id=354938439640150
                      text: >-
                        This made me cry. What an incredible example of being
                        available and listening until the need makes itself
                        known.
                      date: '2021-08-15T19:59:07.000Z'
                      author_id: >-
                        pfbid02RxM5eCsd8eP36Poayh99pr4SWSVUeUYJTaKzCMYpfpN3Q81Gg69LZNw9ciJTH9nZl
                      author_name: Rachele Stoops
                      author_url: null
                      author_picture_url: >-
                        https://scontent.fabe1-1.fna.fbcdn.net/v/t39.30808-1/731443811_10164727395944176_920232383359063505_n.jpg?stp=c0.0.721.721a_cp0_dst-jpg_tt6&cstp=mx721x721&ctp=s32x32&_nc_cat=111&_nc_map=urlgen_bucketl
                      likes_count: 9
                      replies_count: null
                      depth: 0
                      reply_to_comment_id: null
                      attachments: []
                      post_url: >-
                        https://www.facebook.com/humansofnewyork/posts/pfbid0BbKbkisExKGSKuhee9a7i86RwRuMKFC8NSkKStB7CsM3uXJuAAfZLrkcJMXxhH4Yl
                      post_title: >-
                        (2/3) “I knew nothing about gardening. But I knew how to
                        google, so I looked up some easy stuff to plant. Turns
                        out it’s hard to mess up herbs. So I went to the
                        clearance rack at Home Depot and got so
                  errors: []
                total_points: 10
              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_items:
                    type: integer
                  include_replies:
                    type: boolean
                  sort:
                    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
                            url:
                              type: string
                            text:
                              type: string
                            date:
                              type: string
                            author_id:
                              type: string
                            author_name:
                              type: string
                            author_url: {}
                            author_picture_url:
                              type: string
                            likes_count:
                              type: integer
                            replies_count: {}
                            depth:
                              type: integer
                            reply_to_comment_id: {}
                            attachments:
                              type: array
                              items: {}
                            post_url:
                              type: string
                            post_title:
                              type: string
                      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.