linkedin-private-api icon indicating copy to clipboard operation
linkedin-private-api copied to clipboard

Basic data from getProfile function results

Open motis10 opened this issue 4 years ago • 3 comments

After client.profile.getProfile() called, the json result is huge but basic info are not readable... like: '*profileEducations': 'urn:li:collectionResponse:jbS7v/aiGf+n48yZ43Ev0e9BPKSkfWZWLisSWcr5P4A=',

Experience is not showing at all..

motis10 avatar Sep 22 '21 19:09 motis10

I have found a workaround how to get more info in such cases:

(async () => {
  const client = new Client();

  await client.login.userPass({
    username: username,
    password: password
  });

  const _headers = client.request.request.defaults.headers;

  await fetch("https://www.linkedin.com/voyager/api/identity/profiles/your_name/skills", {
    method: 'GET',
    headers: _headers,
  })
    .then((response) => response.json())
    .then((data) => console.log(data));
})();

jannikbuscha avatar Jan 02 '23 03:01 jannikbuscha

And it return the skills?

motis10 avatar Jan 02 '23 06:01 motis10

Educations'

in my example, yes. I think you can just replace it with "educations", for that you just have to look in the linkedin voyager-api docs.

jannikbuscha avatar Jan 02 '23 06:01 jannikbuscha