curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/posts_engagers \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"post_url": "https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789",
"webhook_url": "https://your-company.com/webhooks/post-engagers",
"engagement_type": "all",
"persona": "550e8400-e29b-41d4-a716-446655440000",
"lead_list_name": "Q1 campaign post engagers",
"company_size": [
"<string>"
],
"exclude_people_from_same_company": false
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/posts_engagers"
payload = {
"post_url": "https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789",
"webhook_url": "https://your-company.com/webhooks/post-engagers",
"engagement_type": "all",
"persona": "550e8400-e29b-41d4-a716-446655440000",
"lead_list_name": "Q1 campaign post engagers",
"company_size": ["<string>"],
"exclude_people_from_same_company": 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({
post_url: 'https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789',
webhook_url: 'https://your-company.com/webhooks/post-engagers',
engagement_type: 'all',
persona: '550e8400-e29b-41d4-a716-446655440000',
lead_list_name: 'Q1 campaign post engagers',
company_size: ['<string>'],
exclude_people_from_same_company: false
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/posts_engagers', 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/posts_engagers",
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([
'post_url' => 'https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789',
'webhook_url' => 'https://your-company.com/webhooks/post-engagers',
'engagement_type' => 'all',
'persona' => '550e8400-e29b-41d4-a716-446655440000',
'lead_list_name' => 'Q1 campaign post engagers',
'company_size' => [
'<string>'
],
'exclude_people_from_same_company' => 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/intents/leads/posts_engagers"
payload := strings.NewReader("{\n \"post_url\": \"https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789\",\n \"webhook_url\": \"https://your-company.com/webhooks/post-engagers\",\n \"engagement_type\": \"all\",\n \"persona\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"lead_list_name\": \"Q1 campaign post engagers\",\n \"company_size\": [\n \"<string>\"\n ],\n \"exclude_people_from_same_company\": 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/intents/leads/posts_engagers")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"post_url\": \"https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789\",\n \"webhook_url\": \"https://your-company.com/webhooks/post-engagers\",\n \"engagement_type\": \"all\",\n \"persona\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"lead_list_name\": \"Q1 campaign post engagers\",\n \"company_size\": [\n \"<string>\"\n ],\n \"exclude_people_from_same_company\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/posts_engagers")
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 \"post_url\": \"https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789\",\n \"webhook_url\": \"https://your-company.com/webhooks/post-engagers\",\n \"engagement_type\": \"all\",\n \"persona\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"lead_list_name\": \"Q1 campaign post engagers\",\n \"company_size\": [\n \"<string>\"\n ],\n \"exclude_people_from_same_company\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "Post engagement extraction will begin shortly.",
"search_id": "550e8400-e29b-41d4-a716-446655440000",
"post_url": "<string>",
"expected_profiles_count": 150
}Post engagers
Start an asynchronous extraction of leads that engaged with a LinkedIn post.
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/posts_engagers \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"post_url": "https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789",
"webhook_url": "https://your-company.com/webhooks/post-engagers",
"engagement_type": "all",
"persona": "550e8400-e29b-41d4-a716-446655440000",
"lead_list_name": "Q1 campaign post engagers",
"company_size": [
"<string>"
],
"exclude_people_from_same_company": false
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/posts_engagers"
payload = {
"post_url": "https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789",
"webhook_url": "https://your-company.com/webhooks/post-engagers",
"engagement_type": "all",
"persona": "550e8400-e29b-41d4-a716-446655440000",
"lead_list_name": "Q1 campaign post engagers",
"company_size": ["<string>"],
"exclude_people_from_same_company": 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({
post_url: 'https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789',
webhook_url: 'https://your-company.com/webhooks/post-engagers',
engagement_type: 'all',
persona: '550e8400-e29b-41d4-a716-446655440000',
lead_list_name: 'Q1 campaign post engagers',
company_size: ['<string>'],
exclude_people_from_same_company: false
})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/posts_engagers', 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/posts_engagers",
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([
'post_url' => 'https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789',
'webhook_url' => 'https://your-company.com/webhooks/post-engagers',
'engagement_type' => 'all',
'persona' => '550e8400-e29b-41d4-a716-446655440000',
'lead_list_name' => 'Q1 campaign post engagers',
'company_size' => [
'<string>'
],
'exclude_people_from_same_company' => 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/intents/leads/posts_engagers"
payload := strings.NewReader("{\n \"post_url\": \"https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789\",\n \"webhook_url\": \"https://your-company.com/webhooks/post-engagers\",\n \"engagement_type\": \"all\",\n \"persona\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"lead_list_name\": \"Q1 campaign post engagers\",\n \"company_size\": [\n \"<string>\"\n ],\n \"exclude_people_from_same_company\": 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/intents/leads/posts_engagers")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"post_url\": \"https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789\",\n \"webhook_url\": \"https://your-company.com/webhooks/post-engagers\",\n \"engagement_type\": \"all\",\n \"persona\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"lead_list_name\": \"Q1 campaign post engagers\",\n \"company_size\": [\n \"<string>\"\n ],\n \"exclude_people_from_same_company\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/posts_engagers")
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 \"post_url\": \"https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789\",\n \"webhook_url\": \"https://your-company.com/webhooks/post-engagers\",\n \"engagement_type\": \"all\",\n \"persona\": \"550e8400-e29b-41d4-a716-446655440000\",\n \"lead_list_name\": \"Q1 campaign post engagers\",\n \"company_size\": [\n \"<string>\"\n ],\n \"exclude_people_from_same_company\": false\n}"
response = http.request(request)
puts response.read_body{
"message": "Post engagement extraction will begin shortly.",
"search_id": "550e8400-e29b-41d4-a716-446655440000",
"post_url": "<string>",
"expected_profiles_count": 150
}- post_url — A valid LinkedIn post URL (use the link from the Share button on the post).
- webhook_url — URL where results will be sent when the job completes.
- engagement_type — One of
reactions,comments, orall.
search_id and expected_profiles_count; the actual engager profiles are delivered to your webhook.Authorizations
Body
Valid LinkedIn post URL (use the link from the "share" button)
"https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789"
URL to receive the extracted engagers when the job completes
"https://your-company.com/webhooks/post-engagers"
Which engagements to extract: reactions only, comments only, or all
reactions, comments, all "all"
Optional persona UUID to filter engagers
"550e8400-e29b-41d4-a716-446655440000"
Custom name for the search (defaults to "Social Post Tracking - ")
"Q1 campaign post engagers"
Optional company size filters for engagers
Whether to exclude engagers from the same company as the post author
false
Response
Post engagement extraction started; results will be sent to the webhook
"Post engagement extraction will begin shortly."
Unique identifier for the search
"550e8400-e29b-41d4-a716-446655440000"
The post URL being tracked
Number of profiles that will be extracted and sent to the webhook
150
Was this page helpful?