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

# LinkedIn Post with Public Comments

> Read public LinkedIn post text plus its visible top-level comments from a full HTTPS /posts/ URL containing the activity ID. Live verification returned 10 comments. This is a bounded public window, not the full discussion: comments_complete is false and the post comment count can exceed returned_comment_count. Comment IDs, reply threads, media, avatars, sorting, pagination, and reaction breakdowns are unavailable and remain null. Dates are source-reported. Feed-update URN URLs are not resolved by this adapter; use the full public post URL. A live success costs 5 credits. Invalid options fail before provider access and have no net charge.

Read public LinkedIn post text plus its visible top-level comments from a full HTTPS /posts/ URL containing the activity ID. Live verification returned 10 comments. This is a bounded public window, not the full discussion: comments\_complete is false and the post comment count can exceed returned\_comment\_count. Comment IDs, reply threads, media, avatars, sorting, pagination, and reaction breakdowns are unavailable and remain null. Dates are source-reported. Feed-update URN URLs are not resolved by this adapter; use the full public post URL. A live success costs 5 credits. Invalid options fail before provider access and have no net charge.

[Source documentation](https://docs.scrapebadger.com/api-reference/endpoint/linkedin/get-post).


## OpenAPI

````yaml GET /linkedin/post/with-comments
openapi: 3.1.0
info:
  title: SocialQuery API
  version: '2026-10-09'
  description: >-
    Documented requests for public-source records. Inspect accepted inputs and
    credit amounts, then verify the selected operation before integrating
    preview coverage.
servers:
  - url: https://socialquery.dev/v1
security:
  - apiKey: []
paths:
  /linkedin/post/with-comments:
    get:
      tags:
        - LinkedIn
      summary: LinkedIn Post With Comments
      description: >-
        Read public LinkedIn post text plus its visible top-level comments from
        a full HTTPS /posts/ URL containing the activity ID. Live verification
        returned 10 comments. This is a bounded public window, not the full
        discussion: comments_complete is false and the post comment count can
        exceed returned_comment_count. Comment IDs, reply threads, media,
        avatars, sorting, pagination, and reaction breakdowns are unavailable
        and remain null. Dates are source-reported. Feed-update URN URLs are not
        resolved by this adapter; use the full public post URL. A live success
        costs 5 credits. Invalid options fail before provider access and have no
        net charge.
      operationId: get_linkedin_post_with_comments
      parameters:
        - name: url
          in: query
          required: true
          example: >-
            https://www.linkedin.com/feed/update/urn:li:activity:7501466755261820928
          schema:
            type: string
          description: >-
            Full public HTTPS LinkedIn /posts/ URL containing the activity ID;
            feed-update URN URLs are unsupported.
        - name: Cache-Control
          in: header
          required: false
          example: no-cache
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: false
          example: 7a5e1b4c-2d8f-4a3b-9c1e-6e8b4d2a1f3c
          schema:
            type: string
        - name: X-Max-Credits
          in: header
          required: false
          description: >-
            Optional nonnegative integer cap on the maximum request hold. A live
            request whose hold exceeds this cap returns 422
            CREDIT_BUDGET_EXCEEDED before spending. Metered holds use the
            requested limit; cache hits and successful idempotent replays cost
            zero.
          schema:
            type: integer
            minimum: 0
      responses:
        '200':
          description: >-
            Read public LinkedIn post text plus its visible top-level comments
            from a full HTTPS /posts/ URL containing the activity ID. Live
            verification returned 10 comments. This is a bounded public window,
            not the full discussion: comments_complete is false and the post
            comment count can exceed returned_comment_count. Comment IDs, reply
            threads, media, avatars, sorting, pagination, and reaction
            breakdowns are unavailable and remain null. Dates are
            source-reported. Feed-update URN URLs are not resolved by this
            adapter; use the full public post URL. A live success costs 5
            credits. Invalid options fail before provider access and have no net
            charge.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/SocialQueryResponse'
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          post:
                            type: object
                            properties:
                              id:
                                type: string
                              url:
                                type: string
                              content:
                                type: object
                                properties:
                                  text:
                                    type: string
                                  media_urls:
                                    type: 'null'
                                  thumbnail_url:
                                    type: 'null'
                                  duration_seconds:
                                    type: 'null'
                              author:
                                type: object
                                properties:
                                  username:
                                    type:
                                      - string
                                      - 'null'
                                  display_name:
                                    type: string
                                  url:
                                    type:
                                      - string
                                      - 'null'
                                  avatar_url:
                                    type: 'null'
                                  verified:
                                    type: 'null'
                              engagement:
                                type: object
                                properties:
                                  views:
                                    type: 'null'
                                  likes:
                                    type:
                                      - integer
                                      - 'null'
                                  comments:
                                    type:
                                      - integer
                                      - 'null'
                                  shares:
                                    type: 'null'
                                  saves:
                                    type: 'null'
                              published_at:
                                type:
                                  - string
                                  - 'null'
                              ext:
                                type: object
                                properties:
                                  activity_urn:
                                    type: string
                          comments:
                            type: array
                            items:
                              type: object
                              properties:
                                comment:
                                  type: object
                                  properties:
                                    id:
                                      type: 'null'
                                    parent_id:
                                      type: 'null'
                                    text:
                                      type: string
                                    author:
                                      type: object
                                      properties:
                                        username:
                                          type:
                                            - string
                                            - 'null'
                                        display_name:
                                          type: string
                                        url:
                                          type:
                                            - string
                                            - 'null'
                                        avatar_url:
                                          type: 'null'
                                        verified:
                                          type: 'null'
                                    engagement:
                                      type: object
                                      properties:
                                        likes:
                                          type:
                                            - integer
                                            - 'null'
                                        replies:
                                          type: 'null'
                                    published_at:
                                      type:
                                        - string
                                        - 'null'
                                    replies:
                                      type: 'null'
                                    ext:
                                      type: object
                                      properties:
                                        pinned:
                                          type: 'null'
                                        edited:
                                          type: 'null'
                                        reaction_counts:
                                          type: 'null'
                          returned_comment_count:
                            type: integer
                          comments_complete:
                            type: boolean
                            const: false
                          next_cursor:
                            type: 'null'
                          source:
                            type: string
                          coverage_note:
                            type: string
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '402':
          $ref: '#/components/responses/Error402'
        '403':
          $ref: '#/components/responses/Error403'
        '404':
          $ref: '#/components/responses/Error404'
        '405':
          $ref: '#/components/responses/Error405'
        '409':
          $ref: '#/components/responses/Error409'
        '422':
          $ref: '#/components/responses/Error422'
        '429':
          $ref: '#/components/responses/Error429'
        '500':
          $ref: '#/components/responses/Error500'
        '502':
          $ref: '#/components/responses/Error502'
        '503':
          $ref: '#/components/responses/Error503'
        '504':
          $ref: '#/components/responses/Error504'
components:
  schemas:
    SocialQueryResponse:
      type: object
      required:
        - success
        - platform
        - endpoint
        - credits_used
        - credits_remaining
        - request_id
        - cached
        - data
      properties:
        success:
          type: boolean
          const: true
        platform:
          type: string
        endpoint:
          type: string
        credits_used:
          type: integer
          minimum: 0
        credits_remaining:
          type:
            - integer
            - 'null'
        request_id:
          type: string
        cached:
          type: boolean
        data:
          type: object
          additionalProperties: true
          description: >-
            The selected operation determines the resource fields in this
            object. Source data can omit a metric or report it as null.
    SocialQueryError:
      type: object
      required:
        - success
        - platform
        - endpoint
        - credits_used
        - credits_remaining
        - request_id
        - cached
        - error
      properties:
        success:
          type: boolean
          const: false
        platform:
          type: string
        endpoint:
          type: string
        credits_used:
          type: integer
          minimum: 0
        credits_remaining:
          type:
            - integer
            - 'null'
        request_id:
          type: string
        cached:
          type: boolean
        error:
          type: object
          required:
            - code
            - type
            - message
            - status
            - doc_url
          properties:
            code:
              type: string
            type:
              type: string
            message:
              type: string
            status:
              type: integer
            doc_url:
              type: string
              format: uri
  responses:
    Error400:
      description: Upstream rejected the request.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error401:
      description: Missing, expired, invalid, or revoked API key.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error402:
      description: Insufficient SocialQuery credits.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error403:
      description: Key scope or provider policy denied access.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error404:
      description: Endpoint or upstream resource not found.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error405:
      description: HTTP method is not supported.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error409:
      description: Idempotency conflict or request in progress.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error422:
      description: Invalid parameters.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error429:
      description: Request limit reached.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error500:
      description: Request processing failed.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error502:
      description: Upstream service failed.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error503:
      description: Provider or required service is unavailable.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
    Error504:
      description: Upstream service timed out.
      headers:
        X-Request-Id:
          schema:
            type: string
        X-Credits-Used:
          schema:
            type: integer
        X-Credits-Remaining:
          schema:
            type: string
        X-Cache:
          schema:
            type: string
            enum:
              - HIT
              - MISS
              - BYPASS
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/SocialQueryError'
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````

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