3
votes

The goal of my aplication is to get profile of any linkedin user with "Apply with LinkedIn". I've registered in Apply with LinkedIn, got clientId, client secret, and performend oauth2 authentification successfuly. But with linkedIn api I can get only info about my LinkedIn profile: https://api.linkedin.com/v1/people/~:(id,first-name,skills,educations,languages,twitter-accounts)?format=json

Does anybody know is it possible to GET other profile (not mine) using profileID, linkedinId or somewhat else?

Thanks, Tatyana.

2
I doesn't find any doc related to fetch data from other's rather than opening others profile.Stella
According to Linkedin documentation [link] (developer.linkedin.com/docs/apply-with-linkedin) I can get only my profile.Tatyana Sharonova
we can open others profile :)Stella
We can open other profile in a browser, but it is not possible to specify profileID, linkedIn Id or something else using GET api.linkedin.com/v1/people/…Tatyana Sharonova

2 Answers

0
votes

You need to use people search API with "r_network" permission, which is a vetted API access program now.

https://developer-programs.linkedin.com/documents/people-search-api

You can apply here https://help.linkedin.com/app/ask/path/api-dvr for the same.

Please make sure that your app follows the following guidelines from Linkedin before submitting for review

  • It may not be used for the purposes of database matching, candidate sourcing, or lead generation without an established business relationship with LinkedIn.
  • You can never store data returned from the People Search API.
  • Search results may not be stored or offered as aggregated search.
  • All APIcalls must be made within an active user session.
  • You cannot let multiple people search using the authentication credentials of one person. Each person must authenticate individually.

HTH

0
votes

There's a couple of ways to do it. If you have the account's ID (as retrieved from another API call -- not the ID you see in the standard URL).

/v1/people/id=xxxx:(your fields go here)

Or if you have the public URL of their linkedin account (URL Encoded!)

/v1/people/url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fsome-account-name

Note: I have found that the values returned are quite limited, even for a 1st degree connection when authenticated with scope=r_fullprofile. It returns only the current positions for example, no skills, no education, amoung other things. It's really of limited use.

It's not clear why.