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

# Fetch the comment thread on a LinkedIn post



## OpenAPI

````yaml /openapi.json post /linkedin/get-activity-comments
openapi: 3.1.0
info:
  title: Bridgly API
  description: >-
    Web scraping API for LinkedIn, X (Twitter) and Reddit. Authenticated
    endpoints accept a Bridgly API key (`bgly_…`) via `Authorization: Bearer
    <token>`.
  version: 1.0.0
servers:
  - url: https://api.bridgly.app
    description: Production
security: []
tags:
  - name: LinkedIn
    description: Scrape LinkedIn profiles, companies, posts, and search.
  - name: Reddit
    description: Scrape Reddit posts, subreddits, users, and search.
  - name: X (Twitter)
    description: Scrape tweets and search X.
paths:
  /linkedin/get-activity-comments:
    post:
      tags:
        - LinkedIn
      summary: Fetch the comment thread on a LinkedIn post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                activityUrn:
                  type: string
                  description: >-
                    The activity to fetch comments for — a
                    `urn:li:activity:<id>`, e.g.
                    "urn:li:activity:7300000000000000000".
                count:
                  description: Number of comments to return. Defaults to 50.
                  type: integer
                  minimum: 1
                  maximum: 9007199254740991
              required:
                - activityUrn
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  timeMs:
                    type: number
                    description: >-
                      Wall-clock time the request took to complete, in
                      milliseconds.
                  creditsCost:
                    type: number
                    description: Number of account credits this request consumed.
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        urn:
                          type: string
                        activityId:
                          type: string
                        commentId:
                          type: string
                        parentCommentId:
                          anyOf:
                            - type: string
                            - type: 'null'
                        text:
                          anyOf:
                            - type: string
                            - type: 'null'
                        authorName:
                          anyOf:
                            - type: string
                            - type: 'null'
                        createdTime:
                          anyOf:
                            - type: number
                            - type: 'null'
                        numLikes:
                          anyOf:
                            - type: number
                            - type: 'null'
                        numComments:
                          anyOf:
                            - type: number
                            - type: 'null'
                      required:
                        - urn
                        - activityId
                        - commentId
                        - parentCommentId
                        - text
                        - authorName
                        - createdTime
                        - numLikes
                        - numComments
                      additionalProperties: false
                required:
                  - timeMs
                  - creditsCost
                  - data
                additionalProperties: false
        '400':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '401':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '402':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
        '500':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                  message:
                    type: string
                    description: Human-readable description of what went wrong.
                required:
                  - status
                  - message
                additionalProperties: false
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        A Bridgly API key (`bgly_…`). Metered endpoints deduct credits from the
        resolved account.

````