Skip to main content
POST
/
intents
/
leads
/
posts_engagers
Extract post engagers
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
}
Start an asynchronous extraction of leads that engaged with a LinkedIn post. You must provide:
  • 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, or all.
Optionally filter by persona (UUID), set a lead_list_name, company_size, or exclude_people_from_same_company. The API responds immediately with a search_id and expected_profiles_count; the actual engager profiles are delivered to your webhook.

Authorizations

X-API-KEY
string
header
required

Body

application/json
post_url
string<uri>
required

Valid LinkedIn post URL (use the link from the "share" button)

Example:

"https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789"

webhook_url
string<uri>
required

URL to receive the extracted engagers when the job completes

Example:

"https://your-company.com/webhooks/post-engagers"

engagement_type
enum<string>
required

Which engagements to extract: reactions only, comments only, or all

Available options:
reactions,
comments,
all
Example:

"all"

persona
string<uuid>

Optional persona UUID to filter engagers

Example:

"550e8400-e29b-41d4-a716-446655440000"

lead_list_name
string

Custom name for the search (defaults to "Social Post Tracking - ")

Example:

"Q1 campaign post engagers"

company_size
string[]

Optional company size filters for engagers

exclude_people_from_same_company
boolean

Whether to exclude engagers from the same company as the post author

Example:

false

Response

Post engagement extraction started; results will be sent to the webhook

message
string
Example:

"Post engagement extraction will begin shortly."

search_id
string<uuid>

Unique identifier for the search

Example:

"550e8400-e29b-41d4-a716-446655440000"

post_url
string<uri>

The post URL being tracked

expected_profiles_count
integer

Number of profiles that will be extracted and sent to the webhook

Example:

150