Skip to main content
POST
/
v2
/
content
Search Posts
curl --request POST \
  --url https://api.example.com/v2/content \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "account_id": "<string>",
  "action": "<string>",
  "params": {
    "keyword": "<string>",
    "count": 123,
    "offset": 123,
    "post_type": "<string>",
    "sort_by": "<string>",
    "post_date": "<string>",
    "profile_url": "<string>",
    "company_url": "<string>",
    "author_company": "<string>",
    "author_industry": "<string>",
    "author_job_title": "<string>",
    "mentions_member": "<string>",
    "mentions_organization": "<string>",
    "posted_by": "<string>"
  }
}
'
{
  "success": true,
  "data": {
    "posts": [
      {
        "backend_urn": "urn:li:activity:7454082992819519488",
        "shareUrl": "https://www.linkedin.com/posts/jane-doe-42_post-activity-7454082992819519488-lXYU",
        "text": "Exciting developments in artificial intelligence this week...",
        "numLikes": 234,
        "numComments": 45,
        "numShares": 12,
        "actor_name": "Jane Doe",
        "actor_description": "AI Researcher at Acme Corp",
        "actor_image": "https://media.licdn.com/dms/image/v2/.../profile.jpg",
        "actor_profile_url": "https://www.linkedin.com/in/jane-doe-42",
        "created_time": 1777191911,
        "post_images": [],
        "shareAudience": "PUBLIC"
      }
    ],
    "total_results": 1,
    "total_available_results": 1240,
    "pagination": {
      "offset": 0,
      "count": 1,
      "next_offset": 1,
      "has_more": true,
      "results_per_page": 50,
      "pages_fetched": 1
    }
  },
  "metadata": {
    "action": "search",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-04-26T10:35:00Z"
  }
}

Overview

Search for posts using keywords with optional filters by author, company, industry, date, mentions, and more. Pagination is offset-based — set count for the page size and offset to skip ahead.
This endpoint consumes 1 credit per 10 results returned. LinkedIn returns up to 50 posts per internal request, so larger count values trigger multiple upstream calls automatically.

Request

x-api-key
string
required
Your API key for authentication.
account_id
string
required
The unique identifier of the account to use.
action
string
required
Must be "search".
params
object

Response

success
boolean
Indicates whether the request was successful.
data
object
metadata
object
{
  "success": true,
  "data": {
    "posts": [
      {
        "backend_urn": "urn:li:activity:7454082992819519488",
        "shareUrl": "https://www.linkedin.com/posts/jane-doe-42_post-activity-7454082992819519488-lXYU",
        "text": "Exciting developments in artificial intelligence this week...",
        "numLikes": 234,
        "numComments": 45,
        "numShares": 12,
        "actor_name": "Jane Doe",
        "actor_description": "AI Researcher at Acme Corp",
        "actor_image": "https://media.licdn.com/dms/image/v2/.../profile.jpg",
        "actor_profile_url": "https://www.linkedin.com/in/jane-doe-42",
        "created_time": 1777191911,
        "post_images": [],
        "shareAudience": "PUBLIC"
      }
    ],
    "total_results": 1,
    "total_available_results": 1240,
    "pagination": {
      "offset": 0,
      "count": 1,
      "next_offset": 1,
      "has_more": true,
      "results_per_page": 50,
      "pages_fetched": 1
    }
  },
  "metadata": {
    "action": "search",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-04-26T10:35:00Z"
  }
}