Skip to content

Commit 90209fc

Browse files
docs: add post comments enrichment endpoint documentation (#26)
* docs: add post comments enrichment endpoint documentation Co-Authored-By: Adil <[email protected]> * docs: update post comments response format to show CommentActivity structure - Replace raw Voyager API response format with structured CommentActivity objects - Show proper field names: comment_urn, text, permalink, created_at, author, reaction_breakdown - Include pagination and source information in response - Use fictional data following documentation guidelines Co-Authored-By: Adil <[email protected]> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Adil <[email protected]>
1 parent 4178a1f commit 90209fc

File tree

1 file changed

+86
-0
lines changed

1 file changed

+86
-0
lines changed

source/includes/_enrichment.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,3 +672,89 @@ sales_nav_url | The link to the Sales Navigator profile for the company
672672
Parameter | Description
673673
--------- | -----------
674674
viewer_id | The LinkedIn ID of the account you would like to view this organisation as
675+
# Post Comments
676+
677+
Get comments for a LinkedIn post by URN.
678+
679+
## HTTP Request
680+
681+
`GET https://api.lix-it.com/v1/enrich/post/comments`
682+
683+
## Query Parameters
684+
685+
Parameter | Default | Description
686+
--------- | ------- | -----------
687+
post_urn | | **Required.** The LinkedIn post URN.
688+
viewer_id | | The LinkedIn viewer ID.
689+
start | 0 | Starting index for pagination.
690+
pagination_token | | Token for pagination continuation.
691+
692+
## Response
693+
694+
> The above command returns JSON structured like this:
695+
696+
```json
697+
{
698+
"comments": [
699+
{
700+
"comment_urn": "urn:li:comment:123456789",
701+
"text": "Great insights! Thanks for sharing this valuable information.",
702+
"permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7123456789012345678?commentUrn=urn:li:comment:123456789",
703+
"created_at": "2024-01-15T10:30:00Z",
704+
"post_urn": "urn:li:activity:7123456789012345678",
705+
"num_reactions": 5,
706+
"num_replies": 2,
707+
"author": {
708+
"name": "Jane Smith",
709+
"link": "https://www.linkedin.com/in/janesmith",
710+
"li_id": "jane-smith-123",
711+
"headline": "Senior Software Engineer at TechCorp",
712+
"profile_image_url": "https://media.licdn.com/dms/image/example/profile.jpg"
713+
},
714+
"reaction_breakdown": [
715+
{
716+
"reaction_type": "LIKE",
717+
"count": 3
718+
},
719+
{
720+
"reaction_type": "INSIGHTFUL",
721+
"count": 2
722+
}
723+
]
724+
},
725+
{
726+
"comment_urn": "urn:li:comment:987654321",
727+
"text": "I completely agree with your analysis. This trend is definitely worth watching.",
728+
"permalink": "https://www.linkedin.com/feed/update/urn:li:activity:7123456789012345678?commentUrn=urn:li:comment:987654321",
729+
"created_at": "2024-01-14T16:30:00Z",
730+
"post_urn": "urn:li:activity:7123456789012345678",
731+
"num_reactions": 3,
732+
"num_replies": 1,
733+
"author": {
734+
"name": "John Doe",
735+
"link": "https://www.linkedin.com/in/johndoe",
736+
"li_id": "john-doe-456",
737+
"headline": "Product Manager at InnovateCorp",
738+
"profile_image_url": "https://media.licdn.com/dms/image/example/profile2.jpg"
739+
},
740+
"reaction_breakdown": [
741+
{
742+
"reaction_type": "LIKE",
743+
"count": 2
744+
},
745+
{
746+
"reaction_type": "CELEBRATE",
747+
"count": 1
748+
}
749+
]
750+
}
751+
],
752+
"paging": {
753+
"total": 15,
754+
"start": 0,
755+
"count": 10
756+
},
757+
"pagination_token": "AQEDAQEDARIAAAFnY2VkZWY...",
758+
"source": "LINKEDIN_API"
759+
}
760+
```

0 commit comments

Comments
 (0)