Preview competitor followers
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/competitor_followers/preview \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"company_linkedin_url": "https://www.linkedin.com/company/pipecorn",
"limit": 2,
"persona": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_url": "<string>",
"name": "<string>"
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/competitor_followers/preview"
payload = {
"company_linkedin_url": "https://www.linkedin.com/company/pipecorn",
"limit": 2,
"persona": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_url": "<string>",
"name": "<string>"
}
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_url: 'https://www.linkedin.com/company/pipecorn',
limit: 2,
persona: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
webhook_url: '<string>',
name: '<string>'
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/competitor_followers/preview', 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/leads/competitor_followers/preview",
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_url' => 'https://www.linkedin.com/company/pipecorn',
'limit' => 2,
'persona' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'webhook_url' => '<string>',
'name' => '<string>'
]),
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/leads/competitor_followers/preview"
payload := strings.NewReader("{\n \"company_linkedin_url\": \"https://www.linkedin.com/company/pipecorn\",\n \"limit\": 2,\n \"persona\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\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/leads/competitor_followers/preview")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_linkedin_url\": \"https://www.linkedin.com/company/pipecorn\",\n \"limit\": 2,\n \"persona\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/competitor_followers/preview")
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_url\": \"https://www.linkedin.com/company/pipecorn\",\n \"limit\": 2,\n \"persona\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"company": {
"name": "Pipecorn",
"linkedin_id": "12345678",
"linkedin_url": "https://www.linkedin.com/company/pipecorn",
"industry": "Software Development",
"employee_range": "11-50",
"location": "Paris, Île-de-France"
},
"follower_count": 4210,
"credits_per_follower": 1,
"minimum_credits": 1000,
"estimated_credits": 4210
}Signals
Competitor followers (preview)
Count the followers of a company page and price their extraction
POST
/
intents
/
leads
/
competitor_followers
/
preview
Preview competitor followers
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/competitor_followers/preview \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"company_linkedin_url": "https://www.linkedin.com/company/pipecorn",
"limit": 2,
"persona": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_url": "<string>",
"name": "<string>"
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/competitor_followers/preview"
payload = {
"company_linkedin_url": "https://www.linkedin.com/company/pipecorn",
"limit": 2,
"persona": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"webhook_url": "<string>",
"name": "<string>"
}
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_url: 'https://www.linkedin.com/company/pipecorn',
limit: 2,
persona: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
webhook_url: '<string>',
name: '<string>'
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/competitor_followers/preview', 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/leads/competitor_followers/preview",
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_url' => 'https://www.linkedin.com/company/pipecorn',
'limit' => 2,
'persona' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'webhook_url' => '<string>',
'name' => '<string>'
]),
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/leads/competitor_followers/preview"
payload := strings.NewReader("{\n \"company_linkedin_url\": \"https://www.linkedin.com/company/pipecorn\",\n \"limit\": 2,\n \"persona\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\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/leads/competitor_followers/preview")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_linkedin_url\": \"https://www.linkedin.com/company/pipecorn\",\n \"limit\": 2,\n \"persona\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/competitor_followers/preview")
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_url\": \"https://www.linkedin.com/company/pipecorn\",\n \"limit\": 2,\n \"persona\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"webhook_url\": \"<string>\",\n \"name\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"company": {
"name": "Pipecorn",
"linkedin_id": "12345678",
"linkedin_url": "https://www.linkedin.com/company/pipecorn",
"industry": "Software Development",
"employee_range": "11-50",
"location": "Paris, Île-de-France"
},
"follower_count": 4210,
"credits_per_follower": 1,
"minimum_credits": 1000,
"estimated_credits": 4210
}Find out how many people follow a company’s LinkedIn page, and what extracting
them would cost, before spending any credits. This is the free first step of
the two-step competitor-followers signal:
- Preview (this endpoint) returns the company, its follower count and the price. No credits.
- Extract starts an async extraction of the followers into a search. Spends enrichment credits.
Credits and requirements
- Credits: free
- Requires a connected LinkedIn account: the follower count comes from LinkedIn.
Without one the request returns
422. - Authentication: standard v2 scheme (
X-API-KEY)
The company URL
company_linkedin_url is the company’s LinkedIn page:
https://www.linkedin.com/company/<name>, or /school/ and /showcase/ pages.
A numeric https://www.linkedin.com/company/<id> URL works too when your LinkedIn
account has Sales Navigator, which turns the id into the page’s name. A page
LinkedIn does not know returns 404.
Accepted keys
The body takescompany_linkedin_url. The extract-only keys limit,
persona, webhook_url and name are accepted and ignored, so the same body
works for the preview and the
extract call. Any
other key is rejected with 422.
Example request
{
"company_linkedin_url": "https://www.linkedin.com/company/pipecorn"
}
Example response
{
"company": {
"name": "Pipecorn",
"linkedin_id": "12345678",
"linkedin_url": "https://www.linkedin.com/company/pipecorn",
"industry": "Software Development",
"employee_range": "11-50",
"location": "Paris, Île-de-France"
},
"follower_count": 4210,
"credits_per_follower": 1,
"minimum_credits": 1000,
"estimated_credits": 4210
}
estimated_credits is the price of extracting every follower:
max(follower_count, minimum_credits).Body
application/json
Response
The company and the price of extracting its followers
Was this page helpful?