Skip to content
Advertisement

How to retrieve full profile of linkedin user via Javascript API

I am trying to retrieve the full profile (especially job history and educational qualifications) of a linkedin user via the Javascript API. I have managed to piece together the following code from google and stack overflow:

JavaScript

This manages to retrieve the logged in user’s name and surname after they grant access. However it completely fails to retrieve anything else. I am using a company login for linkedin and I can access all the user’s information via the rest api, so it’s not an access issue; I just don’t know (and can’t find any examples) of how to use the Javascript API. How would I specify what information to retrieve and how would I then identify that information in the returned JSON object?

Advertisement

Answer

Seems to work on my end by using a variation of the call you had commented out: Check the fields you can use, you had “network” in there but it is not listed. Maybe it was part of an older version of the API?

JavaScript

Then you can work with the returned data like this:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement