curl --request POST \
--url https://app.pipecorn.com/api/v2/accounts/search \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"webhook_url": "https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8",
"name": "Tech Companies in US",
"included_industries": [
"6"
],
"excluded_industries": [
"12"
],
"included_locations": [
"103644278"
],
"company_size": [
"51-200",
"201-500"
],
"keyword": "saas",
"min_revenue": 10,
"max_revenue": 100,
"revenue_currency": "USD",
"limit": 500,
"streaming": false
}
'import requests
url = "https://app.pipecorn.com/api/v2/accounts/search"
payload = {
"webhook_url": "https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8",
"name": "Tech Companies in US",
"included_industries": ["6"],
"excluded_industries": ["12"],
"included_locations": ["103644278"],
"company_size": ["51-200", "201-500"],
"keyword": "saas",
"min_revenue": 10,
"max_revenue": 100,
"revenue_currency": "USD",
"limit": 500,
"streaming": False
}
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://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8',
name: 'Tech Companies in US',
included_industries: ['6'],
excluded_industries: ['12'],
included_locations: ['103644278'],
company_size: ['51-200', '201-500'],
keyword: 'saas',
min_revenue: 10,
max_revenue: 100,
revenue_currency: 'USD',
limit: 500,
streaming: false
})
};
fetch('https://app.pipecorn.com/api/v2/accounts/search', 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/accounts/search",
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://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8',
'name' => 'Tech Companies in US',
'included_industries' => [
'6'
],
'excluded_industries' => [
'12'
],
'included_locations' => [
'103644278'
],
'company_size' => [
'51-200',
'201-500'
],
'keyword' => 'saas',
'min_revenue' => 10,
'max_revenue' => 100,
'revenue_currency' => 'USD',
'limit' => 500,
'streaming' => false
]),
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/accounts/search"
payload := strings.NewReader("{\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"name\": \"Tech Companies in US\",\n \"included_industries\": [\n \"6\"\n ],\n \"excluded_industries\": [\n \"12\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"keyword\": \"saas\",\n \"min_revenue\": 10,\n \"max_revenue\": 100,\n \"revenue_currency\": \"USD\",\n \"limit\": 500,\n \"streaming\": false\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/accounts/search")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"name\": \"Tech Companies in US\",\n \"included_industries\": [\n \"6\"\n ],\n \"excluded_industries\": [\n \"12\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"keyword\": \"saas\",\n \"min_revenue\": 10,\n \"max_revenue\": 100,\n \"revenue_currency\": \"USD\",\n \"limit\": 500,\n \"streaming\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/accounts/search")
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://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"name\": \"Tech Companies in US\",\n \"included_industries\": [\n \"6\"\n ],\n \"excluded_industries\": [\n \"12\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"keyword\": \"saas\",\n \"min_revenue\": 10,\n \"max_revenue\": 100,\n \"revenue_currency\": \"USD\",\n \"limit\": 500,\n \"streaming\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "Account search started successfully. You will receive the results on your webhook shortly.",
"id": "8e1dcba0-f0bb-4071-99fc-f18ba6559ccc",
"total": 342,
"preview": [
{
"company_name": "Pipecorn",
"industry": "Technology, Information and Internet",
"linkedin_id": "104885158",
"linkedin_url": "https://www.linkedin.com/company/104885158"
}
],
"status_url": "https://app.pipecorn.com/api/v2/lists/8e1dcba0-f0bb-4071-99fc-f18ba6559ccc"
}Search accounts by filters
Search and extract company accounts based on industry, location, size, and keyword filters
curl --request POST \
--url https://app.pipecorn.com/api/v2/accounts/search \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"webhook_url": "https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8",
"name": "Tech Companies in US",
"included_industries": [
"6"
],
"excluded_industries": [
"12"
],
"included_locations": [
"103644278"
],
"company_size": [
"51-200",
"201-500"
],
"keyword": "saas",
"min_revenue": 10,
"max_revenue": 100,
"revenue_currency": "USD",
"limit": 500,
"streaming": false
}
'import requests
url = "https://app.pipecorn.com/api/v2/accounts/search"
payload = {
"webhook_url": "https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8",
"name": "Tech Companies in US",
"included_industries": ["6"],
"excluded_industries": ["12"],
"included_locations": ["103644278"],
"company_size": ["51-200", "201-500"],
"keyword": "saas",
"min_revenue": 10,
"max_revenue": 100,
"revenue_currency": "USD",
"limit": 500,
"streaming": False
}
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://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8',
name: 'Tech Companies in US',
included_industries: ['6'],
excluded_industries: ['12'],
included_locations: ['103644278'],
company_size: ['51-200', '201-500'],
keyword: 'saas',
min_revenue: 10,
max_revenue: 100,
revenue_currency: 'USD',
limit: 500,
streaming: false
})
};
fetch('https://app.pipecorn.com/api/v2/accounts/search', 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/accounts/search",
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://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8',
'name' => 'Tech Companies in US',
'included_industries' => [
'6'
],
'excluded_industries' => [
'12'
],
'included_locations' => [
'103644278'
],
'company_size' => [
'51-200',
'201-500'
],
'keyword' => 'saas',
'min_revenue' => 10,
'max_revenue' => 100,
'revenue_currency' => 'USD',
'limit' => 500,
'streaming' => false
]),
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/accounts/search"
payload := strings.NewReader("{\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"name\": \"Tech Companies in US\",\n \"included_industries\": [\n \"6\"\n ],\n \"excluded_industries\": [\n \"12\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"keyword\": \"saas\",\n \"min_revenue\": 10,\n \"max_revenue\": 100,\n \"revenue_currency\": \"USD\",\n \"limit\": 500,\n \"streaming\": false\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/accounts/search")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"name\": \"Tech Companies in US\",\n \"included_industries\": [\n \"6\"\n ],\n \"excluded_industries\": [\n \"12\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"keyword\": \"saas\",\n \"min_revenue\": 10,\n \"max_revenue\": 100,\n \"revenue_currency\": \"USD\",\n \"limit\": 500,\n \"streaming\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/accounts/search")
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://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"name\": \"Tech Companies in US\",\n \"included_industries\": [\n \"6\"\n ],\n \"excluded_industries\": [\n \"12\"\n ],\n \"included_locations\": [\n \"103644278\"\n ],\n \"company_size\": [\n \"51-200\",\n \"201-500\"\n ],\n \"keyword\": \"saas\",\n \"min_revenue\": 10,\n \"max_revenue\": 100,\n \"revenue_currency\": \"USD\",\n \"limit\": 500,\n \"streaming\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "Account search started successfully. You will receive the results on your webhook shortly.",
"id": "8e1dcba0-f0bb-4071-99fc-f18ba6559ccc",
"total": 342,
"preview": [
{
"company_name": "Pipecorn",
"industry": "Technology, Information and Internet",
"linkedin_id": "104885158",
"linkedin_url": "https://www.linkedin.com/company/104885158"
}
],
"status_url": "https://app.pipecorn.com/api/v2/lists/8e1dcba0-f0bb-4071-99fc-f18ba6559ccc"
}Overview
This endpoint allows you to search for companies based on various criteria without needing to provide a LinkedIn Sales Navigator URL. The process is asynchronous - you’ll receive an immediate response with the import job details and a preview of matching accounts, and the complete enriched results will be sent to your webhook URL when processing is complete.Rate Limits
- Your plan’s per-minute request limit, counted per user (see Rate Limiting)
Search Filters
Industries
Target or exclude specific industries using industry IDs. Multiple industry IDs are combined with OR logic. Parameters:included_industries: Array of industry IDs to targetexcluded_industries: Array of industry IDs to exclude from results
4- Automotive6- Technology, Information and Internet12- Education43- Financial Services96- Software Development
Locations
Use the Location IDs endpoint to find valid location IDs. You can include or exclude specific locations:included_locations: Target specific countries, states, or citiesexcluded_locations: Exclude specific locations from results
Company Size
Filter by employee count ranges:1-10- Startup/Very Small11-50- Small51-200- Medium201-500- Medium-Large501-1000- Large1001-5000- Very Large5001-10000- Enterprise10001+- Mega Corporation
Keyword
Search for companies by keyword in their name or description. This is useful for targeting specific niches or technologies (e.g., “saas”, “fintech”, “healthcare”).Revenue
Filter companies by their annual revenue range. Revenue values are specified in millions and can be combined with a currency code. Parameters:min_revenue: Minimum annual revenue (in millions). Valid values:0,0.5,1,2.5,5,10,20,50,100,500,1000max_revenue: Maximum annual revenue (in millions). Valid values:0.5,1,2.5,5,10,20,50,100,500,1000,1001(where1001represents $1B+)revenue_currency: Currency code for revenue values. Defaults toUSDif not specified.
USD, EUR, GBP, CAD, AUD, JPY, CNY, INR, BRL, SEK, NOK, DKK, SGD, HKD, NZD, THB, IDR, TRY, TWD, ILS, AED, RUB
Example: To find companies with revenue between $10M-$50M:
{
"min_revenue": 10,
"max_revenue": 50,
"revenue_currency": "USD"
}
Pipecorn database filters
Withlive: false, the search runs on the Pipecorn company database and accepts the same filters as the company search in the app. With live: true (Sales Navigator), sending any of them answers 422 naming the filters it can’t apply.
| Filter | What it matches |
|---|---|
company_types | Public Company, Privately Held, Non Profit, Educational Institution, Partnership, Self-Employed, Self Owned, Government Agency |
business_models | saas |
min_headcount, max_headcount | An exact employee range. Replaces company_size when set |
min_year_founded, max_year_founded | Founding year |
last_funding_within_days | Last round raised within this many days |
min_last_funding_amount, max_last_funding_amount | Size of the last round, in USD millions |
min_headcount_growth, max_headcount_growth | Company headcount growth, in percent, over headcount_growth_period (mom, qoq, six_months, yoy; default yoy) |
department_headcounts | Rules such as {"department": "Sales", "min": 10}. department_headcount_match: all (default) or any |
department_growths | Growth rules per department, in percent over headcount_growth_period. department_growth_match: all (default) or any |
min_monthly_visitors, max_monthly_visitors | Monthly website visitors |
min_monthly_visitor_growth, max_monthly_visitor_growth | Website traffic growth, in percent, over monthly_visitor_growth_period (mom or qoq; default mom) |
included_company_lists, excluded_company_lists | Companies saved in your company lists, by list id from GET /lists |
competitors_of | Competitors of up to 10 companies, by LinkedIn company id |
with_job_titles, without_job_titles | Companies where someone currently holds one of up to 25 job titles, or where no one holds any of them. CTO also finds CTO & Co-Founder; quote a title ("\"Owner\"") for an exact match |
industry_codes | Companies with any of the given NAF or NAICS activity codes, including their descendants |
excluded_industry_codes | Removes companies matching any of the given NAF or NAICS activity codes or their descendants |
legal_ids | Companies with any of up to 1,000 French SIRENs. Use { "type": "siren", "value": "340677871" }. A SIRET is accepted and matched using its SIREN |
{
"live": false,
"webhook_url": "https://your-webhook.com/accounts",
"included_locations": ["country:fr"],
"company_types": ["Privately Held"],
"min_year_founded": 2018,
"last_funding_within_days": 365,
"headcount_growth_period": "yoy",
"department_growths": [{ "department": "Sales", "min": 20 }]
}
{
"live": false,
"webhook_url": "https://your-webhook.com/accounts",
"included_locations": ["country:fr"],
"business_models": ["saas"],
"with_job_titles": ["Head of Sales"],
"without_job_titles": ["RevOps", "Revenue Operations"]
}
CEO, Engineer), it keeps the companies with the most matching people, so narrow the search with other filters for an exact answer.
Activity codes
Useindustry_codes to include companies and excluded_industry_codes to exclude them. Both filters take objects with system and code. An optional label is accepted and ignored. These filters and legal_ids work with live: false on both search and preview, regardless of your workspace’s Local business settings.
| System | Levels and example codes |
|---|---|
French NAF Rev. 2 (naf_rev2) | Section J, division 62, group 62.0, class 62.01, subclass 62.01Z. Keep the dot where shown. |
NAICS (naics) | Sector 54, subsector 541, industry group 5415, NAICS industry 54151, national industry 541511. Keep the dash in grouped sectors such as 31-33. |
422 and identifies the invalid value.
This search matches companies with NAICS 5415 or any of its descendants, including 541511 and 541512.
{
"live": false,
"webhook_url": "https://your-webhook.com/accounts",
"industry_codes": [{ "system": "naics", "code": "5415" }]
}
Limits
By default, the endpoint will process up to 1,000 matching accounts. You can set a lower limit using thelimit parameter. The minimum of your specified limit and 1,000 will be used.
limit must be a positive integer: a value that is not a whole number answers 422 with "Limit must be an integer", and 0 or a negative value with "Limit must be greater than 0". A webhook_url that is not an http or https URL answers 422 with "Invalid webhook_url format".
Streaming Mode
Whenstreaming is set to true, results will be sent to your webhook in batches as they are processed, rather than all at once when complete. This is useful for large searches where you want to start processing results immediately.
Response
The endpoint returns immediately with:- A unique import job ID for tracking
- The total number of accounts that will be processed
- A preview of the first 10 matching accounts
live: false, each preview account includes industry_codes (system, code, label) and legal_ids (type, value). Each field is an empty array when no data is available. The company import webhook also includes both fields on each company. The list returned by GET /lists/{id} omits them.
Example Use Cases
Find SaaS companies in US tech hubs
{
"webhook_url": "https://your-webhook.com/accounts",
"name": "US Tech SaaS Companies",
"included_industries": ["6", "96"],
"included_locations": ["103644278"],
"company_size": ["51-200", "201-500"],
"keyword": "saas"
}
Target European fintech startups
{
"webhook_url": "https://your-webhook.com/accounts",
"name": "European Fintech Startups",
"included_industries": ["43"],
"included_locations": ["100506914", "105015875", "101165590"],
"company_size": ["11-50", "51-200"],
"limit": 500
}
Find large automotive companies excluding specific regions
{
"webhook_url": "https://your-webhook.com/accounts",
"name": "Global Automotive Giants",
"included_industries": ["4"],
"excluded_locations": ["102221843"],
"company_size": ["5001-10000", "10001+"]
}
Find high-revenue tech companies in Europe
{
"webhook_url": "https://your-webhook.com/accounts",
"name": "High Revenue European Tech",
"included_industries": ["6", "96"],
"included_locations": ["100506914", "105015875"],
"min_revenue": 100,
"max_revenue": 1001,
"revenue_currency": "EUR"
}
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
Company types to include. Requires live: false (Pipecorn database); with live: true the request answers 422.
Public Company, Privately Held, Non Profit, Educational Institution, Partnership, Self-Employed, Self Owned, Government Agency ["Privately Held"]
Only return companies where someone currently holds one of these job titles. Titles match like job_titles on lead search: CTO also finds CTO & Co-Founder; put a title in quotes ("Owner") for an exact match. Up to 25. Requires live: false (Pipecorn database); with live: true the request answers 422.
25["Head of Sales"]
Data source toggle. true (default) searches live through LinkedIn Sales Navigator and requires a connected Sales Navigator integration. false serves the count, preview, and extracted accounts from Pipecorn's companies database (Elasticsearch) instead, with no integration required. A non-boolean value returns 422.
true
Response
Account search started successfully
Was this page helpful?