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)
page
Page number for pagination (default: 1)
sort_by
Sort order: most_recent or relevance (default: most_recent)
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