Skip to main content
GET
Get comments from a post

Endpoint

Authentication

Include your API key in the request header:

Parameters

string
required
Professional post URL or URN.Examples:
  • https://www.linkedin.com/posts/username_some-post-slug-1234567890-abcd
  • urn:li:activity:7287782484287606784
  • urn:li:ugcPost:7287782484287606784
integer
default:"100"
Number of comments to fetch per page.
  • Minimum: 1
  • Maximum: 100
  • Default: 100
integer
default:"0"
Offset for pagination.
  • Default: 0
string
Token for fetching the next page of comments. Returned from previous request when more comments are available.

Response

array
Array of professional comments
string
Token for fetching the next page of comments. Only present when more comments are available.
boolean
Indicates whether there are more comments to fetch.

Example Request

Example Response

Errors

See Error Handling for the full list of error codes and recommended handling.
  • 400MISSING_PARAMETER / INVALID_URN
  • 401INVALID_API_KEY
  • 404POST_NOT_FOUND
  • 402QUOTA_EXHAUSTED
  • 429RATE_LIMITED
  • 500INTERNAL_ERROR
  • 503SERVICE_UNAVAILABLE

Pagination

To fetch all comments from a post with many comments, use pagination:
  1. Make an initial request without paginationToken
  2. If hasMore is true, use the returned paginationToken in your next request
  3. Continue until hasMore is false

Notes

This endpoint consumes 1 credit from your monthly quota per API call, regardless of the count parameter value.
Comments are returned in relevance order by default. Each comment includes its replies (subcomments) nested within.
Use the paginationToken to efficiently paginate through large comment sections without re-fetching already retrieved comments.

Authorizations

X-API-Key
string
header
required

Query Parameters

postUrlOrUrn
string
required

Professional post URL or URN

Example:

"https://www.linkedin.com/posts/username_post-slug-1234567890-abcd"

count
integer
default:100

Number of comments to fetch (default: 100)

Required range: 1 <= x <= 100
start
integer
default:0

Offset for pagination (default: 0)

Required range: x >= 0
paginationToken
string

Token for fetching the next page of comments

Response

Successfully fetched comments

comments
object[]
paginationToken
string

Token for fetching the next page

hasMore
boolean

Whether more comments are available