LinkedIn Scraping

Get LinkedIn Comment Data

POST /v1/linkedin/comment

#Request

curl -X POST https://scrapingapi.qoest.com/v1/linkedin/comment \
  -H "Authorization: Bearer your-token" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.linkedin.com/feed/update/urn:li:activity:7300000000000000000?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7300000000000000000%2C7300000000000000456%29"}'

#Parameters

Name Type Required Notes
url string yes A linkedin.com URL that contains a comment URN, plain or URL-encoded: urn:li:comment:(activity:<post id>,<comment id>) or urn:li:fsd_comment:(<comment id>,urn:li:activity:<post id>). Copy it from the comment's "Copy link to comment" option.

#Response

{
  "response": {
    "id": "7300000000000000456",
    "url": "https://www.linkedin.com/feed/update/urn:li:activity:7300000000000000000?commentUrn=...",
    "author": {
      "id": null,
      "username": "example-user",
      "name": "Example User",
      "profile_url": "https://www.linkedin.com/in/example-user",
      "avatar_url": "https://media.licdn.com/..."
    },
    "text": "Comment text",
    "published_at": "2026-01-01T12:00:00+00:00",
    "likes": 3
  }
}

Empty fields are left out.

#Pricing

3 credits per successful request (the comment's id and text were found).

#Errors

Status Body Charged
200 {"message": "This LinkedIn comment is private."} no
200 {"message": "This LinkedIn comment is not publicly accessible."} no
403 Not enough credits no
404 {"message": "LinkedIn comment not found."} no
422 The URL has no comment URN, or the comment could not be retrieved no
429 {"message": "Too many requests to LinkedIn."} no