All endpoints
LinkedIn Posts

LinkedIn Posts API

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.

Price: $0.006 per request
Free tier: 50 requests/month
Endpoint
GET /v1/linkedin/posts

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)

Response fields

posts
Array of matching posts
title
Post title (format: @author on LinkedIn)
url
Direct link to the post
date
Publication date and time
author
Author name
source
Platform name (LinkedIn)
snippet
Post content text
page
Current page number
count
Number of results returned

Example Request

curl "https://api.apidirect.io/v1/linkedin/posts?query=artificial%20intelligence&page=1&sort_by=most_recent" \
  -H "Authorization: Bearer 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",
      "snippet": "Exciting developments in artificial intelligence..."
    }
  ],
  "page": 1,
  "count": 10
}

Frequently asked questions

What LinkedIn content can I search?

You can search all public LinkedIn posts. This includes posts from individuals and company pages. Private posts or connections-only content is not accessible.

Can I get engagement metrics like likes or comments?

Currently, the LinkedIn Posts API returns the post content, author, date, and URL. Engagement metrics (likes, comments, shares) are not included in the response.

How far back does the data go?

You can access posts from the past several years to a few seconds ago. Use the sort_by parameter to get most_recent posts first, or sort by relevance to find the best matches regardless of date.

How does pricing work?

You only pay for successful requests. The LinkedIn Posts API costs $0.006 per request. There are no monthly fees or commitments. You get 50 free requests per endpoint every month.

Do I need a credit card to start?

No. You can sign up and use the free tier (50 requests/endpoint/month) without adding a payment method. You only need to add a card when you want to exceed the free tier.

Are there rate limits?

Yes, there's a concurrency limit of 3 simultaneous requests per endpoint per user. If you need more, just get in touch.

Start using the LinkedIn Posts API

Get your API key and start making requests in minutes. 50 requests/month free every month.

Get API Key