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

# Get Comments

> Retrieve comments on a specific LinkedIn post

Get a detailed list of comments on a LinkedIn post, including information about who commented and the comment content.

<Note>
  **Credit Usage:** 1 credit per 10 results (or fraction thereof). For example:

  * 1-10 results = 1 credit
  * 11-20 results = 2 credits
  * 300 results = 30 credits
</Note>

### Header Parameters

<ParamField header="x-api-key" type="string" required>
  Your API key
</ParamField>

### Body Parameters

<ParamField body="post_url" type="string" required>
  URL of the LinkedIn post to extract comments from (supports feed/update and /posts/ formats)
</ParamField>

<ParamField body="total_results" type="integer" default="10">
  Number of comments to retrieve (used when not in pagination mode)
</ParamField>

<ParamField body="start_page" type="integer">
  First page to fetch when using pagination mode (default: 1)
</ParamField>

<ParamField body="end_page" type="integer">
  Last page to fetch when using pagination mode (default: same as start\_page)
</ParamField>

<ParamField body="country" type="string" default="FR">
  Country code for proxy selection. Available: (US, UK, FR, DE, NL, IT, IL, CA, BR, ES, IN)
</ParamField>

<ParamField body="login_token" type="string" required>
  LinkedIn authentication cookie obtained from the login/verify process
</ParamField>

### Response

<ResponseField name="status" type="string">
  Request status (success/error)
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="Properties">
    <ResponseField name="total_results" type="integer">
      Number of comments returned in this response
    </ResponseField>

    <ResponseField name="total_available_results" type="integer">
      Total number of comments available on the post
    </ResponseField>

    <ResponseField name="comments" type="array">
      <Expandable title="Comment Object">
        <ResponseField name="comment_text" type="string">
          The content of the comment
        </ResponseField>

        <ResponseField name="created_time" type="string">
          When the comment was made
        </ResponseField>

        <ResponseField name="actor" type="object">
          <Expandable title="Actor Properties">
            <ResponseField name="name" type="string">
              Full name of the person who commented
            </ResponseField>

            <ResponseField name="profile_url" type="string">
              LinkedIn profile URL of the commenter
            </ResponseField>

            <ResponseField name="profile_picture" type="string">
              URL of the commenter's profile picture (if available)
            </ResponseField>

            <ResponseField name="title" type="string">
              Professional headline or title
            </ResponseField>

            <ResponseField name="connection_degree" type="string">
              LinkedIn connection degree (1st, 2nd, 3rd)
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>

    <ResponseField name="pagination" type="object">
      <Expandable title="Pagination Object">
        <ResponseField name="start_page" type="integer">
          First page fetched in the current request
        </ResponseField>

        <ResponseField name="end_page" type="integer">
          Last page fetched in the current request
        </ResponseField>

        <ResponseField name="results_per_page" type="integer">
          Number of results per page (typically 50)
        </ResponseField>

        <ResponseField name="pages_fetched" type="integer">
          Total number of pages fetched in the current request
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "status": "success",
    "data": {
      "total_results": 2,
      "total_available_results": 683,
      "comments": [
        {
          "comment_urn": "urn:li:comment:(activity:7322605642718851072,7324246006802386944)",
          "tracking_id": "baQdBHtet4m5Rp7zeDWuDA==",
          "comment_text": "Sales",
          "created_time": 1746236325933,
          "commenter": {
            "name": "Roberto H Luna",
            "profile_urn": "urn:li:fsd_profile:ACoAAD9M79wBDEJoZuzFPHLMtdCMgmry9-AKriQ",
            "linkedin_url": "https://www.linkedin.com/in/robertohluna",
            "occupation": "I Build AI Agent Platforms & Workflows, That Automate Brands, Funnels & Operations | CEO @ Lunivate | Founder of Accelerants & OS Accelerator"
          }
        },
        {
          "comment_urn": "urn:li:comment:(activity:7322605642718851072,7324015073939673089)",
          "tracking_id": "qNArBJWZ5m0UjtlJx0n6Yg==",
          "comment_text": "Sales",
          "created_time": 1746181267248,
          "commenter": {
            "name": "Sasa Chereja",
            "profile_urn": "urn:li:fsd_profile:ACoAABqXJy0BiMsYYFf8kgjaTrhfhiSZ990fm3s",
            "linkedin_url": "https://www.linkedin.com/in/sasachereja",
            "occupation": "Scale Your Brand with High-Impact Video Content (600M+ Views Delivered)"
          }
        }
      ],
      "pagination": {
        "start_page": 1,
        "end_page": 1,
        "results_per_page": 50,
        "pages_fetched": 1
      }
    }
  }
  ```
</ResponseExample>

### Notes

* The API supports two post URL formats:
  * Feed updates: `https://www.linkedin.com/feed/update/urn:li:activity:...`
  * share url: `https://www.linkedin.com/posts/..`
* Results are paginated with a maximum of 50 comments per page
* The profile picture URL may be null if not available or if the user has no profile picture
* Connection degree shows your network relationship with the commenter (1st, 2nd, or 3rd degree connection)
* **Pagination Mode vs. Total Results Mode**:
  * **Total Results Mode**: Use the `total_results` parameter to specify how many comments you want (default)
  * **Pagination Mode**: Use `start_page` and `end_page` parameters to fetch specific pages of results
  * Credit usage in pagination mode is based on the number of pages fetched (1 credit per page)
  * When using pagination mode, `total_results` parameter is ignored
* The `total_available_results` field shows the total number of comments available on the post
* Some comment information may be limited based on:
  * Your connection level with the commenter
  * The commenter's privacy settings
  * The post's visibility settings
* Rate limits apply to comment retrieval requests
