API Direct
Endpoints
LinkedIn Posts

LinkedIn Posts

GET /v1/linkedin/posts

Search LinkedIn posts by keyword. Returns post content, author, date, URL, engagement metrics (likes, comments, shares, reactions), and attached content (images, articles, videos, job listings). Results are sourced from public LinkedIn posts and articles.

Cost
$0.006 per request
Free tier
50 requests/month

Parameters

query
Search keyword (max 500 characters). Required unless at least one filter (e.g. author) is provided.
page
Page number for pagination (default: 1)
sort_by
Sort order: most_recent or relevance (default: most_recent)
author
Filter to posts authored by a specific person. Accepts a profile URL, public slug (e.g. williamhgates), or member URN — resolved automatically. Comma-separate for multiple.
mentions_member
Filter to posts that mention a specific person (profile URL, slug, or member URN).
from_company
Filter to posts authored by a company page. Numeric LinkedIn company ID (from the Company Details endpoint). Comma-separate for multiple.
author_company
Filter to posts by people who work at a company. Numeric company ID.
mentions_company
Filter to posts that mention a company. Numeric company ID.
author_title
Filter by the author's job title as free text (e.g. CEO).
author_industry
Filter by the author's industry. Numeric LinkedIn industry ID(s), comma-separated. Advanced.
get_sentiment
Set to true to add AI emotion analysis (+$0.001/request)

Example Request

curl "https://apidirect.io/v1/linkedin/posts?query=artificial%20intelligence&page=1&sort_by=most_recent" \
  -H "X-API-Key: YOUR_API_KEY"

Example Response

{
  "posts": [
    {
      "title": "@John Doe on LinkedIn",
      "url": "https://linkedin.com/posts/...",
      "date": "2024-01-15 14:30:00",
      "author": "John Doe",
      "source": "LinkedIn",
      "domain": "linkedin.com",
      "snippet": "Exciting developments in artificial intelligence...",
      "urn": "urn:li:activity:7444854690124652545",
      "likes": 12,
      "comments": 3,
      "shares": 1,
      "reactions": {
        "like": 10,
        "appreciation": 2
      },
      "images": [
        "https://media.licdn.com/dms/image/..."
      ],
      "article": null,
      "video": null,
      "job": null,
      "has_content_entities": true,
      "sentiment": {
        "emotions": {
          "joy": 40,
          "trust": 55,
          "fear": 0,
          "surprise": 10,
          "sadness": 0,
          "disgust": 0,
          "anger": 0,
          "anticipation": 30
        },
        "dominant_emotion": "trust",
        "emotional_intensity": 5,
        "polarity": "positive"
      }
    }
  ],
  "page": 1,
  "count": 10
}

Your Usage

Free tier this month
Loading...
Recent Activity