Skip to main content
POST
/
api
/
linkedin
/
post
/
comments
/linkedin/post/comments
curl --request POST \
  --url https://api.anysite.io/api/linkedin/post/comments \
  --header 'Content-Type: application/json' \
  --header 'access-token: <access-token>' \
  --data '{
  "timeout": 300,
  "urn": "urn:li:activity:7235504557777174528",
  "sort": "recent",
  "count": 123
}'
[
  {
    "@type": "LinkedinPostComment",
    "urn": {
      "type": "fsd_company",
      "value": "<string>"
    },
    "url": "<string>",
    "text": "<string>",
    "author": {
      "@type": "LinkedinPostCommentUser",
      "internal_id": {
        "type": "fsd_company",
        "value": "<string>"
      },
      "urn": {
        "type": "fsd_company",
        "value": "<string>"
      },
      "name": "<string>",
      "alias": "<string>",
      "url": "<string>",
      "headline": "<string>"
    },
    "created_at": 123,
    "is_commenter_post_author": true,
    "comment_count": 123,
    "reactions": [
      {
        "@type": "LinkedinReaction",
        "type": "like",
        "count": 123
      }
    ],
    "parent": {
      "type": "fsd_company",
      "value": "<string>"
    }
  }
]

Headers

access-token
string
required

Body

application/json
urn
object
required

Post URN, only activity urn type is allowed

count
integer
required

Max result count

Required range: x > 0
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
sort
enum<string>

Sort type. Relevance might not return all results

Available options:
relevance,
recent

Response

Successful Response

urn
object
required
url
string
required
text
string
required
author
object
required
created_at
integer
required
is_commenter_post_author
boolean
required
@type
string
default:LinkedinPostComment
comment_count
integer | null
reactions
LinkedinReaction · object[] | null
parent
object | null
I