LinkedIn Post Search API
Search LinkedIn Post via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Compare 2 implementations (Harvestapi and ScrapeCreators), pass parameters such as group, page, and retrieve structured data including returned page number field, returned page size field, returned pagination token field, returned previous elements field, and returned total elements field for content research and account lookup, and integration reference.
- Selected price
- $0.004 / callPublished pricing
- Sellers / APIs
- 2 / 2
- Requests · 30d
- 0Selected implementation · last 30 days
- Success rate · 30d
- —No requests in this period
LinkedIn Post Search API
Prepare your request, then continue with your agent.
Selected price
$0.004 / call
- Provider
- API
- Pricing
On this page
Overview
Search LinkedIn posts API
Search for LinkedIn posts by keywords, author, date range, and more. Review the optional inputs supported by the selected implementation. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.
Quick Facts
| Fact | Value |
|---|---|
| Access | OpenAny REST |
| Authentication | OpenAny API key in the Authorization header |
| Core inputs | query: search, profile, company, authorsCompany, authorsIndustryId, mentioningMember, mentioningCompany, contentType, authorKeywords, group, postedLimit, scrapePostedLimit, sortBy, page, paginationToken |
| Selected implementation | harvestapi · Search LinkedIn posts |
| Billing | Follow the selected implementation pricing, billing unit, quantity and charge rules |
What You Can Build
- Content research and account lookup: Keep source records connected to their content and account identifiers.
- Integration reference: Use the selected request format and keep source identifiers with the returned result.
Documented Response Fields
| Field | Meaning |
|---|---|
pagination.pageNumber |
Returned page number field |
pagination.pageSize |
Returned page size field |
pagination.paginationToken |
Returned pagination token field |
pagination.previousElements |
Returned previous elements field |
pagination.totalElements |
Returned total elements field |
pagination.totalPages |
Returned total pages field |
status |
Reported status |
elements[].content |
Content |
Quick Start
- Set OPENANY_API_KEY to your OpenAny API key.
- Review the supported inputs and set any required query value shown in the template.
- Check the HTTP response and business result before reading optional fields.
curl \
'https://api.openany.si/v1/agent-apis/harvestapi/linkedin/post-search?group=1898033&page=1' \
-X GET \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json'
Request and Response Examples
The response illustration is a schema template, not a captured business response. Replace request placeholders and read actual returned values for your target resource.
Published Search LinkedIn posts API implementation contract.
Pricing and Billing
The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.
Frequently Asked Questions
Related APIs
Playground
Run sends a real API request. Charges follow the published API contract.
Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
Current Search LinkedIn posts · GET · View API reference | $0.004 / call | 0 | —successP50— | |
| LinkedIn — Search Posts · GET · View API reference | $0.00188 / call | —Select to load statistics | —successP50— |
- Unit price
- $0.004
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 4. Price update time: not supplied.
Total $0.4
API
- Method
- GET
- Endpoint
https://api.openany.si/v1/agent-apis/harvestapi/linkedin/post-search- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
search | URL query parametersquery | string | No | Keywords to search for in posts |
profile | URL query parametersquery | string | No | Filter posts by author's profile URL(s) or public identifier(s) or profile ID(s) (comma-separated). Note: LinkedIn returns fewer results per profile when using post search. To extract all posts by a profile, use the /linkedin/profile-posts endpoint |
company | URL query parametersquery | string | No | Filter posts by this company URL(s) or company ID(s) (comma-separated). Note: LinkedIn returns fewer results per company when using post search. To extract all posts by a company, use the /linkedin/company-posts endpoint |
authorsCompany | URL query parametersquery | string | No | List of LinkedIn companies where authors of posts work (comma-separated). It supports company URLs and IDs. |
authorsIndustryId | URL query parametersquery | string | No | List of LinkedIn industry IDs of authors' companies (comma-separated). It supports industry IDs. Full list of industry IDs: https://github.com/HarvestAPI/linkedin-industry-codes-v2/blob/main/linkedin_industry_code_v2_all_eng.csv |
mentioningMember | URL query parametersquery | string | No | Filter posts mentioning this LinkedIn profile URL or ID (comma-separated). It supports profile URLs and IDs. |
mentioningCompany | URL query parametersquery | string | No | Filter posts mentioning this LinkedIn company URL or ID (comma-separated). It supports company URLs and IDs. |
contentType | URL query parametersquery | string | No | Filter by content type. Supported values: 'videos', 'images', 'live_videos', 'documents', 'collaborative_articles', 'jobs' |
authorKeywords | URL query parametersquery | string | No | Filter by keywords in authors' profiles |
group | URL query parametersquery | string | No | Group LinkedIn URL or Group ID |
postedLimit | URL query parametersquery | string | No | Filter posts by maximum posted date. Supported values: '24h', 'week', 'month'. This parameter will be sent to LinkedIn, the filtering will be done on their side |
scrapePostedLimit | URL query parametersquery | string | No | Post-Filter posts by maximum posted date. Supported values: '1h', '24h', 'week','month', '3months', '6months', 'year'. This parameter will be applied after receiving results from LinkedIn, the filtering will be done on our side |
sortBy | URL query parametersquery | string | No | Sort by field. Supported values: 'relevance', 'date' |
page | URL query parametersquery | integer | No | Page number for pagination |
paginationToken | URL query parametersquery | string | No | Required if it was returned by the previous page. Otherwise the page will always be 1 (on LinkedIn side). Doesn't apply for all queries, usually profile posts return this token |
Required markers inside a nested object or variant apply when that object or variant is used.
Response structure
elementsobject[]articleobjectdescriptionstringimageobjectexpiresAtintegerheightintegerurlstringwidthinteger
linkstringlinkLabelstringsubtitlestringtitlestring
authorobjectavatarobjectexpiresAtintegerheightintegerurlstringwidthinteger
idstringinfobooleanlinkedinUrlstringnamestringpublicIdentifierstringtypebooleanuniversalNamestringurnstringwebsitebooleanwebsiteLabelboolean
contentstringengagementobjectcommentsintegerlikesintegerreactionsobject[]countintegertypestring
sharesinteger
idstringlinkedinUrlstringnewsletterTitlestringnewsletterUrlstringpostImagesobject[]expiresAtintegerheightintegerurlstringwidthinteger
postVideoobjectthumbnailUrlstringvideoUrlstring
postedAtobjectdatestringpostedAgoShortstringpostedAgoTextstringtimestampinteger
repostnullrepostIdstringrepostedByobjectlinkedinUrlstringnamestringpublicIdentifierstring
socialContentobjecthideCommentActionbooleanhideCommentsCountbooleanhideReactActionbooleanhideReactionsCountbooleanhideRepostsCountbooleanhideSendActionbooleanhideShareActionbooleanhideSocialActivityCountsbooleanhideViewsCountbooleanshareUrlstringshowContributionExperiencebooleanshowSocialDetailboolean
errorstringpaginationobjectpageNumberintegerpageSizeintegerpaginationTokenstringpreviousElementsintegertotalElementsintegertotalPagesinteger
queryobjectcompanyIdstringpageintegerpostedLimitstringprofileIdstringsearchstringsortBystring
statusinteger
Agent integration
Copy the resource contract without sharing an API key.
Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Schema template (HTTP assumed)
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 15
Review these request fields before running. Keep the published provider and request method unchanged.
search- Keywords to search for in posts
profile- Filter posts by author's profile URL(s) or public identifier(s) or profile ID(s) (comma-separated). Note: LinkedIn returns fewer results per profile when using post search. To extract all posts by a profile, use the /linkedin/profile-posts endpoint
company- Filter posts by this company URL(s) or company ID(s) (comma-separated). Note: LinkedIn returns fewer results per company when using post search. To extract all posts by a company, use the /linkedin/company-posts endpoint
authorsCompany- List of LinkedIn companies where authors of posts work (comma-separated). It supports company URLs and IDs.
authorsIndustryId- List of LinkedIn industry IDs of authors' companies (comma-separated). It supports industry IDs. Full list of industry IDs: https://github.com/HarvestAPI/linkedin-industry-codes-v2/blob/main/linkedin_industry_code_v2_all_eng.csv
mentioningMember- Filter posts mentioning this LinkedIn profile URL or ID (comma-separated). It supports profile URLs and IDs.
mentioningCompany- Filter posts mentioning this LinkedIn company URL or ID (comma-separated). It supports company URLs and IDs.
contentType- Filter by content type. Supported values: 'videos', 'images', 'live_videos', 'documents', 'collaborative_articles', 'jobs'
authorKeywords- Filter by keywords in authors' profiles
group- Group LinkedIn URL or Group ID
postedLimit- Filter posts by maximum posted date. Supported values: '24h', 'week', 'month'. This parameter will be sent to LinkedIn, the filtering will be done on their side
scrapePostedLimit- Post-Filter posts by maximum posted date. Supported values: '1h', '24h', 'week','month', '3months', '6months', 'year'. This parameter will be applied after receiving results from LinkedIn, the filtering will be done on our side
sortBy- Sort by field. Supported values: 'relevance', 'date'
page- Page number for pagination
paginationToken- Required if it was returned by the previous page. Otherwise the page will always be 1 (on LinkedIn side). Doesn't apply for all queries, usually profile posts return this token
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/harvestapi/linkedin/post-search?group=1898033&page=1' \ -X GET \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json'Check the response
Response template · not a real response · Configured HTTP 200; actual status is unverified.
Response template · not a real response{ "elements": [ { "article": { "description": "<description>", "image": { "expiresAt": 0, "height": 0, "url": "<url>", "width": 0 }, "link": "<link>", "linkLabel": "<linkLabel>", "subtitle": "<subtitle>", "title": "<title>" }, "author": { "avatar": { "expiresAt": 0, "height": 0, "url": "<url>", "width": 0 }, "id": "<id>", "info": false, "linkedinUrl": "<linkedinUrl>", "name": "<name>", "publicIdentifier": "<publicIdentifier>", "type": false, "universalName": "<universalName>", "urn": "<urn>", "website": false, "websiteLabel": false }, "content": "<content>", "engagement": { "comments": 0, "likes": 0, "reactions": [ { "count": 0, "type": "<type>" } ], "shares": 0 }, "id": "<id>", "linkedinUrl": "<linkedinUrl>", "newsletterTitle": "<newsletterTitle>", "newsletterUrl": "<newsletterUrl>", "postImages": [ { "expiresAt": 0, "height": 0, "url": "<url>", "width": 0 } ], "postVideo": { "thumbnailUrl": "<thumbnailUrl>", "videoUrl": "<videoUrl>" }, "postedAt": { "date": "<date>", "postedAgoShort": "<postedAgoShort>", "postedAgoText": "<postedAgoText>", "timestamp": 0 }, "repost": null, "repostId": "<repostId>", "repostedBy": { "linkedinUrl": "<linkedinUrl>", "name": "<name>", "publicIdentifier": "<publicIdentifier>" }, "socialContent": { "hideCommentAction": false, "hideCommentsCount": false, "hideReactAction": false, "hideReactionsCount": false, "hideRepostsCount": false, "hideSendAction": false, "hideShareAction": false, "hideSocialActivityCounts": false, "hideViewsCount": false, "shareUrl": "<shareUrl>", "showContributionExperience": false, "showSocialDetail": false } } ], "error": "<error>", "pagination": { "pageNumber": 0, "pageSize": 0, "paginationToken": "<paginationToken>", "previousElements": 0, "totalElements": 0, "totalPages": 0 }, "query": { "companyId": "<companyId>", "page": 0, "postedLimit": "<postedLimit>", "profileId": "<profileId>", "search": "<search>", "sortBy": "<sortBy>" }, "status": 0 }