curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/accounts/lookalikes \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"webhook_url": "https://your-company.com/webhooks/lookalikes",
"company_linkedin_url": "https://www.linkedin.com/company/acme-corp",
"company_linkedin_urls": [
"https://www.linkedin.com/company/acme-corp",
"https://www.linkedin.com/company/example-inc"
],
"streaming": false,
"limit": 100,
"company_size": [
"51-200",
"201-500"
],
"included_locations": [
"103644278"
],
"excluded_locations": [],
"live": true
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/accounts/lookalikes"
payload = {
"webhook_url": "https://your-company.com/webhooks/lookalikes",
"company_linkedin_url": "https://www.linkedin.com/company/acme-corp",
"company_linkedin_urls": ["https://www.linkedin.com/company/acme-corp", "https://www.linkedin.com/company/example-inc"],
"streaming": False,
"limit": 100,
"company_size": ["51-200", "201-500"],
"included_locations": ["103644278"],
"excluded_locations": [],
"live": True
}
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({
webhook_url: 'https://your-company.com/webhooks/lookalikes',
company_linkedin_url: 'https://www.linkedin.com/company/acme-corp',
company_linkedin_urls: [
'https://www.linkedin.com/company/acme-corp',
'https://www.linkedin.com/company/example-inc'
],
streaming: false,
limit: 100,
company_size: ['51-200', '201-500'],
included_locations: ['103644278'],
excluded_locations: [],
live: true
})
};
fetch('https://app.pipecorn.com/api/v2/intents/accounts/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/accounts/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([
'webhook_url' => 'https://your-company.com/webhooks/lookalikes',
'company_linkedin_url' => 'https://www.linkedin.com/company/acme-corp',
'company_linkedin_urls' => [
'https://www.linkedin.com/company/acme-corp',
'https://www.linkedin.com/company/example-inc'
],
'streaming' => false,
'limit' => 100,
'company_size' => [
'51-200',
'201-500'
],
'included_locations' => [
'103644278'
],
'excluded_locations' => [
],
'live' => true
]),
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/accounts/lookalikes"
payload := strings.NewReader("{\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"company_linkedin_url\": \"https://www.linkedin.com/company/acme-corp\",\n \"company_linkedin_urls\": [\n \"https://www.linkedin.com/company/acme-corp\",\n \"https://www.linkedin.com/company/example-inc\"\n ],\n \"streaming\": false,\n \"limit\": 100,\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"excluded_locations\": [],\n \"live\": true\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/accounts/lookalikes")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"company_linkedin_url\": \"https://www.linkedin.com/company/acme-corp\",\n \"company_linkedin_urls\": [\n \"https://www.linkedin.com/company/acme-corp\",\n \"https://www.linkedin.com/company/example-inc\"\n ],\n \"streaming\": false,\n \"limit\": 100,\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"excluded_locations\": [],\n \"live\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/accounts/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 \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"company_linkedin_url\": \"https://www.linkedin.com/company/acme-corp\",\n \"company_linkedin_urls\": [\n \"https://www.linkedin.com/company/acme-corp\",\n \"https://www.linkedin.com/company/example-inc\"\n ],\n \"streaming\": false,\n \"limit\": 100,\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"excluded_locations\": [],\n \"live\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "Lookalike search started successfully. You will receive the results on your webhook shortly.",
"id": "550e8400-e29b-41d4-a716-446655440000",
"total": 100,
"preview": [
{
"company_name": "Acme Corp",
"industry": "Software Development",
"linkedin_id": "12345",
"linkedin_url": "https://www.linkedin.com/company/12345"
}
],
"status_url": "https://app.pipecorn.com/api/v2/lists/8e1dcba0-f0bb-4071-99fc-f18ba6559ccc"
}Find companies lookalikes
Find companies that look like your target accounts. Provide one or more LinkedIn company URLs; the API uses them to generate a lookalike search and streams results to your webhook.
By default (live: true) the search runs live on LinkedIn Sales Navigator, so a connected Sales Navigator account is required, and at most 1000 companies are imported (total is capped at 1000, then at limit). With live: false it runs on the Pipecorn companies database and needs no integration.
Location IDs come from the Location IDs endpoint, with the source matching live: live for live: true, database for live: false.
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/accounts/lookalikes \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"webhook_url": "https://your-company.com/webhooks/lookalikes",
"company_linkedin_url": "https://www.linkedin.com/company/acme-corp",
"company_linkedin_urls": [
"https://www.linkedin.com/company/acme-corp",
"https://www.linkedin.com/company/example-inc"
],
"streaming": false,
"limit": 100,
"company_size": [
"51-200",
"201-500"
],
"included_locations": [
"103644278"
],
"excluded_locations": [],
"live": true
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/accounts/lookalikes"
payload = {
"webhook_url": "https://your-company.com/webhooks/lookalikes",
"company_linkedin_url": "https://www.linkedin.com/company/acme-corp",
"company_linkedin_urls": ["https://www.linkedin.com/company/acme-corp", "https://www.linkedin.com/company/example-inc"],
"streaming": False,
"limit": 100,
"company_size": ["51-200", "201-500"],
"included_locations": ["103644278"],
"excluded_locations": [],
"live": True
}
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({
webhook_url: 'https://your-company.com/webhooks/lookalikes',
company_linkedin_url: 'https://www.linkedin.com/company/acme-corp',
company_linkedin_urls: [
'https://www.linkedin.com/company/acme-corp',
'https://www.linkedin.com/company/example-inc'
],
streaming: false,
limit: 100,
company_size: ['51-200', '201-500'],
included_locations: ['103644278'],
excluded_locations: [],
live: true
})
};
fetch('https://app.pipecorn.com/api/v2/intents/accounts/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/accounts/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([
'webhook_url' => 'https://your-company.com/webhooks/lookalikes',
'company_linkedin_url' => 'https://www.linkedin.com/company/acme-corp',
'company_linkedin_urls' => [
'https://www.linkedin.com/company/acme-corp',
'https://www.linkedin.com/company/example-inc'
],
'streaming' => false,
'limit' => 100,
'company_size' => [
'51-200',
'201-500'
],
'included_locations' => [
'103644278'
],
'excluded_locations' => [
],
'live' => true
]),
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/accounts/lookalikes"
payload := strings.NewReader("{\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"company_linkedin_url\": \"https://www.linkedin.com/company/acme-corp\",\n \"company_linkedin_urls\": [\n \"https://www.linkedin.com/company/acme-corp\",\n \"https://www.linkedin.com/company/example-inc\"\n ],\n \"streaming\": false,\n \"limit\": 100,\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"excluded_locations\": [],\n \"live\": true\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/accounts/lookalikes")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"company_linkedin_url\": \"https://www.linkedin.com/company/acme-corp\",\n \"company_linkedin_urls\": [\n \"https://www.linkedin.com/company/acme-corp\",\n \"https://www.linkedin.com/company/example-inc\"\n ],\n \"streaming\": false,\n \"limit\": 100,\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"excluded_locations\": [],\n \"live\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/accounts/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 \"webhook_url\": \"https://your-company.com/webhooks/lookalikes\",\n \"company_linkedin_url\": \"https://www.linkedin.com/company/acme-corp\",\n \"company_linkedin_urls\": [\n \"https://www.linkedin.com/company/acme-corp\",\n \"https://www.linkedin.com/company/example-inc\"\n ],\n \"streaming\": false,\n \"limit\": 100,\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"excluded_locations\": [],\n \"live\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "Lookalike search started successfully. You will receive the results on your webhook shortly.",
"id": "550e8400-e29b-41d4-a716-446655440000",
"total": 100,
"preview": [
{
"company_name": "Acme Corp",
"industry": "Software Development",
"linkedin_id": "12345",
"linkedin_url": "https://www.linkedin.com/company/12345"
}
],
"status_url": "https://app.pipecorn.com/api/v2/lists/8e1dcba0-f0bb-4071-99fc-f18ba6559ccc"
}id, total count, and a preview of the first 10 matching companies.
You must provide either company_linkedin_url or company_linkedin_urls, plus webhook_url. Optionally filter by company_size, included_locations, and excluded_locations, and cap results with limit.
By default (live: true) the search runs live on LinkedIn Sales Navigator: it
needs a connected Sales Navigator account, and imports at most 1000 companies
whatever the limit. Pass live: false to search the Pipecorn companies
database instead, with no integration required.
Location IDs Reference
Location IDs used inincluded_locations and excluded_locations can be retrieved using the Location IDs endpoint, with "source": "live" for a live search or "source": "database" with live: false. Provide a location name (e.g. “San Francisco”) and the API returns matching locations with their IDs.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
Response
Lookalike search started; results will be sent to the webhook
Was this page helpful?