LinkedIn Post search API
Search public LinkedIn posts by keyword with cursor pagination: text, link and publish date.
Provider network
Providers ranked by traffic
Try it
Make your first request
{
"found": true,
"data": {
"posts": [
{
"url": "https://www.linkedin.com/posts/aagupta_ai-agents-activity-7354600338621906944-RvXR",
"text": "Here’s a simple guide to the 4 categories of AI agents you should know…",
"publishedAt": "2025-07-25T19:56:02.566Z"
}
]
}
}interface LinkedinSearchPostsResponse {
data: {
nextCursor?: string | null;
posts: {
authorName?: string;
authorUrl?: string;
avatarUrl?: string;
commentCount?: number;
createdUtc: number;
id: string;
reactionCount?: number;
text: string;
url: string;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Full parameter and response reference - every field, type, and example for this endpoint.
Reference
Request, response, and price
Last verified 2026-09-20 · uptime and latency measured over 30dcurl -X POST https://api.getanyapi.com/v1/run/linkedin.search_posts \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"ai agents"}'| Field | Type | Example value |
|---|---|---|
| Request body | ||
| query | string | "ai agents"The post search query. |
| cursor | string | Pagination cursor from a previous response. |
| datePosted | enum | Filter by recency. One of last-hour, last-day, last-week, last-month, last-year. |
| requireCursor | boolean | Deprecated. Every source for this search returns a nextCursor, so this changes nothing about the price or which source serves you; it stays accepted so callers that already send it keep working. |
| Response | ||
| found | boolean | true |
| data | object | |
| data.posts | array | |
| data.posts[].url | string | "https://www.linkedin.com/posts/aagupta_ai-agents-activity-7354600338621906944-RvXR" |
| data.posts[].text | string | "Here’s a simple guide to the 4 categories of AI agents you should know…" |
| data.posts[].publishedAt | string | "2025-07-25T19:56:02.566Z" |
| Price | ||
| Price per request | USD | $0.0012 |
| Price /1k req | USD | $1.20 |
FAQ
About the LinkedIn Post search API
The AnyAPI LinkedIn Post search API returns LinkedIn post search data as normalized JSON from one POST call to /v1/run/linkedin.search_posts. Search public LinkedIn posts by keyword with cursor pagination: text, link and publish date. AnyAPI routes each request across 2 sources and falls back automatically when one fails. It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. Over the last 30 days, 99.1% of LinkedIn post search calls through AnyAPI succeeded, with a median response time of 3.7 seconds across 5,006 measured calls.