Linkedin to Email
This API returns work email address associated with a linkedin profile.
This API has two parts
Request sent with the first parameter
linkedin_profile
puts the request in a queue and returns arequest_id
.The
request_id
andlinkedin_profile
both can be sent again after a few seconds to the endpoint in the example to get the final result.
cURL 'https://api.enrich.so/v1/api/linkedin-to-email?linkedin_profile=https://www.linkedin.com/in/williamhgates&request_id=<example-request-id>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json'
const axios = require('axios');
axios.get('https://api.enrich.so/v1/api/linkedin-to-email?linkedin_profile=https://www.linkedin.com/in/williamhgates&request_id=<example-request-id>', {
headers: {accept: 'application/json', Authorization: 'Bearer <token>'}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.log(error);
});
import requests
payload = {'linkedin_profile': 'https://www.linkedin.com/in/williamhgates', 'request_id': '<example-request-id>'}
headers = {'accept': 'application/json', 'authorization': 'Bearer <token>'}
resp = requests.get('https://api.enrich.so/v1/api/linkedin-to-email', params=payload, headers=headers)
print (resp.text)
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.enrich.so/v1/api/linkedin-to-email?linkedin_profile=https://www.linkedin.com/in/williamhgates&request_id=<example-request-id>")
.get()
.addHeader("accept", "application/json")
.addHeader("authorization", "Bearer <token>")
.build();
Response response = client.newCall(request).execute();
require 'uri'
require 'net/http'
url = URI("https://api.enrich.so/v1/api/linkedin-to-email?linkedin_profile=https://www.linkedin.com/in/williamhgates&request_id=<example-request-id>")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = 'application/json'
request["authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.enrich.so/v1/api/linkedin-to-email?linkedin_profile=https://www.linkedin.com/in/williamhgates&request_id=<example-request-id>",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: application/json",
"authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
Example response
{
"displayName": "Bill Gates",
"firstName": "Bill",
"lastName": "Gates",
"email": "billgates@gatesfoundation.org",
"emails": [],
"phoneNumbers": [],
"headline": "Co-chair, Bill & Melinda Gates Foundation",
"summary": "Co-chair of the Bill & Melinda Gates Foundation. Founder of Breakthrough Energy. Co-founder of Microsoft. Voracious reader. Avid traveler. Active blogger.",
"location": "Seattle, Washington, United States",
"photoUrl": "https://media.licdn.com/dms/image/D5603AQHv6LsdiUg1kw/profile-displayphoto-shrink_800_800/0/1695167344281?e=1701907200&v=beta&t=GRnycu5L6dkxGMZSW5B6K4QUlRpPmqPsF5ptrQsmVoQ",
"linkedInUrl": "https://www.linkedin.com/in/williamhgates/",
"connectionCount": 9,
"skills": [],
"locale": {
"country": "us",
"language": "en"
},
"schools": {
"educationsCount": 2,
"educationHistory": [
{
"school": {
"schoolName": {
"name": "Harvard University",
"logo": "https://media.licdn.com/dms/image/C4E0BAQF5t62bcL0e9g/company-logo_400_400/0/1519855919126?e=1704326400&v=beta&t=JSZ388TpnmAtRYFxWlelbpY82qFS3ub0XtHGSR42yIk",
"url": "https://www.linkedin.com/school/harvard-university/"
},
"schoolLocation": null,
"linkedInUrl": null
},
"degreeName": null,
"startEndDate": {
"start": null,
"end": null
},
"fieldOfStudy": null,
"schoolName": {
"name": "Harvard University",
"logo": "https://media.licdn.com/dms/image/C4E0BAQF5t62bcL0e9g/company-logo_400_400/0/1519855919126?e=1704326400&v=beta&t=JSZ388TpnmAtRYFxWlelbpY82qFS3ub0XtHGSR42yIk",
"url": "https://www.linkedin.com/school/harvard-university/"
},
"schoolLocation": "Madhya Pradesh, India",
"linkedInUrl": null
},
{
"school": {
"schoolName": {
"name": "Lakeside School",
"logo": "https://media.licdn.com/dms/image/D560BAQGFmOQmzpxg9A/company-logo_400_400/0/1683732882929?e=1704326400&v=beta&t=rZ0jhSpHv1VFhsTTl-3sgidHU5_lYgyeR36H7qHlo_k",
"url": "https://www.linkedin.com/school/lakeside-school/"
},
"schoolLocation": null,
"linkedInUrl": null
},
"degreeName": null,
"startEndDate": {
"start": null,
"end": null
},
"fieldOfStudy": null,
"schoolName": {
"name": "Lakeside School",
"logo": "https://media.licdn.com/dms/image/D560BAQGFmOQmzpxg9A/company-logo_400_400/0/1683732882929?e=1704326400&v=beta&t=rZ0jhSpHv1VFhsTTl-3sgidHU5_lYgyeR36H7qHlo_k",
"url": "https://www.linkedin.com/school/lakeside-school/"
},
"schoolLocation": "Madhya Pradesh, India",
"linkedInUrl": null
}
]
},
"positions": {
"positionsCount": 3,
"positionHistory": [
{
"title": "Co-chair",
"startEndDate": {
"start": null,
"end": null
},
"company": {
"companyName": "Bill & Melinda Gates Foundation",
"companyLocation": null,
"companyLogo": "https://media.licdn.com/dms/image/C4E0BAQE7Na_mKQhIJg/company-logo_400_400/0/1633731810932?e=1704326400&v=beta&t=xuOGtu4NwO2QdT4K6zagJbpSnBVr70cG2DTE-2YCTAM"
},
"companyName": "Bill & Melinda Gates Foundation",
"companyLogo": "https://media.licdn.com/dms/image/C4E0BAQE7Na_mKQhIJg/company-logo_400_400/0/1633731810932?e=1704326400&v=beta&t=xuOGtu4NwO2QdT4K6zagJbpSnBVr70cG2DTE-2YCTAM"
},
{
"title": "Founder",
"startEndDate": {
"start": null,
"end": null
},
"company": {
"companyName": "Breakthrough Energy ",
"companyLocation": null,
"companyLogo": "https://media.licdn.com/dms/image/C4D0BAQGwD9vNu044FA/company-logo_400_400/0/1601560874941?e=1704326400&v=beta&t=vVK6Y18gJeFbLxvh5zbDwv0es7EZbqhDwkUUWteKOCI"
},
"companyName": "Breakthrough Energy ",
"companyLogo": "https://media.licdn.com/dms/image/C4D0BAQGwD9vNu044FA/company-logo_400_400/0/1601560874941?e=1704326400&v=beta&t=vVK6Y18gJeFbLxvh5zbDwv0es7EZbqhDwkUUWteKOCI"
},
{
"title": "Co-founder",
"startEndDate": {
"start": null,
"end": null
},
"company": {
"companyName": "Microsoft",
"companyLocation": null,
"companyLogo": "https://media.licdn.com/dms/image/C560BAQE88xCsONDULQ/company-logo_400_400/0/1618231291419?e=1704326400&v=beta&t=WBMhRGvpy3qhorjb26QNcpncMSxZmvf6HQCHCKZDDgE"
},
"companyName": "Microsoft",
"companyLogo": "https://media.licdn.com/dms/image/C560BAQE88xCsONDULQ/company-logo_400_400/0/1618231291419?e=1704326400&v=beta&t=WBMhRGvpy3qhorjb26QNcpncMSxZmvf6HQCHCKZDDgE"
}
]
},
"skillEndorsements": null,
"userGeneratedContents": {},
"languages": {
"primary_locale": {
"country": "US",
"language": "en"
},
"supported_locales": [
{
"country": "US",
"language": "en"
}
],
"profile_languages": []
},
"certifications": [],
"total_credits": 10,
"credits_used": 5,
"credits_remaining": 5
}
Last updated