Find a LinkedIn profile by email
curl --request GET \
--url https://api.harvestapi.io/linkedin/profile-by-email \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/profile-by-email"
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-by-email', 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-by-email",
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-by-email"
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-by-email")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/profile-by-email")
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": "ACoAABx7Ld0BqT1o3dXc9zKfP2uWm4hYs8vNe5Q",
"publicIdentifier": "john-smith-4b21a7",
"linkedinUrl": "https://www.linkedin.com/in/john-smith-4b21a7",
"firstName": "John",
"lastName": "Smith",
"headline": "Head of Sales at Acme",
"location": {
"linkedinText": "Austin, Texas, United States",
"countryCode": "US"
},
"photo": "https://media.licdn.com/dms/image/v2/C4E03AQH7example/profile-displayphoto-shrink_800_800/0/1600000000000",
"currentPosition": [
{
"companyName": "Acme",
"companyId": "12345678",
"companyLinkedinUrl": "https://www.linkedin.com/company/acme/"
}
]
},
"status": 200,
"query": {
"email": "john.smith@acme.com",
"companyId": "12345678",
"companyUniversalName": "acme"
}
}{
"error": 123,
"message": "<string>"
}{
"status": 404,
"error": "Profile not found: no LinkedIn company found for the domain acme.com",
"query": {
"email": "john.smith@acme.com"
}
}LinkedIn Profile
Profile by email
Find the LinkedIn profile of the person behind a work email address (reverse email lookup) and get their main profile.
GET
/
linkedin
/
profile-by-email
Find a LinkedIn profile by email
curl --request GET \
--url https://api.harvestapi.io/linkedin/profile-by-email \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/profile-by-email"
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-by-email', 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-by-email",
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-by-email"
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-by-email")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/profile-by-email")
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": "ACoAABx7Ld0BqT1o3dXc9zKfP2uWm4hYs8vNe5Q",
"publicIdentifier": "john-smith-4b21a7",
"linkedinUrl": "https://www.linkedin.com/in/john-smith-4b21a7",
"firstName": "John",
"lastName": "Smith",
"headline": "Head of Sales at Acme",
"location": {
"linkedinText": "Austin, Texas, United States",
"countryCode": "US"
},
"photo": "https://media.licdn.com/dms/image/v2/C4E03AQH7example/profile-displayphoto-shrink_800_800/0/1600000000000",
"currentPosition": [
{
"companyName": "Acme",
"companyId": "12345678",
"companyLinkedinUrl": "https://www.linkedin.com/company/acme/"
}
]
},
"status": 200,
"query": {
"email": "john.smith@acme.com",
"companyId": "12345678",
"companyUniversalName": "acme"
}
}{
"error": 123,
"message": "<string>"
}{
"status": 404,
"error": "Profile not found: no LinkedIn company found for the domain acme.com",
"query": {
"email": "john.smith@acme.com"
}
}Find the LinkedIn profile behind a work email
Give a work email address and get the LinkedIn profile of the person who uses it (reverse email lookup). The profile comes back as the main profile, the same as Get profile withmain=true.
The lookup searches LinkedIn live: the person’s name is read from the email address (john.smith@acme.com → John Smith)
and searched among the current and past employees of the company whose LinkedIn page has the email’s domain as its website.
If you know the person’s name, pass firstName and lastName: they replace the name read from the address and make the
match more precise. Only work email addresses are supported; personal ones (gmail.com, outlook.com, …) are rejected.
Results are best-effort matches, and their accuracy is not guaranteed. People with the same name at the company,
nicknames, addresses that carry only an initial (jsmith@), or profiles that do not list the company can lead
to a wrong profile or to none. When accuracy matters, check the returned profile against your data, for example
its name and current position.
const params = new URLSearchParams({
email: 'john.smith@acme.com',
// firstName: 'John', // optional: pass the first name of the person when known
// lastName: 'Smith',
});
fetch(`https://api.harvestapi.io/linkedin/profile-by-email?${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-by-email?email=john.smith%40acme.com' \
--header 'X-API-Key: <api-key>'
import requests
url = "https://api.harvestapi.io/linkedin/profile-by-email"
params = {
"email": "john.smith@acme.com",
# "firstName": "John", # optional: pass the first name of the person when known
# "lastName": "Smith",
}
headers = {"X-API-Key": "<api-key>"}
response = requests.request("GET", url, headers=headers, params=params)
print(response.text)

