Wahab Ahmed
Wahab Ahmed

Reputation: 187

Is it possible to get all Linkedin Profile Posts with Linkedin Api

I am trying to use linkedin API for showing the feeds of my profile what i have posted from the day first. posts include media, images, video etc. I would like to know is there any Api available for that where i can pass some parameter and get all posts of my linkedin Profile. Please help if anyone have done this before

Thanks!!

Upvotes: 10

Views: 29398

Answers (3)

Addarsh Chandrasekar
Addarsh Chandrasekar

Reputation: 578

I don't think this is possible any longer since you need the r_member_social permission to retrieve posts using the LinkedIn Posts API and it looks like r_member_social is a closed permission as of March 15, 2024.

Upvotes: 2

Sandeep Bhat
Sandeep Bhat

Reputation: 9

You can use the official linkedin api documentation to get all your posts id , then using that you can retrieve more information. Refer https://learn.microsoft.com/en-us/linkedin/marketing/integrations/community-management/shares/ugc-post-api?tabs=http

Upvotes: -2

Matteo
Matteo

Reputation: 39370

You can Retrieve Shares with the api using the person id:

curl  -X GET \
   -H "Authorization:Bearer token<>" \
 'https://api.linkedin.com/v2/shares?q=owners&owners=urn:li:person:{id}'

You can retrieve the person id with the Retrieve Authenticated Member's Profile API

 curl  -X GET \
   -H "Authorization:Bearer <token>" \
 'https://api.linkedin.com/v2/me?projection=(id)'

Hope this help

Upvotes: 10

Related Questions