Extract lookalike leads
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/lookalikes \
--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": 200,
"webhook_url": "https://your-company.com/webhooks/lookalikes",
"name": "Lookalikes of Jane"
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/lookalikes"
payload = {
"linkedin_url": "https://www.linkedin.com/in/jane-doe",
"extended": False,
"included_locations": ["105015875"],
"excluded_locations": ["105015875"],
"limit": 200,
"webhook_url": "https://your-company.com/webhooks/lookalikes",
"name": "Lookalikes of Jane"
}
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: 200,
webhook_url: 'https://your-company.com/webhooks/lookalikes',
name: 'Lookalikes of Jane'
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/lookalikes', 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",
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' => 200,
'webhook_url' => 'https://your-company.com/webhooks/lookalikes',
'name' => 'Lookalikes of Jane'
]),
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"
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\": 200,\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"name\": \"Lookalikes of Jane\"\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")
.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\": 200,\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"name\": \"Lookalikes of Jane\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/lookalikes")
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\": 200,\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"name\": \"Lookalikes of Jane\"\n}"
response = http.request(request)
puts response.read_body{
"total_count": 0,
"message": "No similar profiles found, so no search was created"
}Signals
Lookalike leads
Extract the people who look like a given LinkedIn profile
POST
/
intents
/
leads
/
lookalikes
Extract lookalike leads
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/lookalikes \
--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": 200,
"webhook_url": "https://your-company.com/webhooks/lookalikes",
"name": "Lookalikes of Jane"
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/lookalikes"
payload = {
"linkedin_url": "https://www.linkedin.com/in/jane-doe",
"extended": False,
"included_locations": ["105015875"],
"excluded_locations": ["105015875"],
"limit": 200,
"webhook_url": "https://your-company.com/webhooks/lookalikes",
"name": "Lookalikes of Jane"
}
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: 200,
webhook_url: 'https://your-company.com/webhooks/lookalikes',
name: 'Lookalikes of Jane'
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/lookalikes', 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",
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' => 200,
'webhook_url' => 'https://your-company.com/webhooks/lookalikes',
'name' => 'Lookalikes of Jane'
]),
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"
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\": 200,\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"name\": \"Lookalikes of Jane\"\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")
.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\": 200,\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"name\": \"Lookalikes of Jane\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/lookalikes")
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\": 200,\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"name\": \"Lookalikes of Jane\"\n}"
response = http.request(request)
puts response.read_body{
"total_count": 0,
"message": "No similar profiles found, so no search was created"
}Extract the people similar to a LinkedIn profile into a lead search. Run the preview first to see how many match for free.
Pipecorn builds the same Sales Navigator search as the preview, then saves it as an API lead search. It runs exactly like
POST /leads/advanced_search:
- Extraction uses your daily profile-extraction plan quota, not credits.
- Leads are enriched as they are extracted.
Body
Takes the same keys as the preview (linkedin_url, extended, included_locations, excluded_locations), plus:
limit: the number of leads to extract, up to 2,500. Defaults to every match, capped at 2,500.webhook_url: where the leads are POSTed as the search runsname: the name of the search
Getting the results
The response returns the searchid right away. Poll status_url, which is GET /searches/{id}, until status is finished, or receive the leads on webhook_url. When no one matches, the request answers 200 with total_count: 0 and creates no search.
Example request
{
"linkedin_url": "https://www.linkedin.com/in/jane-doe",
"limit": 200,
"webhook_url": "https://your-company.com/webhooks/lookalikes"
}
Example response
{
"message": {
"id": "8e1dcba0-f0bb-4071-99fc-f18ba6559ccc",
"search_name": "Lookalikes - API - 18/11/2026 15:02",
"search_url": "https://www.linkedin.com/sales/search/people?query=(filters%3AList(...))",
"expected_profiles_count": 840,
"created_at": "2026-11-18T15:02:11Z"
},
"status_url": "https://app.pipecorn.com/api/v2/searches/8e1dcba0-f0bb-4071-99fc-f18ba6559ccc"
}
expected_profiles_count is the number of people matching before limit, capped at 2,500.Body
application/json
Was this page helpful?