Search company followers (v2)
curl --request POST \
--url https://api.leadsforge.ai/public/v1/v2/company-followers/search \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"companyUrl": "https://www.linkedin.com/company/hubspot",
"limit": 5000,
"countries": [
"<string>"
],
"departments": [
"<string>"
],
"icpFilters": [
{
"type": "<string>",
"values": [
{
"exclude": true,
"id": "<string>",
"text": "<string>"
}
]
}
],
"jobTitles": [
"<string>"
],
"levels": [
"<string>"
],
"states": [
"<string>"
],
"webhookURL": "https://example.com/webhooks/followers"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companyUrl: 'https://www.linkedin.com/company/hubspot',
limit: 5000,
countries: ['<string>'],
departments: ['<string>'],
icpFilters: [
{type: '<string>', values: [{exclude: true, id: '<string>', text: '<string>'}]}
],
jobTitles: ['<string>'],
levels: ['<string>'],
states: ['<string>'],
webhookURL: 'https://example.com/webhooks/followers'
})
};
fetch('https://api.leadsforge.ai/public/v1/v2/company-followers/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companyUrl: 'https://www.linkedin.com/company/hubspot',
limit: 5000,
countries: ['<string>'],
departments: ['<string>'],
icpFilters: [
{type: '<string>', values: [{exclude: true, id: '<string>', text: '<string>'}]}
],
jobTitles: ['<string>'],
levels: ['<string>'],
states: ['<string>'],
webhookURL: 'https://example.com/webhooks/followers'
})
};
fetch('https://api.leadsforge.ai/public/v1/v2/company-followers/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.leadsforge.ai/public/v1/v2/company-followers/search';
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companyUrl: 'https://www.linkedin.com/company/hubspot',
limit: 5000,
countries: ['<string>'],
departments: ['<string>'],
icpFilters: [
{type: '<string>', values: [{exclude: true, id: '<string>', text: '<string>'}]}
],
jobTitles: ['<string>'],
levels: ['<string>'],
states: ['<string>'],
webhookURL: 'https://example.com/webhooks/followers'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.leadsforge.ai/public/v1/v2/company-followers/search"
payload = {
"companyUrl": "https://www.linkedin.com/company/hubspot",
"limit": 5000,
"countries": ["<string>"],
"departments": ["<string>"],
"icpFilters": [
{
"type": "<string>",
"values": [
{
"exclude": True,
"id": "<string>",
"text": "<string>"
}
]
}
],
"jobTitles": ["<string>"],
"levels": ["<string>"],
"states": ["<string>"],
"webhookURL": "https://example.com/webhooks/followers"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadsforge.ai/public/v1/v2/company-followers/search"
payload := strings.NewReader("{\n \"companyUrl\": \"https://www.linkedin.com/company/hubspot\",\n \"limit\": 5000,\n \"countries\": [\n \"<string>\"\n ],\n \"departments\": [\n \"<string>\"\n ],\n \"icpFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"exclude\": true,\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"jobTitles\": [\n \"<string>\"\n ],\n \"levels\": [\n \"<string>\"\n ],\n \"states\": [\n \"<string>\"\n ],\n \"webhookURL\": \"https://example.com/webhooks/followers\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://api.leadsforge.ai/public/v1/v2/company-followers/search")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"companyUrl\": \"https://www.linkedin.com/company/hubspot\",\n \"limit\": 5000,\n \"countries\": [\n \"<string>\"\n ],\n \"departments\": [\n \"<string>\"\n ],\n \"icpFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"exclude\": true,\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"jobTitles\": [\n \"<string>\"\n ],\n \"levels\": [\n \"<string>\"\n ],\n \"states\": [\n \"<string>\"\n ],\n \"webhookURL\": \"https://example.com/webhooks/followers\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.leadsforge.ai/public/v1/v2/company-followers/search");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"companyUrl\": \"https://www.linkedin.com/company/hubspot\",\n \"limit\": 5000,\n \"countries\": [\n \"<string>\"\n ],\n \"departments\": [\n \"<string>\"\n ],\n \"icpFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"exclude\": true,\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"jobTitles\": [\n \"<string>\"\n ],\n \"levels\": [\n \"<string>\"\n ],\n \"states\": [\n \"<string>\"\n ],\n \"webhookURL\": \"https://example.com/webhooks/followers\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadsforge.ai/public/v1/v2/company-followers/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([
'companyUrl' => 'https://www.linkedin.com/company/hubspot',
'limit' => 5000,
'countries' => [
'<string>'
],
'departments' => [
'<string>'
],
'icpFilters' => [
[
'type' => '<string>',
'values' => [
[
'exclude' => true,
'id' => '<string>',
'text' => '<string>'
]
]
]
],
'jobTitles' => [
'<string>'
],
'levels' => [
'<string>'
],
'states' => [
'<string>'
],
'webhookURL' => 'https://example.com/webhooks/followers'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.leadsforge.ai/public/v1/v2/company-followers/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"companyUrl\": \"https://www.linkedin.com/company/hubspot\",\n \"limit\": 5000,\n \"countries\": [\n \"<string>\"\n ],\n \"departments\": [\n \"<string>\"\n ],\n \"icpFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"exclude\": true,\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"jobTitles\": [\n \"<string>\"\n ],\n \"levels\": [\n \"<string>\"\n ],\n \"states\": [\n \"<string>\"\n ],\n \"webhookURL\": \"https://example.com/webhooks/followers\"\n}"
response = http.request(request)
puts response.read_body{
"collected": 4870,
"companyLogoUrl": "https://media.licdn.com/dms/image/company-logo.jpg",
"companyName": "HubSpot",
"companyUrl": "https://www.linkedin.com/company/hubspot",
"completedAt": "<string>",
"createdAt": "<string>",
"creditsUsed": 4870,
"error": "<string>",
"followerCount": 1765399,
"jobID": "a1b2c3d4-0000-0000-0000-000000000000",
"resultsURL": "<string>",
"status": "in_progress",
"statusURL": "<string>",
"updatedAt": "<string>",
"webhookURL": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}Company followers v2
Search company followers (v2)
Starts an async scrape of a LinkedIn company page’s followers. limit is required (max 50000) and credits for it are reserved up front; you are charged only for followers delivered. Optional icpFilters (see GET /v2/company-followers/filters) narrow the audience by any LinkedIn filter, including excludes; countries, states, jobTitles, departments and levels are matched to those filters by name. A value that is not supported returns 400 instead of silently widening the search. Supports Idempotency-Key and a webhookURL that receives jobID, status (completed|failed), listID, companyUrl, companyName, followerCount, collected and error (failure only) when the job ends.
POST
/
v2
/
company-followers
/
search
Search company followers (v2)
curl --request POST \
--url https://api.leadsforge.ai/public/v1/v2/company-followers/search \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"companyUrl": "https://www.linkedin.com/company/hubspot",
"limit": 5000,
"countries": [
"<string>"
],
"departments": [
"<string>"
],
"icpFilters": [
{
"type": "<string>",
"values": [
{
"exclude": true,
"id": "<string>",
"text": "<string>"
}
]
}
],
"jobTitles": [
"<string>"
],
"levels": [
"<string>"
],
"states": [
"<string>"
],
"webhookURL": "https://example.com/webhooks/followers"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companyUrl: 'https://www.linkedin.com/company/hubspot',
limit: 5000,
countries: ['<string>'],
departments: ['<string>'],
icpFilters: [
{type: '<string>', values: [{exclude: true, id: '<string>', text: '<string>'}]}
],
jobTitles: ['<string>'],
levels: ['<string>'],
states: ['<string>'],
webhookURL: 'https://example.com/webhooks/followers'
})
};
fetch('https://api.leadsforge.ai/public/v1/v2/company-followers/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companyUrl: 'https://www.linkedin.com/company/hubspot',
limit: 5000,
countries: ['<string>'],
departments: ['<string>'],
icpFilters: [
{type: '<string>', values: [{exclude: true, id: '<string>', text: '<string>'}]}
],
jobTitles: ['<string>'],
levels: ['<string>'],
states: ['<string>'],
webhookURL: 'https://example.com/webhooks/followers'
})
};
fetch('https://api.leadsforge.ai/public/v1/v2/company-followers/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.leadsforge.ai/public/v1/v2/company-followers/search';
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companyUrl: 'https://www.linkedin.com/company/hubspot',
limit: 5000,
countries: ['<string>'],
departments: ['<string>'],
icpFilters: [
{type: '<string>', values: [{exclude: true, id: '<string>', text: '<string>'}]}
],
jobTitles: ['<string>'],
levels: ['<string>'],
states: ['<string>'],
webhookURL: 'https://example.com/webhooks/followers'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.leadsforge.ai/public/v1/v2/company-followers/search"
payload = {
"companyUrl": "https://www.linkedin.com/company/hubspot",
"limit": 5000,
"countries": ["<string>"],
"departments": ["<string>"],
"icpFilters": [
{
"type": "<string>",
"values": [
{
"exclude": True,
"id": "<string>",
"text": "<string>"
}
]
}
],
"jobTitles": ["<string>"],
"levels": ["<string>"],
"states": ["<string>"],
"webhookURL": "https://example.com/webhooks/followers"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadsforge.ai/public/v1/v2/company-followers/search"
payload := strings.NewReader("{\n \"companyUrl\": \"https://www.linkedin.com/company/hubspot\",\n \"limit\": 5000,\n \"countries\": [\n \"<string>\"\n ],\n \"departments\": [\n \"<string>\"\n ],\n \"icpFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"exclude\": true,\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"jobTitles\": [\n \"<string>\"\n ],\n \"levels\": [\n \"<string>\"\n ],\n \"states\": [\n \"<string>\"\n ],\n \"webhookURL\": \"https://example.com/webhooks/followers\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<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://api.leadsforge.ai/public/v1/v2/company-followers/search")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"companyUrl\": \"https://www.linkedin.com/company/hubspot\",\n \"limit\": 5000,\n \"countries\": [\n \"<string>\"\n ],\n \"departments\": [\n \"<string>\"\n ],\n \"icpFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"exclude\": true,\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"jobTitles\": [\n \"<string>\"\n ],\n \"levels\": [\n \"<string>\"\n ],\n \"states\": [\n \"<string>\"\n ],\n \"webhookURL\": \"https://example.com/webhooks/followers\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.leadsforge.ai/public/v1/v2/company-followers/search");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"companyUrl\": \"https://www.linkedin.com/company/hubspot\",\n \"limit\": 5000,\n \"countries\": [\n \"<string>\"\n ],\n \"departments\": [\n \"<string>\"\n ],\n \"icpFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"exclude\": true,\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"jobTitles\": [\n \"<string>\"\n ],\n \"levels\": [\n \"<string>\"\n ],\n \"states\": [\n \"<string>\"\n ],\n \"webhookURL\": \"https://example.com/webhooks/followers\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadsforge.ai/public/v1/v2/company-followers/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([
'companyUrl' => 'https://www.linkedin.com/company/hubspot',
'limit' => 5000,
'countries' => [
'<string>'
],
'departments' => [
'<string>'
],
'icpFilters' => [
[
'type' => '<string>',
'values' => [
[
'exclude' => true,
'id' => '<string>',
'text' => '<string>'
]
]
]
],
'jobTitles' => [
'<string>'
],
'levels' => [
'<string>'
],
'states' => [
'<string>'
],
'webhookURL' => 'https://example.com/webhooks/followers'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.leadsforge.ai/public/v1/v2/company-followers/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"companyUrl\": \"https://www.linkedin.com/company/hubspot\",\n \"limit\": 5000,\n \"countries\": [\n \"<string>\"\n ],\n \"departments\": [\n \"<string>\"\n ],\n \"icpFilters\": [\n {\n \"type\": \"<string>\",\n \"values\": [\n {\n \"exclude\": true,\n \"id\": \"<string>\",\n \"text\": \"<string>\"\n }\n ]\n }\n ],\n \"jobTitles\": [\n \"<string>\"\n ],\n \"levels\": [\n \"<string>\"\n ],\n \"states\": [\n \"<string>\"\n ],\n \"webhookURL\": \"https://example.com/webhooks/followers\"\n}"
response = http.request(request)
puts response.read_body{
"collected": 4870,
"companyLogoUrl": "https://media.licdn.com/dms/image/company-logo.jpg",
"companyName": "HubSpot",
"companyUrl": "https://www.linkedin.com/company/hubspot",
"completedAt": "<string>",
"createdAt": "<string>",
"creditsUsed": 4870,
"error": "<string>",
"followerCount": 1765399,
"jobID": "a1b2c3d4-0000-0000-0000-000000000000",
"resultsURL": "<string>",
"status": "in_progress",
"statusURL": "<string>",
"updatedAt": "<string>",
"webhookURL": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}Authorizations
Headers
Body
application/json
Search request
Search request
Response
Job created
Was this page helpful?
