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": []
}
'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": []
}
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: []
})
};
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' => [
]
]),
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}")
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}")
.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}"
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"
}
]
}{
"error": 400,
"message": "Either company_linkedin_url or company_linkedin_urls is required in your payload"
}{
"error": 123,
"message": "<string>"
}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. Location IDs can be retrieved using the Location IDs endpoint.
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": []
}
'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": []
}
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: []
})
};
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' => [
]
]),
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}")
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}")
.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}"
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"
}
]
}{
"error": 400,
"message": "Either company_linkedin_url or company_linkedin_urls is required in your payload"
}{
"error": 123,
"message": "<string>"
}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.
Location IDs Reference
Location IDs used inincluded_locations and excluded_locations can be retrieved using the Location IDs endpoint. Provide a location name (e.g. “San Francisco”) and the API returns matching locations with their IDs.Authorizations
Body
URL to receive lookalike results
"https://your-company.com/webhooks/lookalikes"
Single LinkedIn company URL to use as reference (use this or company_linkedin_urls)
"https://www.linkedin.com/company/acme-corp"
LinkedIn company URLs to use as reference, up to 3 used for LLM keyword generation (use this or company_linkedin_url)
[
"https://www.linkedin.com/company/acme-corp",
"https://www.linkedin.com/company/example-inc"
]
Whether to stream results to the webhook as they are found
false
Maximum number of companies to return
x >= 1100
Company size range filters (e.g. headcount bands)
["51-200", "201-500"]
Location IDs to include (use Location IDs endpoint to resolve names)
[103644278]
Location IDs to exclude
[]
Response
Lookalike search started; results will be sent to the webhook
Confirmation message
"Lookalike search started successfully. You will receive the results on your webhook shortly."
Unique identifier for the import/search
"550e8400-e29b-41d4-a716-446655440000"
Total number of companies that will be processed
100
First 10 matching companies as a preview
Show child attributes
Show child attributes
Was this page helpful?