API · LinkedIn
GET /linkedin/search/posts
LinkedIn post search by keywords, date, content type, author, author company and industry.
| Request | GET /v1/linkedin/search/posts |
| Operation id | linkedin.posts.search |
| Cost | 5 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
LinkedIn post search by keywords, date, content type, author, author company and industry.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
keywords | string | yes | Words to match. Example: outbound sales. |
sort | "relevance" | "date" | no | Default relevance. One of relevance, date. |
date_posted | "past_24h" | "past_week" | "past_month" | no | Only posts from this window. One of past_24h, past_week, past_month. |
content_type | "videos" | "images" | "articles" | "documents" | "live_videos" | no | Only posts with this kind of media. One of videos, images, articles, documents, live_videos. |
from_member | string | no | Authors: profile ids (ACoAA…), comma-separated (up to 10). |
from_company | string | no | Posted by company pages: numeric ids, comma-separated (up to 10). Example: 1035. |
author_company | string | no | Authors who work at: numeric ids, comma-separated (up to 10). Example: 1035. |
author_industry | string | no | Authors in industry: numeric ids, comma-separated (up to 10). Example: 43. |
after | string | no | Cursor: the previous page’s after, unchanged. |
account | string | no | Optional: the id of a LinkedIn account you connected (POST /v1/linkedin/accounts). The read then runs as that account (what it can see, its network distance) instead of on the shared pool. Example: csn_01JDX9EXAMPLE0000000000. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | A page of posts. | LinkedInPostSearchPage |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | LinkedIn has no such public page, or it was removed. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | LinkedIn is temporarily unavailable. Retryable; nothing was charged. | Error |
LinkedInPostSearchPage fields
| Field | Type | Description |
|---|---|---|
total | integer | null | |
data | LinkedInSessionPost[] | |
after | string | null | Pass as after for the next page; null at the end. |
Errors use one shape everywhere; see Errors for every code and what to do.