API reference · LinkedIn

linkedin/bulk/profile-posts

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/profile-posts
01

Input Schema

14 parameters · 0 required · 14 optional

ParameterTypeRequiredDescription
maxPostsintegerOptionalMaximum number of posts to scrape per each profile or company. Default is 10. This overrides pagination. If you set this to 0, it will scrape all posts. · Min: -9007199254740991 · Max: 9007199254740991
targetUrlsarrayOptionalList of LinkedIn profile or company URLs to scrape. Example: `https://www.linkedin.com/in/satyanadella/` will fetch posted or re-posted content by Bill Gates.
maxCommentsintegerOptionalMaximum number of comments to scrape per post. Default is 5. · Min: -9007199254740991 · Max: 9007199254740991
postedLimitstringOptionalFetch posts no older than X time. Options: '24h', 'week', 'month'. · Options: any, 1h, 24h, week, month, 3months, 6months, year
any1h24hweekmonth3months6monthsyear
maxReactionsintegerOptionalMaximum number of reactions to scrape per post. Default is 5. · Min: -9007199254740991 · Max: 9007199254740991
contextCountrystringOptionalSet the context country for LinkedIn. This can affect the content you see on LinkedIn, as it may vary by region. · Options: any, US, GB, DE, FR
anyUSGBDEFR
includeRepostsbooleanOptionalInclude reposts (shared posts without comments). By default, all posts are scraped. · Default: true
scrapeCommentsbooleanOptionalScrape comments of posts. · Default: false
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. · Default: false
includeQuotePostsbooleanOptionalInclude quote posts (shared posts with comments). By default, all posts are scraped. · Default: true
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.
commentsPostedLimitstringOptionalFetch comments no older than X time. Options: '24h', 'week', 'month'. · Options: any, 1h, 24h, week, month
any1h24hweekmonth
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.
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/profile-posts",
  "includeReposts": true,
  "scrapeComments": false,
  "scrapeReactions": false,
  "includeQuotePosts": true,
  "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"