Skip to main content
POST
/
intents
/
leads
/
connections
Find connections with a LinkedIn lead
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_profile_url": "https://www.linkedin.com/in/john-doe"
}
'
import requests

url = "https://app.pipecorn.com/api/v2/intents/leads/connections"

payload = { "linkedin_profile_url": "https://www.linkedin.com/in/john-doe" }
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_profile_url: 'https://www.linkedin.com/in/john-doe'})
};

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_profile_url' => 'https://www.linkedin.com/in/john-doe'
]),
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_profile_url\": \"https://www.linkedin.com/in/john-doe\"\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_profile_url\": \"https://www.linkedin.com/in/john-doe\"\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_profile_url\": \"https://www.linkedin.com/in/john-doe\"\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"
      }
    }
  ]
}
Find mutual connections between your LinkedIn account and a target lead via LinkedIn Sales Navigator. Returns 1st-degree connections you share with the target.

Use Cases

  • Find mutual connections with a prospect before reaching out
  • Discover shared alumni, colleagues, or group members with a target

Notes

  • Requires a connected LinkedIn account with Sales Navigator access
  • Accepts public LinkedIn URLs, Sales Nav URLs, or internal URNs

Authorizations

X-API-KEY
string
header
required

Body

application/json
linkedin_profile_url
string<uri>
required

LinkedIn profile URL of the target person. Accepts public profile URLs (/in/...), Sales Navigator URLs (/sales/lead/...), or internal LinkedIn URNs.

Example:

"https://www.linkedin.com/in/john-doe"

Response

Connections found successfully

total
integer

Total number of connections found

Example:

3

connections
object[]

List of mutual 1st-degree connections with the target