GroundsocialDocs

API · LinkedIn

GET /linkedin/search/posts

LinkedIn post search by keywords, date, content type, author, author company and industry.

RequestGET /v1/linkedin/search/posts
Operation idlinkedin.posts.search
Cost5 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

LinkedIn post search by keywords, date, content type, author, author company and industry.

Query parameters

NameTypeRequiredDescription
keywordsstringyesWords to match. Example: outbound sales.
sort"relevance" | "date"noDefault relevance. One of relevance, date.
date_posted"past_24h" | "past_week" | "past_month"noOnly posts from this window. One of past_24h, past_week, past_month.
content_type"videos" | "images" | "articles" | "documents" | "live_videos"noOnly posts with this kind of media. One of videos, images, articles, documents, live_videos.
from_memberstringnoAuthors: profile ids (ACoAA…), comma-separated (up to 10).
from_companystringnoPosted by company pages: numeric ids, comma-separated (up to 10). Example: 1035.
author_companystringnoAuthors who work at: numeric ids, comma-separated (up to 10). Example: 1035.
author_industrystringnoAuthors in industry: numeric ids, comma-separated (up to 10). Example: 43.
afterstringnoCursor: the previous page’s after, unchanged.
accountstringnoOptional: 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

StatusMeaningSchema
200A page of posts.LinkedInPostSearchPage
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404LinkedIn has no such public page, or it was removed.Error
429Too many requests. Wait for Retry-After seconds.Error
503LinkedIn is temporarily unavailable. Retryable; nothing was charged.Error

LinkedInPostSearchPage fields

FieldTypeDescription
totalinteger | null
dataLinkedInSessionPost[]
afterstring | nullPass as after for the next page; null at the end.

Errors use one shape everywhere; see Errors for every code and what to do.