curl --request GET \
--url https://api.harvestapi.io/linkedin/profile \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/profile"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.harvestapi.io/linkedin/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.harvestapi.io/linkedin/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.harvestapi.io/linkedin/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.harvestapi.io/linkedin/profile")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"element": {
"id": "<string>",
"publicIdentifier": "<string>",
"linkedinUrl": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"emails": [
{
"email": "jsmith@example.com",
"deliverable": true,
"catchAllDomain": true,
"validEmailServer": true,
"free": true,
"status": "<string>",
"qualityScore": 123
}
],
"websites": [
"<string>"
],
"companyWebsites": [
"<unknown>"
],
"headline": "<string>",
"openToWork": true,
"hiring": true,
"premium": true,
"influencer": true,
"memorialized": true,
"creator": true,
"location": {
"linkedinText": "<string>",
"countryCode": "<string>",
"parsed": {
"text": "<string>",
"countryCode": "<string>",
"regionCode": "<string>",
"country": "<string>",
"countryFull": "<string>",
"state": "<string>",
"city": "<string>"
}
},
"objectUrn": "<string>",
"registeredAt": "2023-11-07T05:31:56Z",
"topSkills": [
"<string>"
],
"connectionsCount": 123,
"followerCount": 123,
"verified": true,
"about": "<string>",
"currentPosition": [
{
"position": "<string>",
"location": "<string>",
"employmentType": "<string>",
"workplaceType": "<string>",
"companyName": "<string>",
"companyLinkedinUrl": "<string>",
"companyId": "<string>",
"duration": "<string>",
"description": "<string>",
"skills": [
"<string>"
],
"experienceGroupId": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"companyLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
},
"companyUniversalName": "<string>"
}
],
"profileTopEducation": [
{
"schoolName": "<string>",
"schoolLinkedinUrl": "<string>",
"schoolId": "<string>",
"degree": "<string>",
"fieldOfStudy": "<string>",
"skills": [
"<string>"
],
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"period": "<string>",
"schoolLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
}
}
],
"profileActions": [
{
"label": "<string>",
"url": "<string>"
}
],
"profilePicture": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
},
"coverPicture": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
},
"photo": "<string>",
"profileLocales": [
{
"country": "<string>",
"language": "<string>"
}
],
"primaryLocale": {
"country": "<string>",
"language": "<string>"
},
"multiLocaleHeadline": [
{
"headline": "<string>",
"locale": "<string>"
}
],
"services": {
"description": "<string>",
"media": [
{
"title": "<string>",
"subtitle": "<string>",
"url": "<string>",
"image": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
}
}
],
"servicesList": [
"<string>"
],
"rating": "<string>",
"requestUrl": "<string>"
},
"featured": {
"images": [
{}
],
"link": "<string>",
"title": "<string>",
"subtitle": "<string>",
"slides": [
{
"title": "<string>",
"subtitle": "<string>",
"description": "<string>",
"url": "<string>",
"image": {
"url": "<string>"
}
}
]
},
"experience": [
{
"position": "<string>",
"location": "<string>",
"employmentType": "<string>",
"workplaceType": "<string>",
"companyName": "<string>",
"companyLinkedinUrl": "<string>",
"companyId": "<string>",
"duration": "<string>",
"description": "<string>",
"skills": [
"<string>"
],
"experienceGroupId": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"companyLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
},
"companyUniversalName": "<string>"
}
],
"education": [
{
"schoolName": "<string>",
"schoolLinkedinUrl": "<string>",
"schoolId": "<string>",
"degree": "<string>",
"fieldOfStudy": "<string>",
"skills": [
"<string>"
],
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"period": "<string>",
"schoolLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
}
}
],
"certifications": [
{
"title": "<string>",
"issuedAt": "<string>",
"link": "<string>",
"issuedBy": "<string>",
"issuedByLink": "<string>",
"issuedByLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
}
}
],
"projects": [
{
"title": "<string>",
"duration": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"associatedWith": "<string>",
"associatedWithLink": "<string>",
"description": "<string>",
"contributors": [
{
"linkedinUrl": "<string>"
}
]
}
],
"volunteering": [
{
"role": "<string>",
"organizationName": "<string>",
"duration": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
}
}
],
"receivedRecommendations": [
{}
],
"skills": [
{
"name": "<string>",
"positions": [
"<string>"
],
"endorsements": "<string>"
}
],
"publications": [
{
"title": "<string>",
"publishedAt": "<string>",
"description": "<string>",
"link": "<string>"
}
],
"courses": [
{
"title": "<string>",
"associatedWith": "<string>",
"associatedWithLink": "<string>"
}
],
"patents": [
{
"title": "<string>",
"number": "<string>",
"issuedAt": "<string>",
"description": "<string>",
"url": "<string>"
}
],
"honorsAndAwards": [
{
"title": "<string>",
"issuedBy": "<string>",
"issuedAt": "<string>",
"description": "<string>",
"associatedWith": "<string>",
"associatedWithLink": "<string>"
}
],
"languages": [
{
"name": "<string>",
"proficiency": "<string>"
}
],
"organizations": [
{
"name": "<string>",
"positionHeld": "<string>",
"description": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"companyLinkedinUrl": "<string>",
"logo": "<string>"
}
],
"causes": [
"<string>"
],
"composeOptionType": "<string>",
"moreProfiles": [
{
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"position": "<string>",
"publicIdentifier": "<string>",
"linkedinUrl": "<string>"
}
],
"interests": [
{
"interestName": "<string>",
"elements": [
{
"title": "<string>",
"subtitle": "<string>",
"link": "<string>",
"caption": "<string>",
"image": {
"url": "<string>"
}
}
]
}
]
},
"status": "<string>",
"error": "<string>",
"query": {
"url": "<string>",
"publicIdentifier": "<string>",
"profileId": "<string>"
}
}{
"error": 123,
"message": "<string>"
}Get Profile
Get the LinkedIn profile of the user. Required at least one of the query parameters
curl --request GET \
--url https://api.harvestapi.io/linkedin/profile \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/profile"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.harvestapi.io/linkedin/profile', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.harvestapi.io/linkedin/profile",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.harvestapi.io/linkedin/profile"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.harvestapi.io/linkedin/profile")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/profile")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"element": {
"id": "<string>",
"publicIdentifier": "<string>",
"linkedinUrl": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"emails": [
{
"email": "jsmith@example.com",
"deliverable": true,
"catchAllDomain": true,
"validEmailServer": true,
"free": true,
"status": "<string>",
"qualityScore": 123
}
],
"websites": [
"<string>"
],
"companyWebsites": [
"<unknown>"
],
"headline": "<string>",
"openToWork": true,
"hiring": true,
"premium": true,
"influencer": true,
"memorialized": true,
"creator": true,
"location": {
"linkedinText": "<string>",
"countryCode": "<string>",
"parsed": {
"text": "<string>",
"countryCode": "<string>",
"regionCode": "<string>",
"country": "<string>",
"countryFull": "<string>",
"state": "<string>",
"city": "<string>"
}
},
"objectUrn": "<string>",
"registeredAt": "2023-11-07T05:31:56Z",
"topSkills": [
"<string>"
],
"connectionsCount": 123,
"followerCount": 123,
"verified": true,
"about": "<string>",
"currentPosition": [
{
"position": "<string>",
"location": "<string>",
"employmentType": "<string>",
"workplaceType": "<string>",
"companyName": "<string>",
"companyLinkedinUrl": "<string>",
"companyId": "<string>",
"duration": "<string>",
"description": "<string>",
"skills": [
"<string>"
],
"experienceGroupId": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"companyLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
},
"companyUniversalName": "<string>"
}
],
"profileTopEducation": [
{
"schoolName": "<string>",
"schoolLinkedinUrl": "<string>",
"schoolId": "<string>",
"degree": "<string>",
"fieldOfStudy": "<string>",
"skills": [
"<string>"
],
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"period": "<string>",
"schoolLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
}
}
],
"profileActions": [
{
"label": "<string>",
"url": "<string>"
}
],
"profilePicture": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
},
"coverPicture": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
},
"photo": "<string>",
"profileLocales": [
{
"country": "<string>",
"language": "<string>"
}
],
"primaryLocale": {
"country": "<string>",
"language": "<string>"
},
"multiLocaleHeadline": [
{
"headline": "<string>",
"locale": "<string>"
}
],
"services": {
"description": "<string>",
"media": [
{
"title": "<string>",
"subtitle": "<string>",
"url": "<string>",
"image": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
}
}
],
"servicesList": [
"<string>"
],
"rating": "<string>",
"requestUrl": "<string>"
},
"featured": {
"images": [
{}
],
"link": "<string>",
"title": "<string>",
"subtitle": "<string>",
"slides": [
{
"title": "<string>",
"subtitle": "<string>",
"description": "<string>",
"url": "<string>",
"image": {
"url": "<string>"
}
}
]
},
"experience": [
{
"position": "<string>",
"location": "<string>",
"employmentType": "<string>",
"workplaceType": "<string>",
"companyName": "<string>",
"companyLinkedinUrl": "<string>",
"companyId": "<string>",
"duration": "<string>",
"description": "<string>",
"skills": [
"<string>"
],
"experienceGroupId": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"companyLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
},
"companyUniversalName": "<string>"
}
],
"education": [
{
"schoolName": "<string>",
"schoolLinkedinUrl": "<string>",
"schoolId": "<string>",
"degree": "<string>",
"fieldOfStudy": "<string>",
"skills": [
"<string>"
],
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"period": "<string>",
"schoolLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
}
}
],
"certifications": [
{
"title": "<string>",
"issuedAt": "<string>",
"link": "<string>",
"issuedBy": "<string>",
"issuedByLink": "<string>",
"issuedByLogo": {
"url": "<string>",
"sizes": [
{
"url": "<string>",
"width": 123,
"height": 123
}
]
}
}
],
"projects": [
{
"title": "<string>",
"duration": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"associatedWith": "<string>",
"associatedWithLink": "<string>",
"description": "<string>",
"contributors": [
{
"linkedinUrl": "<string>"
}
]
}
],
"volunteering": [
{
"role": "<string>",
"organizationName": "<string>",
"duration": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
}
}
],
"receivedRecommendations": [
{}
],
"skills": [
{
"name": "<string>",
"positions": [
"<string>"
],
"endorsements": "<string>"
}
],
"publications": [
{
"title": "<string>",
"publishedAt": "<string>",
"description": "<string>",
"link": "<string>"
}
],
"courses": [
{
"title": "<string>",
"associatedWith": "<string>",
"associatedWithLink": "<string>"
}
],
"patents": [
{
"title": "<string>",
"number": "<string>",
"issuedAt": "<string>",
"description": "<string>",
"url": "<string>"
}
],
"honorsAndAwards": [
{
"title": "<string>",
"issuedBy": "<string>",
"issuedAt": "<string>",
"description": "<string>",
"associatedWith": "<string>",
"associatedWithLink": "<string>"
}
],
"languages": [
{
"name": "<string>",
"proficiency": "<string>"
}
],
"organizations": [
{
"name": "<string>",
"positionHeld": "<string>",
"description": "<string>",
"startDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"endDate": {
"month": "<string>",
"year": 123,
"text": "<string>"
},
"companyLinkedinUrl": "<string>",
"logo": "<string>"
}
],
"causes": [
"<string>"
],
"composeOptionType": "<string>",
"moreProfiles": [
{
"id": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"position": "<string>",
"publicIdentifier": "<string>",
"linkedinUrl": "<string>"
}
],
"interests": [
{
"interestName": "<string>",
"elements": [
{
"title": "<string>",
"subtitle": "<string>",
"link": "<string>",
"caption": "<string>",
"image": {
"url": "<string>"
}
}
]
}
]
},
"status": "<string>",
"error": "<string>",
"query": {
"url": "<string>",
"publicIdentifier": "<string>",
"profileId": "<string>"
}
}{
"error": 123,
"message": "<string>"
}const params = new URLSearchParams({
url: 'https://www.linkedin.com/in/williamhgates', // by URL
// publicIdentifier: 'williamhgates', // by publicIdentifier alternatively
});
fetch(`https://api.harvestapi.io/linkedin/profile?${params.toString()}`, {
headers: { 'X-API-Key': '<api-key>' },
})
.then((response) => response.json())
.then((data) => console.log(data));
curl --request GET \
--url https://api.harvestapi.io/linkedin/profile?publicIdentifier=williamhgates \
--header 'X-API-Key: <api-key>'
import requests
url = "https://api.harvestapi.io/linkedin/profile?publicIdentifier=williamhgates"
headers = {"X-API-Key": "<api-key>"}
response = requests.request("GET", url, headers=headers)
print(response.text)
Authorizations
Query Parameters
URL of the LinkedIn profile (optional)
Public identifier of the LinkedIn profile (optional)
ID of the LinkedIn profile (optional)
Set this parameter to 'true' to return only main version of the profile that you can see on LinkedIn without expanding profile sections - up to 5 experiences, 2 educations, 2 skills, etc. This version charges less credits
Include this parameter to find the email of the profile. It will perform SMTP verifications to ensure deliverability. It will also output emails for catch-all domains and mark them as risky (deliverability is unknown). This version charges more credits.
Include this parameter together with findEmail to skip SMTP email verification when finding emails. It will output all possible generated emails without checking deliverability via SMTP. It will do only minimal validations, as checking domains for MX records. This version charges less credits when using with findEmail.
Include this parameter to scrape the "About this profile" popup from LinkedIn profiles.

