API reference · LinkedIn

linkedin/bulk/post-search

Integrate this model through SandBase's unified API, with production-ready schemas and examples.

Production endpoint

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

POSThttps://api.sandbase.ai/v1/run
Model IDlinkedin/bulk/post-search
01

Input Schema

24 parameters · 0 required · 24 optional

ParameterTypeRequiredDescription
sortBystringOptionalSort by 'relevance' or 'date'. · Options: relevance, date
relevancedate
maxPostsintegerOptionalMaximum number of posts to scrape per each search query. If you set this to 0, it will scrape all posts. · Min: -9007199254740991 · Max: 9007199254740991
startPageintegerOptionalThe page number to start scraping from. · Min: 1 · Max: 100 · Default: 1
authorUrlsarrayOptionalList of LinkedIn profile or company URLs to scrape. Example: `https://www.linkedin.com/in/williamhgates` will fetch posted or re-posted content by Bill Gates.
contentTypestringOptionalFilter posts by content type. For example, if you choose 'Videos', it will scrape only posts containing videos. · Options: all, videos, images, jobs, live_videos, documents, collaborative_articles
allvideosimagesjobslive_videosdocumentscollaborative_articles
maxCommentsintegerOptionalMaximum number of comments to scrape per post. Default is 10. · Min: -9007199254740991 · Max: 9007199254740991
postedLimitstringOptionalFetch posts no older than X time. Options: '1h', '24h', 'week', 'month'. · Options: any, 1h, 24h, week, month, 3months, 6months, year
any1h24hweekmonth3months6monthsyear
scrapePagesintegerOptionalThe number of search pages to scrape. Each page contains 100 posts · Min: 0 · Max: 100
maxReactionsintegerOptionalMaximum number of reactions to scrape per post. Default is 10. · Min: -9007199254740991 · Max: 9007199254740991
searchQueriesarrayOptionalQueries to search LinkedIn posts. The same query as you would use in the LinkedIn search bar.
authorKeywordsstringOptionalScrape posts of profile-authors whose profiles contain at least one of these keywords in the headline or job title sections.
scrapeCommentsbooleanOptionalScrape comments of posts.
postedLimitDatestringOptionalScrape posts from now up to and including this date. It supports the [Date time string format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format). For example, "2011-10-10", or "2011-10-10T14:48:00.000+09:00" or a timestamp: "628021800000"
scrapeReactionsbooleanOptionalScrape reactions of posts.
authorsCompaniesarrayOptionalScrape posts of profile-authors who assigned to LinkedIn Company Names of these companies. Example: `Google` will fetch posts of Google employees or ex-employees in some cases.
mentioningMemberarrayOptionalList of LinkedIn profile URLs of members mentioned in posts. Example: `https://www.linkedin.com/in/williamhgates` will fetch posts mentioning Bill Gates.
authorsIndustryIdarrayOptionalScrape posts of profile-authors who assigned to LinkedIn Industry IDs of these industries. Full list: https://github.com/HarvestAPI/linkedin-industry-codes-v2/blob/main/linkedin_industry_code_v2_all_eng.csv
mentioningCompanyarrayOptionalList of LinkedIn Company Names mentioned in posts. Example: `https://www.linkedin.com/company/google` will fetch posts mentioning Google.
postNestedCommentsbooleanOptionalWhether to add comments items inside post items. In a case of hundreds of comments, the Actor might hit the max item size limit and won't be able to save a post.
profileScraperModestringOptionalChoose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data. · Options: short, main · Default: "short"
shortmain
commentsPostedLimitstringOptionalFetch comments no older than X time. Options: '1h', '24h', 'week', 'month'. · Options: any, 1h, 24h, week, month, 3months, 6months, year
any1h24hweekmonth3months6monthsyear
postNestedReactionsbooleanOptionalWhether to add reactions items inside post items. In a case of hundreds of reactions, the Actor might hit the max item size limit and won't be able to save a post.
commentsProfileScraperModestringOptionalChoose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data. · Options: short, main · Default: "short"
shortmain
reactionsProfileScraperModestringOptionalChoose the mode for scraping LinkedIn profiles. The Short mode provides basic information, while the Full mode includes full detailed profile data. · Options: short, main · Default: "short"
shortmain
02

Output Schema

FieldTypeDescription
idstringUnique identifier for the generation task
statusstringTask status: pending, running, completed, failed, timeout
modelstringModel used for the generation
outputsarrayArray of output items
outputs[].urlstringURL of the generated artifact
outputs[].content_typestringMIME type (e.g. image/png, video/mp4)
errorobject | nullError details if failed, null on success
error.typestringMachine-readable error type code
error.messagestringHuman-readable error description

Async Workflow

This model uses asynchronous execution. Submit a request and poll for the result.

  1. Submit — POST to /v1/run, receive an id
  2. Poll — GET /v1/run/{id} until status is completed, failed, or timeout
  3. Retrieve — Read outputs from the completed response
03

Code Examples

Ready-to-run snippets

# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "model": "linkedin/bulk/post-search",
  "startPage": 1,
  "profileScraperMode": "short",
  "commentsProfileScraperMode": "short",
  "reactionsProfileScraperMode": "short",
  "prompt": "a beautiful sunset over mountains"
}'

# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
  -H "Authorization: Bearer YOUR_API_KEY"