i am unable to fetch the data using linkedin API

Sahil Singla 10 Reputation points
2023-08-25T10:17:17.37+00:00

always got the same problem like this as:

{
    "serviceErrorCode": 100,
    "message": "Not enough permissions to access: GET /people/(id:%7Bsahil-singla-5166ab238%7D)",
    "status": 403
}
Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,436 Reputation points Microsoft External Staff
    2023-08-28T02:17:57.3466667+00:00

    Hi, @Sahil Singla

    Thank you for posting in Microsoft Q&A forum.

    The error message you are receiving indicates that you do not have sufficient permissions to access the data you are trying to fetch using the LinkedIn API. Specifically, the error message states that you do not have enough permissions to access the GET /people/(id:%7Bsahil-singla-5166ab238%7D) endpoint. This error is likely caused by one of the following reasons:

    1. Your application has not been authorized and authenticated to access LinkedIn APIs. Applications must be authorized and authenticated before they can fetch data from LinkedIn or get access to member data. More information about authorization flows can be found in the LinkedIn API documentation.
    2. Your access token is invalid or has expired. Make sure you follow the authentication procedure to get a correct access token. If your access token has expired, you can refresh it using the authorization code flow.
    3. The member whose data you are trying to access has revoked your access to their data from their privacy settings on LinkedIn's website.

    To resolve this issue, you should check that your application has been authorized and authenticated to access LinkedIn APIs, and that you are using a valid and non-expired access token. If the issue persists, you may need to reach out to LinkedIn's technical support channel or refer to the LinkedIn API documentation for further assistance.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".


  2. kapil gupta 0 Reputation points
    2023-09-15T19:51:44.82+00:00

    i am hiting (with valid Authorization header)(My other post requests are working fine)
    GET https://api.linkedin.com/v2/socialActions/urn:li:ugcPost:7108519312067280897/likes

    but it is giving following response, please help ******@gmail.com

    {
        "serviceErrorCode": 100,
        "message": "Not enough permissions to access: GET /socialActions/urn:li:ugcPost:7108519312067280897/likes",
        "status": 403
    }
    

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.