How to get email address and lite profile from linkedIn api v2 (api.linkedin.com/v2)
Can not get email from https://api.linkedin.com/v2/me?oauth2_access_token=xxxx
Requested &scope=r_emailaddress%20r_liteprofile
Linkedin is aware of its data value and turned off public access to their API since 2015.
If you want to use the API to present this information, your users need to authenticate with LinkedIn and then you can make the call on their behalf. This is probably easiest to do using the Javascript framework.
you need to make a separate call
GET https://api.linkedin.com/v2/emailAddress?q=members&projection=(elements*(handle~))
https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin?context=linkedin/consumer/context#retrieving-member-email-address
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With