Linkedin API to get a data from a personal account

Hello guys!

I would like to connect my own personal Linkedin account via API to get a data eg. notifications, reactions and comments under my posts and comments.

Is it possible? I am struggling with it from some time with no results. It seems that this is not possible but I believe that it is possible.

I will be grateful for help.

Thank you in advance,
Kamil

Yes, you can connect your LinkedIn account via the API to fetch data such as comments on your posts. Here’s a simplified process to get started:

  1. Create a LinkedIn App: Register an app on the LinkedIn Developer Portal.

  2. Authentication: Use OAuth 2.0 to get an access token. Here’s the OAuth flow:

    • Get Authorization Code:
      https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id={Client_ID}&redirect_uri={Redirect_URI}&scope=r_liteprofile%20r_emailaddress%20w_member_social
      
    • Get Access Token:
      POST https://www.linkedin.com/oauth/v2/accessToken
      Content-Type: application/x-www-form-urlencoded
      
      grant_type=authorization_code&code={Authorization_Code}&redirect_uri={Redirect_URI}&client_id={Client_ID}&client_secret={Client_Secret}
      
  3. Fetch Comments: ( For Example )
    Use the access token to make API requests:

    GET https://api.linkedin.com/v2/socialActions/{shareUrn|ugcPostUrn}/comments
    Authorization: Bearer {Access_Token}
    
  4. Automate with Make (Integromat):

    • HTTP Module: Set up a GET request to the LinkedIn API endpoint.
    • JSON Module: Parse the response to extract comment data.
    • Database Module: Store or process the extracted data.

For detailed API documentation, refer to the LinkedIn Comments API.