LinkedIn Post Comments
List comments on a LinkedIn post — comment text, created date, author, like count, and reply count — with pagination, as JSON. Costs 4 credits.
POST/api/v1/linkedin/post/comments
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonpost_idstringrequiredThe post id or activity urn from the post URL.
Example: 7486820977411145728
cursorstringPagination cursor (page number) from a previous response. Keep passing it while has_more is true.
sort_orderstringComment sort order.
relevance— Most relevant comments first (default).recent— Most recent comments first.
post_typestringThe underlying post object type. Use activity for standard activity posts, or ugc for user-generated content posts.
activity— Standard activity post.ugc— User-generated content post.
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.linkedin.post_comments(post_id="7486820977411145728")
print(results)Response
"page": 1,
"next_cursor": "eyJwYWdpbmF0aW9uVG9rZW4iOiIyIn0=",
"has_more": true
},
"response_time": 3510,
"credits_used": 4,
"credits_remaining": 4706
}