LinkedIn Post Comments
Get the comments on a LinkedIn post as JSON - text, permalink, timestamp, the commenter and any nested replies. Paginated 10 per page. Provide `post_id` or `url`. Costs 10 credits per page.
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_idstringPost id or activity urn.
Example: 7488618410256523265
urlstringProvide post_id or url. Full LinkedIn post URL, as an alternative to post_id.
Example: https://www.linkedin.com/feed/update/urn:li:activity:7488618410256523265/
pagenumber1-based page number, 10 comments per page. Defaults to 1.
Example: 1
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
results = client.linkedin.post_comments(post_id="7488618410256523265", page=1)
print(results)Response
"page": 1,
"total": 19,
"has_more": true
},
"response_time": 1748,
"credits_used": 10,
"credits_remaining": 990
}