curl --request POST \
--url https://api.preceptai.co.uk/v1/leads/post-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keywords": [
"SEO problem",
"struggling with SEO",
"search rankings dropped"
],
"timeframe": "month",
"limit": 30,
"name": "LinkedIn SEO problem posts",
"includeContactDetails": false
}
'{
"message": "Lead search job successfully created and 30 leads are being processed.",
"enrichment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>"
}Discover People from LinkedIn Posts
Discover leads directly from authors who recently published LinkedIn posts matching specific keywords.
Unlike /v1/leads/search (which searches by persona query), this endpoint discovers leads directly from content authors without requiring a persona query or running LLM query analysis.
Each result is one post author (a lead), not a raw post. Results are returned via GET /v1/jobs/{jobId} (or your webhook).
By default (findFullProfile: false, 0.1 credits per lead), each result includes the author’s name and LinkedIn link (full_name, first_name, last_name, linkedin, user_name) plus a post object:
url: link to the LinkedIn postcontent: post text (truncated to 2000 characters)posted_at: when the post was publishedlikes_count: number of likes/reactionscomments_count: number of comments
Pass findFullProfile: true (1.1 credits per lead) to also enrich full profile fields (job_title, company_name, company_domain, location, country, connections_count, followers, enrich_email, enrich_phone).
With findInsights: true (1.5 credits per lead), results also include full profile fields plus summary, top_problems, internal_strategic_initiatives and public_appearances.
Use sortBy: "likes" or sortBy: "comments" to get the most-engaged posts instead of the default relevance order. Pass exactMatch: true when every returned post.content must contain the literal keyword or phrase without singular/plural stemming.
Optionally enrich leads with verified contact details (emails/phones) and AI insights.
curl --request POST \
--url https://api.preceptai.co.uk/v1/leads/post-search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"keywords": [
"SEO problem",
"struggling with SEO",
"search rankings dropped"
],
"timeframe": "month",
"limit": 30,
"name": "LinkedIn SEO problem posts",
"includeContactDetails": false
}
'{
"message": "Lead search job successfully created and 30 leads are being processed.",
"enrichment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>"
}Authorizations
Body
How to rank matching posts. 'relevance' (default) keeps LinkedIn's relevance order. 'likes' or 'comments' selects the most-liked or most-commented posts from a larger candidate pool and returns results in descending order of that metric (ties broken by the other metric). Sorting is done by Precept, not by LinkedIn. No extra cost.
relevance, likes, comments When false (default, 0.1 credits per lead), returns the author's name, LinkedIn URL, username, and post directly without full profile lookup. When true (1.1 credits per lead), enriches full profile details (job_title, company_name, company_domain, location, country, connections_count, followers). Automatically enabled when findInsights or includeContactDetails is true.
