Skip to main content
POST
/
intents
/
accounts
/
lookalikes
Find company lookalikes
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 that look like your target accounts. Send one or more LinkedIn company URLs; the API uses them (up to 3 for keyword generation) to build a lookalike search and delivers results to your webhook. The response includes an import 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 in included_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

X-API-KEY
string
header
required

Body

application/json
webhook_url
string<uri>
required

URL to receive lookalike results

Example:

"https://your-company.com/webhooks/lookalikes"

company_linkedin_url
string<uri>

Single LinkedIn company URL to use as reference (use this or company_linkedin_urls)

Example:

"https://www.linkedin.com/company/acme-corp"

company_linkedin_urls
string<uri>[]

LinkedIn company URLs to use as reference, up to 3 used for LLM keyword generation (use this or company_linkedin_url)

Example:
[
"https://www.linkedin.com/company/acme-corp",
"https://www.linkedin.com/company/example-inc"
]
streaming
boolean

Whether to stream results to the webhook as they are found

Example:

false

limit
integer

Maximum number of companies to return

Required range: x >= 1
Example:

100

company_size
string[]

Company size range filters (e.g. headcount bands)

Example:
["51-200", "201-500"]
included_locations
integer[]

Location IDs to include (use Location IDs endpoint to resolve names)

Example:
[103644278]
excluded_locations
integer[]

Location IDs to exclude

Example:
[]

Response

Lookalike search started; results will be sent to the webhook

message
string

Confirmation message

Example:

"Lookalike search started successfully. You will receive the results on your webhook shortly."

id
string

Unique identifier for the import/search

Example:

"550e8400-e29b-41d4-a716-446655440000"

total
integer

Total number of companies that will be processed

Example:

100

preview
object[]

First 10 matching companies as a preview