curl --request POST \
--url https://app.pipecorn.com/api/v2/accounts/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"search_url": "https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)",
"name": "Tech Companies 10M-100M Revenue",
"webhook_url": "https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8",
"streaming": false,
"limit": 100,
"custom": {
"source": "api",
"campaign": "q1_outreach"
}
}
'import requests
url = "https://app.pipecorn.com/api/v2/accounts/"
payload = {
"search_url": "https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)",
"name": "Tech Companies 10M-100M Revenue",
"webhook_url": "https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8",
"streaming": False,
"limit": 100,
"custom": {
"source": "api",
"campaign": "q1_outreach"
}
}
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({
search_url: 'https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)',
name: 'Tech Companies 10M-100M Revenue',
webhook_url: 'https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8',
streaming: false,
limit: 100,
custom: {source: 'api', campaign: 'q1_outreach'}
})
};
fetch('https://app.pipecorn.com/api/v2/accounts/', 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/",
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([
'search_url' => 'https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)',
'name' => 'Tech Companies 10M-100M Revenue',
'webhook_url' => 'https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8',
'streaming' => false,
'limit' => 100,
'custom' => [
'source' => 'api',
'campaign' => 'q1_outreach'
]
]),
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/"
payload := strings.NewReader("{\n \"search_url\": \"https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)\",\n \"name\": \"Tech Companies 10M-100M Revenue\",\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"streaming\": false,\n \"limit\": 100,\n \"custom\": {\n \"source\": \"api\",\n \"campaign\": \"q1_outreach\"\n }\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/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_url\": \"https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)\",\n \"name\": \"Tech Companies 10M-100M Revenue\",\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"streaming\": false,\n \"limit\": 100,\n \"custom\": {\n \"source\": \"api\",\n \"campaign\": \"q1_outreach\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/accounts/")
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 \"search_url\": \"https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)\",\n \"name\": \"Tech Companies 10M-100M Revenue\",\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"streaming\": false,\n \"limit\": 100,\n \"custom\": {\n \"source\": \"api\",\n \"campaign\": \"q1_outreach\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "8e1dcba0-f0bb-4071-99fc-f18ba6559ccc",
"import_name": "Tech Companies 10M-100M Revenue",
"import_url": "https://www.linkedin.com/sales-api/salesApiLeadSearch?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)",
"created_at": "2024-01-15T10:30:00Z",
"custom": {
"source": "api",
"campaign": "q1_outreach"
}
}Account search
Extract company accounts from a LinkedIn Sales Navigator search URL and process them asynchronously.
Rate limit: 1 request per second
This endpoint creates an import job that will process the search results in the background. Results will be sent to the specified webhook URL when processing is complete.
curl --request POST \
--url https://app.pipecorn.com/api/v2/accounts/ \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"search_url": "https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)",
"name": "Tech Companies 10M-100M Revenue",
"webhook_url": "https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8",
"streaming": false,
"limit": 100,
"custom": {
"source": "api",
"campaign": "q1_outreach"
}
}
'import requests
url = "https://app.pipecorn.com/api/v2/accounts/"
payload = {
"search_url": "https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)",
"name": "Tech Companies 10M-100M Revenue",
"webhook_url": "https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8",
"streaming": False,
"limit": 100,
"custom": {
"source": "api",
"campaign": "q1_outreach"
}
}
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({
search_url: 'https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)',
name: 'Tech Companies 10M-100M Revenue',
webhook_url: 'https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8',
streaming: false,
limit: 100,
custom: {source: 'api', campaign: 'q1_outreach'}
})
};
fetch('https://app.pipecorn.com/api/v2/accounts/', 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/",
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([
'search_url' => 'https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)',
'name' => 'Tech Companies 10M-100M Revenue',
'webhook_url' => 'https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8',
'streaming' => false,
'limit' => 100,
'custom' => [
'source' => 'api',
'campaign' => 'q1_outreach'
]
]),
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/"
payload := strings.NewReader("{\n \"search_url\": \"https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)\",\n \"name\": \"Tech Companies 10M-100M Revenue\",\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"streaming\": false,\n \"limit\": 100,\n \"custom\": {\n \"source\": \"api\",\n \"campaign\": \"q1_outreach\"\n }\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/")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"search_url\": \"https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)\",\n \"name\": \"Tech Companies 10M-100M Revenue\",\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"streaming\": false,\n \"limit\": 100,\n \"custom\": {\n \"source\": \"api\",\n \"campaign\": \"q1_outreach\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/accounts/")
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 \"search_url\": \"https://www.linkedin.com/sales/search/company?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)\",\n \"name\": \"Tech Companies 10M-100M Revenue\",\n \"webhook_url\": \"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8\",\n \"streaming\": false,\n \"limit\": 100,\n \"custom\": {\n \"source\": \"api\",\n \"campaign\": \"q1_outreach\"\n }\n}"
response = http.request(request)
puts response.read_body{
"id": "8e1dcba0-f0bb-4071-99fc-f18ba6559ccc",
"import_name": "Tech Companies 10M-100M Revenue",
"import_url": "https://www.linkedin.com/sales-api/salesApiLeadSearch?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)",
"created_at": "2024-01-15T10:30:00Z",
"custom": {
"source": "api",
"campaign": "q1_outreach"
}
}Overview
This endpoint allows you to extract company data from LinkedIn Sales Navigator search URLs. The process is asynchronous - you’ll receive an immediate response with the import job details, and the actual results will be sent to your webhook URL when processing is complete.Rate Limits
- 1 request per second per user/IP address
Authorizations
Your API key
Body
LinkedIn Sales Navigator company search URL. Must start with 'https://www.linkedin.com/sales/search/company'
"https://www.linkedin.com/sales/search/company?query=(filters%3AList((type%3AANNUAL_REVENUE%2CrangeValue%3A(min%3A10%2Cmax%3A100)%2CselectedSubFilter%3AUSD)%2C(type%3AINDUSTRY%2Cvalues%3AList((id%3A6%2Ctext%3ATechnologie%252C%2520information%2520et%2520Internet%2CselectionType%3AINCLUDED)))))&sessionId=uYap7SN9RS6itaRp2Vt7Xg%3D%3D&viewAllFilters=true"
Name for the import job
"Tech Companies 10M-100M Revenue"
Webhook URL to receive the processed results
"https://webhook.site/8b53c96f-f2cd-4c24-bc09-b3c2176d7ea8"
Enable streaming mode for real-time results
false
Custom attributes to associate with the import
{
"source": "api",
"campaign": "q1_outreach"
}
Maximum number of accounts to extract
100
Response
Import job created successfully
Unique identifier for the import job
"8e1dcba0-f0bb-4071-99fc-f18ba6559ccc"
Name of the import job
"Tech Companies 10M-100M Revenue"
The processed search URL used for extraction
"https://www.linkedin.com/sales-api/salesApiLeadSearch?query=(revenueRange:%22%2410M-%24100M%22%20AND%20employeeCountRange:%2211-50%22%20AND%20industry:%22Technology%2C%20Information%20and%20Internet%22)"
Creation timestamp of the import job
"2024-01-15T10:30:00Z"
Custom attributes associated with the import
{
"source": "api",
"campaign": "q1_outreach"
}
Was this page helpful?