POST
/
v1
/
posts
/
extract-comments
curl --request POST \
  --url https://api.linkupapi.com/v1/posts/extract-comments \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '{
  "post_url": "<string>",
  "total_results": 123,
  "start_page": 123,
  "end_page": 123,
  "country": "<string>",
  "login_token": "<string>"
}'
{
  "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
    }
  }
}

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

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

Header Parameters

x-api-key
string
required

Your API key

Body Parameters

post_url
string
required

URL of the LinkedIn post to extract comments from (supports feed/update and /posts/ formats)

total_results
integer
default:"10"

Number of comments to retrieve (used when not in pagination mode)

start_page
integer

First page to fetch when using pagination mode (default: 1)

end_page
integer

Last page to fetch when using pagination mode (default: same as start_page)

country
string
default:"FR"

Country code for proxy selection. Available: (US,UK,FR)

login_token
string
required

LinkedIn authentication cookie obtained from the login/verify process

Response

status
string

Request status (success/error)

data
object
{
  "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
    }
  }
}

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