API Direct
Endpoints
LinkedIn Posts

LinkedIn Posts

GET /v1/linkedin/posts
Documentation

Search LinkedIn posts by keyword. Returns post title, URL, publication date, author name, and a text snippet for each matching result. 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...",
      "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