Get LinkedIn Post Comments
View all LinkedIn Data API endpoints →Supply post_id with optional post_type, page and sort_order. The documented data entries include id, urn, comment, commenter, created_at, num_replies, replies, previous_replies_token, reaction_counts and edit, pin or author flags. page, total and has_more describe the comment page. Retain parent comment IDs and returned reply continuation data when a separate request is needed for additional replies.
API Features
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
/api/project/linkedin-scraper/get-post-comments API Response (JSON)
{} curl -X GET 'https://api.opendata-api.com/api/project/linkedin-scraper/get-post-comments?key=<API_KEY>&post_id=<post_id>&page=1&post_type=activity&sort_order=relevance'
Query Result
Use Cases
- Prepare a human-reviewed feedback digest for a product-announcement post.
- Retain parent comment IDs when organizing a source-linked discussion review.
- Compare recent versus relevance-ordered discussion samples for an editorial brief.
- Identify comment threads needing a separate additional-replies request.
Frequently asked questions
How do I retrieve more replies for a comment?
Keep post_id, the returned comment id and previous_replies_token. Send those through get-comments-replies using its replies_cursor public input for the returned continuation value.
Which post_type and sort_order values are supported?
post_type supports activity or ugc and defaults to activity. sort_order supports relevance or recent and defaults to relevance. Preserve the selected post's type rather than guessing one for unrelated records.