curl --request GET \
--url https://api.harvest-api.com/linkedin/profile \
--header 'X-API-Key: <api-key>'
{
"element": {
"id": "<string>",
"publicIdentifier": "<string>",
"lastName": "<string>",
"firstName": "<string>",
"headline": "<string>",
"about": "<string>",
"linkedinUrl": "<string>",
"photo": "<string>",
"registeredAt": "2023-11-07T05:31:56Z",
"topSkills": "<string>",
"connectionsCount": 123,
"followerCount": 123,
"openToWork": true,
"hiring": true,
"location": {
"linkedinText": "<string>",
"countryCode": "<string>",
"parsed": {
"text": "<string>",
"countryCode": "<string>",
"regionCode": "<string>",
"country": "<string>",
"countryFull": "<string>",
"state": "<string>",
"city": "<string>"
}
},
"currentPosition": [
{
"companyName": "<string>"
}
],
"experience": [
{
"companyName": "<string>",
"duration": "<string>",
"position": "<string>",
"location": "<string>",
"companyLink": "<string>",
"description": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"employmentType": "<string>"
}
],
"education": [
{
"title": "<string>",
"link": "<string>",
"degree": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
}
}
],
"certifications": [
{
"title": "<string>",
"issuedAt": "<string>",
"issuedBy": "<string>",
"issuedByLink": "<string>"
}
],
"receivedRecommendations": [
{
"givenBy": "<string>",
"givenAt": "<string>",
"givenByLink": "<string>",
"description": "<string>"
}
],
"skills": [
{
"name": "<string>"
}
],
"languages": [
{
"language": "<string>",
"proficiency": "<string>"
}
],
"projects": [
{
"title": "<string>",
"description": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
}
}
],
"publications": [
{
"title": "<string>",
"publishedAt": "<string>",
"description": "<string>",
"link": "<string>"
}
],
"featured": {
"images": [
"<string>"
],
"link": "<string>",
"title": "<string>",
"subtitle": "<string>"
},
"verified": true
},
"status": "<string>",
"error": "<string>",
"query": {
"url": "<string>",
"publicIdentifier": "<string>",
"profileId": "<string>"
}
}
Get the LinkedIn profile of the user. Required at least one of the query parameters
curl --request GET \
--url https://api.harvest-api.com/linkedin/profile \
--header 'X-API-Key: <api-key>'
{
"element": {
"id": "<string>",
"publicIdentifier": "<string>",
"lastName": "<string>",
"firstName": "<string>",
"headline": "<string>",
"about": "<string>",
"linkedinUrl": "<string>",
"photo": "<string>",
"registeredAt": "2023-11-07T05:31:56Z",
"topSkills": "<string>",
"connectionsCount": 123,
"followerCount": 123,
"openToWork": true,
"hiring": true,
"location": {
"linkedinText": "<string>",
"countryCode": "<string>",
"parsed": {
"text": "<string>",
"countryCode": "<string>",
"regionCode": "<string>",
"country": "<string>",
"countryFull": "<string>",
"state": "<string>",
"city": "<string>"
}
},
"currentPosition": [
{
"companyName": "<string>"
}
],
"experience": [
{
"companyName": "<string>",
"duration": "<string>",
"position": "<string>",
"location": "<string>",
"companyLink": "<string>",
"description": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"employmentType": "<string>"
}
],
"education": [
{
"title": "<string>",
"link": "<string>",
"degree": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
}
}
],
"certifications": [
{
"title": "<string>",
"issuedAt": "<string>",
"issuedBy": "<string>",
"issuedByLink": "<string>"
}
],
"receivedRecommendations": [
{
"givenBy": "<string>",
"givenAt": "<string>",
"givenByLink": "<string>",
"description": "<string>"
}
],
"skills": [
{
"name": "<string>"
}
],
"languages": [
{
"language": "<string>",
"proficiency": "<string>"
}
],
"projects": [
{
"title": "<string>",
"description": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
}
}
],
"publications": [
{
"title": "<string>",
"publishedAt": "<string>",
"description": "<string>",
"link": "<string>"
}
],
"featured": {
"images": [
"<string>"
],
"link": "<string>",
"title": "<string>",
"subtitle": "<string>"
},
"verified": true
},
"status": "<string>",
"error": "<string>",
"query": {
"url": "<string>",
"publicIdentifier": "<string>",
"profileId": "<string>"
}
}
const params = new URLSearchParams({
url: 'https://www.linkedin.com/in/williamhgates', // by URL
// publicIdentifier: 'williamhgates', // by publicIdentifier alternatively
});
fetch(`https://api.harvest-api.com/linkedin/profile?${params.toString()}`, {
headers: { 'X-API-Key': '<api-key>' },
})
.then((response) => response.json())
.then((data) => console.log(data));
URL of the LinkedIn profile (optional)
Public identifier of the LinkedIn profile (optional)
ID of the LinkedIn profile (optional)
Include this parameter to return a short version of the profile (includes name, title, followers and some other info). This version charges less credits
Include this parameter to find the email of the profile. This version charges more credits
Profile response
The response is of type object
.