Good day.
I want to view data of other users via the API, perform user searches, and view their posts. What am I doing wrong?
I have obtained an Access Token here: https://www.linkedin.com/developers/tools/oauth/token-generator?clientId=789lsxl81xinai&refreshKey=1718614809282
The fields openid, profile, w_member_social, email (i.e., all) were selected.
The GET request https://api.linkedin.com/v2/me leads to this response:
{ "serviceErrorCode": 100, "message": "Not enough permissions to access: GET /me", "status": 403 }
If I make a request like this: GET https://api.linkedin.com/v2/userinfo, the response is normal:
{ "sub": "JnB5T0LJss", "email_verified": true, "name": "Марат Загриев", "locale": { "country": "RU", "language": "ru" }, "given_name": "Марат", "family_name": "Загриев", "email": "[email protected]", "picture": "https://media.licdn.com/dms/image/D4E03AQGVk_WWUxHeaw/profile-displayphoto-shrink_100_100/0/1718608195127?e=1724284800&v=beta&t=L6ZHE-kTx2NFFVy4H_H2mDNoeM4c9f4Kk-MIKiLUM-Q" }
I’m sending the Access Token in the Headers field in the Authorization (Bearer) field.
A request of the form https://api.linkedin.com/v2/people/(id:{ilnar-gatiyatullin}), where ilnar-gatiyatullin is the username in the URL (for example https://www.linkedin.com/in/ilnar-gatiyatullin/) leads to this response:
{ "serviceErrorCode": 100, "message": "Not enough permissions to access: GET /people/(id:%7Bilnar-gatiyatullin%7D)", "status": 403 }
The GET request https://api.linkedin.com/v2/me leads to this response:
{ "serviceErrorCode": 100, "message": "Not enough permissions to access: GET /me", "status": 403 }
marlibon is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.