Get comments from a LinkedIn post
Posts
Get Post Comments
Fetch comments from a LinkedIn post with author information and replies
GET
Get comments from a LinkedIn post
Endpoint
Authentication
Include your API key in the request header:Parameters
LinkedIn post URL or URN.Examples:
https://www.linkedin.com/posts/username_some-post-slug-1234567890-abcdurn:li:activity:7287782484287606784urn:li:ugcPost:7287782484287606784
Number of comments to fetch per page.
- Minimum: 1
- Maximum: 100
- Default: 100
Offset for pagination.
- Default: 0
Token for fetching the next page of comments. Returned from previous request when more comments are available.
Response
Array of LinkedIn comments
Token for fetching the next page of comments. Only present when more comments are available.
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.400—MISSING_PARAMETER/INVALID_URN401—INVALID_API_KEY404—POST_NOT_FOUND429—RATE_LIMITED/QUOTA_EXHAUSTED500—INTERNAL_ERROR503—SERVICE_UNAVAILABLE
Pagination
To fetch all comments from a post with many comments, use pagination:- Make an initial request without
paginationToken - If
hasMoreistrue, use the returnedpaginationTokenin your next request - Continue until
hasMoreisfalse
Notes
This endpoint consumes 1 credit from your monthly quota per API call, regardless of the
count parameter value.Authorizations
Query Parameters
LinkedIn post URL or URN
Example:
"https://www.linkedin.com/posts/username_post-slug-1234567890-abcd"
Number of comments to fetch (default: 100)
Required range:
1 <= x <= 100Offset for pagination (default: 0)
Required range:
x >= 0Token for fetching the next page of comments