LinkedIn API

LinkedIn Post search API

Search public LinkedIn posts by keyword with cursor pagination: text, link and publish date.

POST/v1/run/linkedin.search_posts
Uptime
99.10%
30d · 5,006 calls
Requests
5,482
30d · weekly, last 12 wks
Response
3.7s
median · 30d

Try it

Make your first request

Open in
Get a free key
Sample response
Free runs return only the first 3 results. Fund a key to get the full response.
{
  "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"
      }
    ]
  }
}
Response interface
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 30d
POST /v1/run/linkedin.search_posts
curl -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"}'
FieldTypeExample value
Request body
querystring"ai agents"The post search query.
cursorstringPagination cursor from a previous response.
datePostedenumFilter by recency. One of last-hour, last-day, last-week, last-month, last-year.
requireCursorbooleanDeprecated. 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
foundbooleantrue
dataobject
data.postsarray
data.posts[].urlstring"https://www.linkedin.com/posts/aagupta_ai-agents-activity-7354600338621906944-RvXR"
data.posts[].textstring"Here’s a simple guide to the 4 categories of AI agents you should know…"
data.posts[].publishedAtstring"2025-07-25T19:56:02.566Z"
Price
Price per requestUSD$0.0012
Price /1k reqUSD$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.

It costs from $1.20 per 1,000 requests, in US dollars with no subscription and no monthly minimum. You fund one USD wallet, each call draws it down, and a failed request costs $0.

Search public LinkedIn posts by keyword with cursor pagination: text, link and publish date. The response is normalized JSON with the same envelope every AnyAPI endpoint returns, so parsing a second endpoint is a change of URL and nothing else.

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. These are AnyAPI's own measurements of traffic through the gateway, recomputed continuously, not a published service-level target.