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",
"name": "John Smith",
"position": "Head of Sales at Acme",
"location": {
"linkedinText": "Austin, Texas, United States"
},
"photo": "https://media.licdn.com/dms/image/v2/C4E03AQH7example/profile-displayphoto-shrink_100_100/0/1600000000000"
},
"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).
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",
"name": "John Smith",
"position": "Head of Sales at Acme",
"location": {
"linkedinText": "Austin, Texas, United States"
},
"photo": "https://media.licdn.com/dms/image/v2/C4E03AQH7example/profile-displayphoto-shrink_100_100/0/1600000000000"
},
"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).const params = new URLSearchParams({
email: 'john.smith@acme.com',
});
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"}
headers = {"X-API-Key": "<api-key>"}
response = requests.request("GET", url, headers=headers, params=params)
print(response.text)

