Count matching profiles
curl --request POST \
--url https://app.pipecorn.com/api/v2/accounts/count_profiles \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"company_linkedin_id": "1234567",
"title_to_include": [
"Software Engineer",
"Developer"
],
"title_to_exclude": [
"Junior"
],
"included_locations": [
"105015875",
"102221843"
],
"excluded_locations": [
"103644278"
]
}
'import requests
url = "https://app.pipecorn.com/api/v2/accounts/count_profiles"
payload = {
"company_linkedin_id": "1234567",
"title_to_include": ["Software Engineer", "Developer"],
"title_to_exclude": ["Junior"],
"included_locations": ["105015875", "102221843"],
"excluded_locations": ["103644278"]
}
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({
company_linkedin_id: '1234567',
title_to_include: ['Software Engineer', 'Developer'],
title_to_exclude: ['Junior'],
included_locations: ['105015875', '102221843'],
excluded_locations: ['103644278']
})
};
fetch('https://app.pipecorn.com/api/v2/accounts/count_profiles', 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/count_profiles",
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([
'company_linkedin_id' => '1234567',
'title_to_include' => [
'Software Engineer',
'Developer'
],
'title_to_exclude' => [
'Junior'
],
'included_locations' => [
'105015875',
'102221843'
],
'excluded_locations' => [
'103644278'
]
]),
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/count_profiles"
payload := strings.NewReader("{\n \"company_linkedin_id\": \"1234567\",\n \"title_to_include\": [\n \"Software Engineer\",\n \"Developer\"\n ],\n \"title_to_exclude\": [\n \"Junior\"\n ],\n \"included_locations\": [\n \"105015875\",\n \"102221843\"\n ],\n \"excluded_locations\": [\n \"103644278\"\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/count_profiles")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_linkedin_id\": \"1234567\",\n \"title_to_include\": [\n \"Software Engineer\",\n \"Developer\"\n ],\n \"title_to_exclude\": [\n \"Junior\"\n ],\n \"included_locations\": [\n \"105015875\",\n \"102221843\"\n ],\n \"excluded_locations\": [\n \"103644278\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/accounts/count_profiles")
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 \"company_linkedin_id\": \"1234567\",\n \"title_to_include\": [\n \"Software Engineer\",\n \"Developer\"\n ],\n \"title_to_exclude\": [\n \"Junior\"\n ],\n \"included_locations\": [\n \"105015875\",\n \"102221843\"\n ],\n \"excluded_locations\": [\n \"103644278\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"total": 26,
"title_to_include": [
"Software Engineer",
"Developer"
],
"title_to_exclude": [
"Junior"
],
"included_locations": [
"105015875",
"102221843"
],
"excluded_locations": [
"103644278"
]
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Accounts (Companies)
# people at company
Count matching profiles based on job titles and locations.
Rate limit: 2 requests per minute
POST
/
accounts
/
count_profiles
Count matching profiles
curl --request POST \
--url https://app.pipecorn.com/api/v2/accounts/count_profiles \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"company_linkedin_id": "1234567",
"title_to_include": [
"Software Engineer",
"Developer"
],
"title_to_exclude": [
"Junior"
],
"included_locations": [
"105015875",
"102221843"
],
"excluded_locations": [
"103644278"
]
}
'import requests
url = "https://app.pipecorn.com/api/v2/accounts/count_profiles"
payload = {
"company_linkedin_id": "1234567",
"title_to_include": ["Software Engineer", "Developer"],
"title_to_exclude": ["Junior"],
"included_locations": ["105015875", "102221843"],
"excluded_locations": ["103644278"]
}
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({
company_linkedin_id: '1234567',
title_to_include: ['Software Engineer', 'Developer'],
title_to_exclude: ['Junior'],
included_locations: ['105015875', '102221843'],
excluded_locations: ['103644278']
})
};
fetch('https://app.pipecorn.com/api/v2/accounts/count_profiles', 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/count_profiles",
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([
'company_linkedin_id' => '1234567',
'title_to_include' => [
'Software Engineer',
'Developer'
],
'title_to_exclude' => [
'Junior'
],
'included_locations' => [
'105015875',
'102221843'
],
'excluded_locations' => [
'103644278'
]
]),
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/count_profiles"
payload := strings.NewReader("{\n \"company_linkedin_id\": \"1234567\",\n \"title_to_include\": [\n \"Software Engineer\",\n \"Developer\"\n ],\n \"title_to_exclude\": [\n \"Junior\"\n ],\n \"included_locations\": [\n \"105015875\",\n \"102221843\"\n ],\n \"excluded_locations\": [\n \"103644278\"\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/count_profiles")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_linkedin_id\": \"1234567\",\n \"title_to_include\": [\n \"Software Engineer\",\n \"Developer\"\n ],\n \"title_to_exclude\": [\n \"Junior\"\n ],\n \"included_locations\": [\n \"105015875\",\n \"102221843\"\n ],\n \"excluded_locations\": [\n \"103644278\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/accounts/count_profiles")
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 \"company_linkedin_id\": \"1234567\",\n \"title_to_include\": [\n \"Software Engineer\",\n \"Developer\"\n ],\n \"title_to_exclude\": [\n \"Junior\"\n ],\n \"included_locations\": [\n \"105015875\",\n \"102221843\"\n ],\n \"excluded_locations\": [\n \"103644278\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"total": 26,
"title_to_include": [
"Software Engineer",
"Developer"
],
"title_to_exclude": [
"Junior"
],
"included_locations": [
"105015875",
"102221843"
],
"excluded_locations": [
"103644278"
]
}{
"error": 123,
"message": "<string>"
}{
"error": 123,
"message": "<string>"
}Count Profiles
The Count Profiles endpoint allows you to count the number of employee profiles matching specific criteria for a company. You can filter by job titles and locations to get precise counts of potential prospects.Required Parameters
You must provide one of the following to identify the target company:company_linkedin_id: The LinkedIn company identifiercompany_linkedin_url: The full URL of the company’s LinkedIn profile (regular or Sales Navigator)
Location IDs Reference
Location IDs used in this endpoint can be retrieved using the Location Ids endpoint. Simply provide a location name (e.g., “San Francisco”) and the API will return all matching locations with their IDs.Request Example
{
"company_linkedin_id": "1234567", // Required if company_linkedin_url is not provided
"title_to_include": ["Software Engineer", "Developer"],
"title_to_exclude": ["Junior"],
"included_locations": ["105015875", "102221843"],
"excluded_locations": ["103644278"]
}
{
"company_linkedin_url": "https://www.linkedin.com/company/microsoft", // Required if company_linkedin_id is not provided
// ... other parameters ...
}
Response Example
{
"total": 26,
"title_to_include": ["Software Engineer", "Developer"],
"title_to_exclude": ["Junior"],
"included_locations": ["105015875", "102221843"],
"excluded_locations": ["103644278"]
}
Understanding the Response
total: The total number of profiles matching your criteriatitle_to_include: List of job titles that were included in the searchtitle_to_exclude: List of job titles that were excluded from the searchincluded_locations: List of Location IDs that were includedexcluded_locations: List of Location IDs that were excluded
Tips
- Use location IDs to target specific geographic areas
- Combine title inclusions and exclusions to refine your search
- Keep your title filters relevant to ensure accurate results
Authorizations
Your API key
Body
application/json
- Option 1
- Option 2
LinkedIn company identifier
Example:
"1234567"
List of job titles that were included in the search
Example:
["Software Engineer", "Developer"]
List of job titles that were excluded from the search
Example:
["Junior"]
List of Location IDs that were included in the search
Example:
["105015875", "102221843"]
List of Location IDs that were excluded from the search
Example:
["103644278"]
Response
Successfully counted matching profiles
Total number of matching profiles
Example:
26
List of job titles that were included in the search
Example:
["Software Engineer", "Developer"]
List of job titles that were excluded from the search
Example:
["Junior"]
List of Location IDs that were included in the search
Example:
["105015875", "102221843"]
List of Location IDs that were excluded from the search
Example:
["103644278"]
Was this page helpful?