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 of the first comment to return. This is how you page this endpoint: advance start by the number of comments you received.
  • Default: 0
string
Returned for continuity with the other endpoints. It does not advance this thread — page with start.

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

This endpoint pages by offset:
  1. Make an initial request with start=0
  2. If hasMore is true, add the number of comments you received to start
  3. Continue until hasMore is false or a page comes back empty
A page can be much shorter than count and still not be the last one — the first page of a busy thread often returns a handful of comments while hundreds remain. Trust hasMore, not the number of items returned.

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 of the first item to return. This endpoint pages by offset: advance start by the number of items you received. Keep requesting while hasMore is true; an empty page ends the list.

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