curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/connections \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"linkedin_url": "https://www.linkedin.com/in/john-doe",
"linkedin_profile_url": "<string>",
"spotlights": [
"SHARED_CONNECTION",
"SHARED_EXPERIENCE"
]
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/connections"
payload = {
"linkedin_url": "https://www.linkedin.com/in/john-doe",
"linkedin_profile_url": "<string>",
"spotlights": ["SHARED_CONNECTION", "SHARED_EXPERIENCE"]
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
linkedin_url: 'https://www.linkedin.com/in/john-doe',
linkedin_profile_url: '<string>',
spotlights: ['SHARED_CONNECTION', 'SHARED_EXPERIENCE']
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/connections', 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://app.pipecorn.com/api/v2/intents/leads/connections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'linkedin_url' => 'https://www.linkedin.com/in/john-doe',
'linkedin_profile_url' => '<string>',
'spotlights' => [
'SHARED_CONNECTION',
'SHARED_EXPERIENCE'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.pipecorn.com/api/v2/intents/leads/connections"
payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"linkedin_profile_url\": \"<string>\",\n \"spotlights\": [\n \"SHARED_CONNECTION\",\n \"SHARED_EXPERIENCE\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.pipecorn.com/api/v2/intents/leads/connections")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"linkedin_profile_url\": \"<string>\",\n \"spotlights\": [\n \"SHARED_CONNECTION\",\n \"SHARED_EXPERIENCE\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"linkedin_profile_url\": \"<string>\",\n \"spotlights\": [\n \"SHARED_CONNECTION\",\n \"SHARED_EXPERIENCE\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"total": 3,
"connections": [
{
"first_name": "Jane",
"last_name": "Doe",
"full_name": "Jane Doe",
"degree": 1,
"profile_urn": "urn:li:fs_salesProfile:(ACwAABD5FBQ,NAME_SEARCH,vIqI)",
"sales_navigator_url": "https://www.linkedin.com/sales/lead/ACwAABD5FBQ,NAME_SEARCH,vIqI/",
"linkedin_url": "https://www.linkedin.com/in/jane-doe/",
"profile_picture_url": "https://media.licdn.com/dms/image/...",
"current_position": {
"title": "VP Sales",
"company": "Acme Corp"
},
"paths": [
{
"type": "SHARED_CONNECTION",
"reason": "You both know Ada Lovelace"
}
],
"shared_experiences": [
{
"company_id": "1035",
"company": "Sellsy",
"overlap_months": 18,
"approximate_dates": false,
"same_location": true,
"company_size": 45
}
],
"relationship_strength": {
"score": 7,
"level": "strong"
}
}
],
"totals_by_spotlight": {
"SHARED_CONNECTION": 3,
"SHARED_EXPERIENCE": 1
}
}Find connections
Find who among your 1st-degree connections can introduce you to a LinkedIn profile, and how well they know them.
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/connections \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"linkedin_url": "https://www.linkedin.com/in/john-doe",
"linkedin_profile_url": "<string>",
"spotlights": [
"SHARED_CONNECTION",
"SHARED_EXPERIENCE"
]
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/connections"
payload = {
"linkedin_url": "https://www.linkedin.com/in/john-doe",
"linkedin_profile_url": "<string>",
"spotlights": ["SHARED_CONNECTION", "SHARED_EXPERIENCE"]
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
linkedin_url: 'https://www.linkedin.com/in/john-doe',
linkedin_profile_url: '<string>',
spotlights: ['SHARED_CONNECTION', 'SHARED_EXPERIENCE']
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/connections', 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://app.pipecorn.com/api/v2/intents/leads/connections",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'linkedin_url' => 'https://www.linkedin.com/in/john-doe',
'linkedin_profile_url' => '<string>',
'spotlights' => [
'SHARED_CONNECTION',
'SHARED_EXPERIENCE'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.pipecorn.com/api/v2/intents/leads/connections"
payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"linkedin_profile_url\": \"<string>\",\n \"spotlights\": [\n \"SHARED_CONNECTION\",\n \"SHARED_EXPERIENCE\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.pipecorn.com/api/v2/intents/leads/connections")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"linkedin_profile_url\": \"<string>\",\n \"spotlights\": [\n \"SHARED_CONNECTION\",\n \"SHARED_EXPERIENCE\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/connections")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"linkedin_profile_url\": \"<string>\",\n \"spotlights\": [\n \"SHARED_CONNECTION\",\n \"SHARED_EXPERIENCE\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"total": 3,
"connections": [
{
"first_name": "Jane",
"last_name": "Doe",
"full_name": "Jane Doe",
"degree": 1,
"profile_urn": "urn:li:fs_salesProfile:(ACwAABD5FBQ,NAME_SEARCH,vIqI)",
"sales_navigator_url": "https://www.linkedin.com/sales/lead/ACwAABD5FBQ,NAME_SEARCH,vIqI/",
"linkedin_url": "https://www.linkedin.com/in/jane-doe/",
"profile_picture_url": "https://media.licdn.com/dms/image/...",
"current_position": {
"title": "VP Sales",
"company": "Acme Corp"
},
"paths": [
{
"type": "SHARED_CONNECTION",
"reason": "You both know Ada Lovelace"
}
],
"shared_experiences": [
{
"company_id": "1035",
"company": "Sellsy",
"overlap_months": 18,
"approximate_dates": false,
"same_location": true,
"company_size": 45
}
],
"relationship_strength": {
"score": 7,
"level": "strong"
}
}
],
"totals_by_spotlight": {
"SHARED_CONNECTION": 3,
"SHARED_EXPERIENCE": 1
}
}Spotlights
A spotlight is a kind of warm path. Pick them withspotlights; each one runs one more Sales Navigator lookup.
| Spotlight | Your connection… |
|---|---|
SHARED_CONNECTION (default) | is connected to the target |
SHARED_EXPERIENCE | worked at the same company as the target |
SHARED_EDUCATION | went to the same school |
SHARED_GROUP | is in the same LinkedIn group |
paths. Each path carries LinkedIn’s reason when it gives one, e.g. “You both know Ada Lovelace”: quote it when you ask for the intro.
Shared experiences
Being connected on LinkedIn says little about how well two people know each other. So for every connection, Pipecorn compares its career with the target’s and lists each company both worked at inshared_experiences:
overlap_months: how long they were there at the same time.0means they worked there at different times.same_location: whether both worked from the same city.nullwhen a position has no location.company_size: the company’s headcount. People who overlapped in a 40-person startup almost certainly know each other; in a 5,000-person group, much less so.
approximate_dates: true flags those: each year then counts as a whole, so a short overlap can be overstated. company_size is today’s headcount, not the size when they worked there.Relationship strength
relationship_strength.score adds up the signals linking the connection to the target:
| Signal | Points |
|---|---|
| Shared connection | 2 |
| Shared school, shared group | 1 each |
| Best shared company: overlapped | 2 |
| … and in the same city | +1 |
| … for 12 months or more | +1 |
| … at a company of 50 people or fewer | +1 |
| … at a company of 500 people or more | −1 |
| Best shared company: there at different times | 1 |
level is strong from 4 points, medium from 2 and weak below.
For example, a connection who knows the target and spent 18 months with them in the same city at a 45-person startup scores 2 + 2 + 1 + 1 + 1 = 7, strong.
Example
{
"linkedin_url": "https://www.linkedin.com/in/john-doe",
"spotlights": ["SHARED_CONNECTION", "SHARED_EXPERIENCE"]
}
{
"total": 3,
"totals_by_spotlight": { "SHARED_CONNECTION": 2, "SHARED_EXPERIENCE": 1 },
"connections": [
{
"full_name": "Jane Doe",
"degree": 1,
"linkedin_url": "https://www.linkedin.com/in/jane-doe/",
"current_position": { "title": "VP Sales", "company": "Acme Corp" },
"paths": [
{ "type": "SHARED_CONNECTION", "reason": "You both know Ada Lovelace" },
{ "type": "SHARED_EXPERIENCE" }
],
"shared_experiences": [
{
"company_id": "1035",
"company": "Sellsy",
"overlap_months": 18,
"approximate_dates": false,
"same_location": true,
"company_size": 45
}
],
"relationship_strength": { "score": 7, "level": "strong" }
}
]
}
Notes
- Requires a connected LinkedIn account with Sales Navigator access.
- Accepts public LinkedIn URLs, Sales Nav URLs, or internal URNs.
- Synchronous and doesn’t consume credits.
Headers
A unique value you generate per operation, such as a UUID. Retrying with the same key and the same body returns the stored response instead of running the request again, so a retry after a timeout never charges twice. Successful responses are kept for 24 hours; a failed request is not stored and can be retried with the same key.
255"4f1c2e9a-8a7d-4c1b-9f63-2d6e0b5a7c11"
Body
Optional. Kinds of warm path to look for. SHARED_CONNECTION: your connection is connected to the target. SHARED_EXPERIENCE: they worked at the same company. SHARED_EDUCATION: same school. SHARED_GROUP: same LinkedIn group. Each kind runs one more Sales Navigator lookup. TeamLink is not supported.
1SHARED_CONNECTION, SHARED_EXPERIENCE, SHARED_EDUCATION, SHARED_GROUP ["SHARED_CONNECTION", "SHARED_EXPERIENCE"]
Response
Connections found successfully
Was this page helpful?