linkedin-private-api
linkedin-private-api copied to clipboard
Basic data from getProfile function results
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..
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));
})();
And it return the skills?
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.