API reference
LinkedIn Post Search API
Search public LinkedIn posts beyond the external search index, with post links, text, dates, author and available engagement. Ordinary posts have no title; article.title is the attached article title. Author websites are included when supplied. Coverage is incomplete, source totals may change, and there is no exhaustive or real-time guarantee. Relevance order; dates filter the acquired page. For bounded author-location and public-contact enrichment, use /examples/linkedin-post-search.mjs with separately priced profile lookups and an explicit credit cap. Author location is not post origin. Existing indexed search remains four credits.
Endpoint
/v1/linkedin/search-posts-nativelive · proven5 creditsParameters
Query parameters
| Name | Required | Description | Example |
|---|---|---|---|
query | yes | Keywords, 1–200 characters. Results use relevance order. Coverage is incomplete and freshness is not guaranteed. | OpenAI |
date_posted | no | Source window: last-day, last-week or last-month (default). Keep unchanged with the cursor. Local timestamp filtering also excludes unknown dates and records outside the requested window. | last-month |
date_from | no | Optional inclusive UTC date YYYY-MM-DD, applied only to the acquired page within date_posted. It does not expand historical coverage. Unknown dates are excluded and counted. | |
date_to | no | Optional inclusive UTC date YYYY-MM-DD. Same bounded-page scope as date_from. Empty filtered pages can still have continuation. | |
cursor | no | Complete opaque continuation from this endpoint, same account, query and filters. Expires one hour after the first page. Each further source page has the normal five-credit price; source totals can change. | |
dry_run | no | Read a zero-credit estimate without fetching sources, running AI, or reserving credits. Cache status is a snapshot, not a guarantee at execution. Accepted values: 1, 0, true, false. Case, spaces, hyphens and underscores are interchangeable. | 1 |
judgments | no | Add bounded AI labels to eligible returned records (default on). off preserves the original data shape. Unclassified records remain present; labels depend on evidence, time, capacity and the existing request budget. No label surcharge. Accepted values: on, off. Case, spaces, hyphens and underscores are interchangeable. | on |
label | no | Set none to disable labels; default enables the endpoint’s label set. Equivalent to judgments=off. Accepted values: default, none. Case, spaces, hyphens and underscores are interchangeable. | none |
label_evidence | no | Include exact supporting sentences and zero-based sentence indexes when a label has validated evidence. No extra charge or change to decisions. Accepted values: 1, 0, true, false. Case, spaces, hyphens and underscores are interchangeable. | 1 |
exclude | no | Optionally remove confidently labelled engagement bait. Uncertain and unclassified records stay; removed IDs and an owner-bound recall reference are returned. Accepted values: engagement_bait. Case, spaces, hyphens and underscores are interchangeable. | engagement_bait |
fit | no | Use goal to replace confidently irrelevant records with recall stubs. Keeps first, last, relevant and uncertain records; preserves order. Full evidence is stored for 24 hours when available. Accepted values: goal. Case, spaces, hyphens and underscores are interchangeable. | goal |
goal | no | Required with fit=goal: describe the task in at most 600 characters. Supplied text is task context, never permission to act on posts. | Find concrete product complaints |
tokens | no | Optional soft response target for fit=goal, 256–32000. Safety and evidence retention take priority, so the returned result may exceed it. | 4000 |
Examples
Make the request
curl "https://www.monocrawl.com/v1/linkedin/search-posts-native?query=OpenAI" \ -H "x-api-key: mn_your_key_here"
TypeScript
const key = process.env.MONOCRAWL_API_KEY;
if (!key) throw new Error('Set MONOCRAWL_API_KEY on your server.');
const res = await fetch(
"https://www.monocrawl.com/v1/linkedin/search-posts-native?query=OpenAI",
{ headers: { "x-api-key": key } },
);
const body = await res.json();
if (!body.success) {
// one error shape for every endpoint — see /docs/errors
throw new Error(`${body.error.type}: ${body.error.message}`);
}
console.log(body.data, "credits left:", body.credits_remaining);Python
import os
import requests
res = requests.get(
"https://www.monocrawl.com/v1/linkedin/search-posts-native?query=OpenAI",
headers={"x-api-key": os.environ["MONOCRAWL_API_KEY"]},
timeout=60,
)
body = res.json()
if not body["success"]:
# one error shape for every endpoint — see /docs/errors
raise RuntimeError(f"{body['error']['type']}: {body['error']['message']}")
print(body["data"], "credits left:", body["credits_remaining"])Response
Response fields and example
This example is illustrative, not a captured live response. Variable-cost operations may settle a charge different from the list price below. A successful response puts the platform payload in data and reports the exact credits used, remaining balance, request id and cache status beside it.
{
"success": true,
"platform": "linkedin",
"endpoint": "/v1/linkedin/search-posts-native",
"data": {
"items": [],
"count": 0,
"retrieved_count": 0,
"cursor": null,
"has_more": false,
"total": null,
"source_total": 0,
"completeness": "unknown"
},
"credits_used": 5,
"credits_remaining": 99,
"request_id": "req_…",
"cached": false
}The example is illustrative and shows a documented subset of data. The fields below are optional across supported sources; nullable fields can also be absent. Preserve unknown values and accept additional fields.
Schema basis: reviewed response shaper. See schema coverage and validation limits.
Download the data JSON Schema. Validate response.data, not the whole envelope. A valid shape does not establish that every field or source record was returned.
| Field inside data | Type | Meaning |
|---|---|---|
items | array | Nested response fields; optional unless explicitly documented. |
items[].id | string | null | Exact source identifier; preserve it as a string. |
items[].url | string | null | Original source URL when supplied. |
items[].platform | string | null | platform |
items[].title | string | null | Null for an ordinary post; not inferred from content. |
items[].text | string | null | text |
items[].caption | string | null | caption |
items[].created_at | string | null | created at |
items[].author | object | null | Nested response fields; optional unless explicitly documented. |
items[].author.id | string | null | Exact source identifier; preserve it as a string. |
items[].author.handle | string | null | handle |
items[].author.name | string | null | name |
items[].author.url | string | null | url |
items[].author.headline | string | null | headline |
items[].author.location | string | null | location |
items[].author.avatar_url | string | null | avatar url |
items[].author.followers | number | null | Public follower count. |
items[].author.verified | boolean | null | Explicit verification flag when supplied. |
items[].author.type | string | null | person or company when supplied. |
items[].author.website | string | null | Original source URL when supplied. |
items[].author.website_label | string | null | Public website label. |
items[].stats | object | null | Nested response fields; optional unless explicitly documented. |
items[].stats.likes | number | null | likes; null is unknown. |
items[].stats.comments | number | null | comments; null is unknown. |
items[].stats.replies | number | null | replies; null is unknown. |
items[].stats.shares | number | null | shares; null is unknown. |
items[].stats.views | number | null | views; null is unknown. |
items[].article | object | null | Nested response fields; optional unless explicitly documented. |
items[].article.title | string | null | Attached article title, not the post title. |
items[].article.url | string | null | Original source URL when supplied. |
items[].article.description | string | null | Attached article description. |
count | number | null | Returned rows, not the total population. |
cursor | string | null | Opaque continuation; pass unchanged. |
has_more | boolean | null | Source continuation indicator. |
total | number | null | Source-reported total; null means unknown. |
source_total | number | null | Unverified changing source total before local filtering. |
retrieved_count | number | null | Rows acquired before date filtering. |
date_filter | object | null | Nested response fields; optional unless explicitly documented. |
date_filter.scope | string | null | scope |
date_filter.date_posted | string | null | date posted |
date_filter.date_from | string | null | date from |
date_filter.date_to | string | null | date to |
date_filter.since | string | null | since |
date_filter.until | string | null | until |
date_filter.unknown_date_count | number | null | unknown date count; null is unknown. |
date_filter.excluded_count | number | null | excluded count; null is unknown. |
fetched_at | string | null | Source date or timestamp; absent dates remain unknown. |
completeness | string | null | Always unknown; no exhaustive coverage or freshness guarantee. |
Five credits per acquired nonempty page; existing indexed search stays four. Search order is relevance. Date filtering may leave an empty page with a continuation cursor.
Continue with the same query and filters; cursors expire one hour after the first page and belong to your account.
Author location and additional public contact fields use separately priced lookups. Download the bounded Node.js workflow at /examples/linkedin-post-search.mjs. It accepts maxCredits, maxAuthors (0–10), authorLocation and contacts; region matching is a substring of source-reported author location, not post origin.
The workflow sends X-Max-Credits on each request; a changed price above that ceiling is refused before charging. Email, telephone and postal addresses remain withheld.
Failures use the typed error envelope. A confirmed uncharged or refunded failure reports zero; a pending reconciliation can report an unknown charge. Read credits_used and error.details.billing_status, and keep request_id for recovery. Response contract · Error reference