Preview lookalike leads
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/lookalikes/preview \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"linkedin_url": "https://www.linkedin.com/in/jane-doe",
"extended": false,
"included_locations": [
"105015875"
],
"excluded_locations": [
"105015875"
],
"limit": 123,
"webhook_url": "<string>",
"name": "<string>"
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/lookalikes/preview"
payload = {
"linkedin_url": "https://www.linkedin.com/in/jane-doe",
"extended": False,
"included_locations": ["105015875"],
"excluded_locations": ["105015875"],
"limit": 123,
"webhook_url": "<string>",
"name": "<string>"
}
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/jane-doe',
extended: false,
included_locations: ['105015875'],
excluded_locations: ['105015875'],
limit: 123,
webhook_url: '<string>',
name: '<string>'
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/lookalikes/preview', 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/lookalikes/preview",
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/jane-doe',
'extended' => false,
'included_locations' => [
'105015875'
],
'excluded_locations' => [
'105015875'
],
'limit' => 123,
'webhook_url' => '<string>',
'name' => '<string>'
]),
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/lookalikes/preview"
payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/jane-doe\",\n \"extended\": false,\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [\n \"105015875\"\n ],\n \"limit\": 123,\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\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/lookalikes/preview")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_url\": \"https://www.linkedin.com/in/jane-doe\",\n \"extended\": false,\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [\n \"105015875\"\n ],\n \"limit\": 123,\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/lookalikes/preview")
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/jane-doe\",\n \"extended\": false,\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [\n \"105015875\"\n ],\n \"limit\": 123,\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"total_count": 840,
"search_url": "https://www.linkedin.com/sales/search/people?query=(filters%3AList(...))",
"preview": [
{
"full_name": "John Roe",
"headline": "VP Sales at Acme",
"current_company": "Acme",
"current_title": "VP Sales",
"linkedin_id": "123456789",
"profile_url": "https://www.linkedin.com/in/ACwAAA..."
}
]
}
Signals
Lookalike leads (preview)
Preview the people who look like a given LinkedIn profile
POST
/
intents
/
leads
/
lookalikes
/
preview
Preview lookalike leads
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/lookalikes/preview \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"linkedin_url": "https://www.linkedin.com/in/jane-doe",
"extended": false,
"included_locations": [
"105015875"
],
"excluded_locations": [
"105015875"
],
"limit": 123,
"webhook_url": "<string>",
"name": "<string>"
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/lookalikes/preview"
payload = {
"linkedin_url": "https://www.linkedin.com/in/jane-doe",
"extended": False,
"included_locations": ["105015875"],
"excluded_locations": ["105015875"],
"limit": 123,
"webhook_url": "<string>",
"name": "<string>"
}
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/jane-doe',
extended: false,
included_locations: ['105015875'],
excluded_locations: ['105015875'],
limit: 123,
webhook_url: '<string>',
name: '<string>'
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/lookalikes/preview', 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/lookalikes/preview",
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/jane-doe',
'extended' => false,
'included_locations' => [
'105015875'
],
'excluded_locations' => [
'105015875'
],
'limit' => 123,
'webhook_url' => '<string>',
'name' => '<string>'
]),
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/lookalikes/preview"
payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/jane-doe\",\n \"extended\": false,\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [\n \"105015875\"\n ],\n \"limit\": 123,\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\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/lookalikes/preview")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_url\": \"https://www.linkedin.com/in/jane-doe\",\n \"extended\": false,\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [\n \"105015875\"\n ],\n \"limit\": 123,\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/lookalikes/preview")
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/jane-doe\",\n \"extended\": false,\n \"included_locations\": [\n \"105015875\"\n ],\n \"excluded_locations\": [\n \"105015875\"\n ],\n \"limit\": 123,\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"total_count": 840,
"search_url": "https://www.linkedin.com/sales/search/people?query=(filters%3AList(...))",
"preview": [
{
"full_name": "John Roe",
"headline": "VP Sales at Acme",
"current_company": "Acme",
"current_title": "VP Sales",
"linkedin_id": "123456789",
"profile_url": "https://www.linkedin.com/in/ACwAAA..."
}
]
}
Find people similar to a LinkedIn profile, such as your best customer or your ideal buyer, before extracting any of them. Pipecorn reads the profile and builds a Sales Navigator people search:
A profile LinkedIn doesn’t return answers
- job titles similar to the profile’s current title
- the same industry and company size as their current company
- the same tenure in role
- Preview (this endpoint) returns the number of matching people, the Sales Navigator search URL and up to 25 sample leads.
- Extract saves the search and extracts the leads.
Requirements
- Free: no credits and no plan quota.
- A connected LinkedIn account with Sales Navigator. The search runs live on Sales Navigator, so there is no
live: falsemode.
Body
linkedin_url(required): the person’s LinkedIn profile (https://www.linkedin.com/in/<name>)extended:truewidens the search: it drops the tenure filter and includes the company sizes next to the person’s. Defaults tofalse.included_locations/excluded_locations: Sales Navigator location IDs, from Location IDs with live results
limit, webhook_url and name are accepted and ignored, so the same body works for both calls. Any other key is rejected with 422.
Example request
{
"linkedin_url": "https://www.linkedin.com/in/jane-doe",
"included_locations": ["105015875"]
}
Example response
{
"total_count": 840,
"search_url": "https://www.linkedin.com/sales/search/people?query=(filters%3AList(...))",
"preview": [
{
"full_name": "John Roe",
"headline": "VP Sales at Acme",
"current_company": "Acme",
"current_title": "VP Sales",
"linkedin_id": "123456789",
"profile_url": "https://www.linkedin.com/in/ACwAAA..."
}
]
}
404.Body
application/json
Was this page helpful?