# Search LinkedIn posts

Search LinkedIn Post via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by Harvestapi, 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.

Documentation: https://openany.si/market/apis/linkedin/linkedin-post-search/?offering=d61ce390-3daf-40e8-bce7-103f7b82cc39
API ID: d61ce390-3daf-40e8-bce7-103f7b82cc39
Provider: harvestapi
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/harvestapi/linkedin/post-search
Page update time: 2026-12-03T02:53:27.940Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.004 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:53:27.182Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "4000",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Search LinkedIn posts request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "search": {
          "type": "string",
          "description": "Keywords to search for in posts"
        },
        "profile": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "description": "List of LinkedIn companies where authors of posts work (comma-separated). It supports company URLs and IDs."
        },
        "authorsIndustryId": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "description": "Filter posts mentioning this LinkedIn profile URL or ID (comma-separated). It supports profile URLs and IDs."
        },
        "mentioningCompany": {
          "type": "string",
          "description": "Filter posts mentioning this LinkedIn company URL or ID (comma-separated). It supports company URLs and IDs."
        },
        "contentType": {
          "type": "string",
          "description": "Filter by content type. Supported values: 'videos', 'images', 'live_videos', 'documents', 'collaborative_articles', 'jobs'"
        },
        "authorKeywords": {
          "type": "string",
          "description": "Filter by keywords in authors' profiles"
        },
        "group": {
          "type": "string",
          "description": "Group LinkedIn URL or Group ID"
        },
        "postedLimit": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "description": "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": {
          "type": "string",
          "description": "Sort by field. Supported values: 'relevance', 'date'"
        },
        "page": {
          "type": "integer",
          "description": "Page number for pagination"
        },
        "paginationToken": {
          "type": "string",
          "description": "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"
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "elements": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "article": {
            "type": "object",
            "properties": {
              "description": {
                "type": "string"
              },
              "image": {
                "type": "object",
                "properties": {
                  "expiresAt": {
                    "type": "integer"
                  },
                  "height": {
                    "type": "integer"
                  },
                  "url": {
                    "type": "string"
                  },
                  "width": {
                    "type": "integer"
                  }
                }
              },
              "link": {
                "type": "string"
              },
              "linkLabel": {
                "type": "string"
              },
              "subtitle": {
                "type": "string"
              },
              "title": {
                "type": "string"
              }
            }
          },
          "author": {
            "type": "object",
            "properties": {
              "avatar": {
                "type": "object",
                "properties": {
                  "expiresAt": {
                    "type": "integer"
                  },
                  "height": {
                    "type": "integer"
                  },
                  "url": {
                    "type": "string"
                  },
                  "width": {
                    "type": "integer"
                  }
                }
              },
              "id": {
                "type": "string"
              },
              "info": {
                "type": "boolean"
              },
              "linkedinUrl": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "publicIdentifier": {
                "type": "string"
              },
              "type": {
                "type": "boolean"
              },
              "universalName": {
                "type": "string"
              },
              "urn": {
                "type": "string"
              },
              "website": {
                "type": "boolean"
              },
              "websiteLabel": {
                "type": "boolean"
              }
            }
          },
          "content": {
            "type": "string"
          },
          "engagement": {
            "type": "object",
            "properties": {
              "comments": {
                "type": "integer"
              },
              "likes": {
                "type": "integer"
              },
              "reactions": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "type": {
                      "type": "string"
                    }
                  }
                }
              },
              "shares": {
                "type": "integer"
              }
            }
          },
          "id": {
            "type": "string"
          },
          "linkedinUrl": {
            "type": "string"
          },
          "newsletterTitle": {
            "type": "string"
          },
          "newsletterUrl": {
            "type": "string"
          },
          "postImages": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "expiresAt": {
                  "type": "integer"
                },
                "height": {
                  "type": "integer"
                },
                "url": {
                  "type": "string"
                },
                "width": {
                  "type": "integer"
                }
              }
            }
          },
          "postVideo": {
            "type": "object",
            "properties": {
              "thumbnailUrl": {
                "type": "string"
              },
              "videoUrl": {
                "type": "string"
              }
            }
          },
          "postedAt": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string"
              },
              "postedAgoShort": {
                "type": "string"
              },
              "postedAgoText": {
                "type": "string"
              },
              "timestamp": {
                "type": "integer"
              }
            }
          },
          "repost": {
            "type": "null"
          },
          "repostId": {
            "type": "string"
          },
          "repostedBy": {
            "type": "object",
            "properties": {
              "linkedinUrl": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "publicIdentifier": {
                "type": "string"
              }
            }
          },
          "socialContent": {
            "type": "object",
            "properties": {
              "hideCommentAction": {
                "type": "boolean"
              },
              "hideCommentsCount": {
                "type": "boolean"
              },
              "hideReactAction": {
                "type": "boolean"
              },
              "hideReactionsCount": {
                "type": "boolean"
              },
              "hideRepostsCount": {
                "type": "boolean"
              },
              "hideSendAction": {
                "type": "boolean"
              },
              "hideShareAction": {
                "type": "boolean"
              },
              "hideSocialActivityCounts": {
                "type": "boolean"
              },
              "hideViewsCount": {
                "type": "boolean"
              },
              "shareUrl": {
                "type": "string"
              },
              "showContributionExperience": {
                "type": "boolean"
              },
              "showSocialDetail": {
                "type": "boolean"
              }
            }
          }
        }
      }
    },
    "error": {
      "type": "string"
    },
    "pagination": {
      "type": "object",
      "properties": {
        "pageNumber": {
          "type": "integer"
        },
        "pageSize": {
          "type": "integer"
        },
        "paginationToken": {
          "type": "string"
        },
        "previousElements": {
          "type": "integer"
        },
        "totalElements": {
          "type": "integer"
        },
        "totalPages": {
          "type": "integer"
        }
      }
    },
    "query": {
      "type": "object",
      "properties": {
        "companyId": {
          "type": "string"
        },
        "page": {
          "type": "integer"
        },
        "postedLimit": {
          "type": "string"
        },
        "profileId": {
          "type": "string"
        },
        "search": {
          "type": "string"
        },
        "sortBy": {
          "type": "string"
        }
      }
    },
    "status": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Schema template (HTTP assumed)
```bash
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'
```

## Response example
Response illustration only. Placeholder values and unknown business fields are not recorded API results. Replace request placeholders before use.
Response template · not a real response · Configured HTTP 200; actual status is unverified.
```json
{
  "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
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- harvestapi: https://openany.si/market/apis/linkedin/linkedin-post-search/?offering=d61ce390-3daf-40e8-bce7-103f7b82cc39
- scrapecreators: https://openany.si/market/apis/linkedin/linkedin-post-search/?offering=3cfc1120-4c30-4294-bffd-04967a1725f1

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
