Search LinkedIn posts (V2 - RSC endpoint with auto-pagination)
Search for LinkedIn posts using the RSC endpoint with enhanced filtering options and automatic pagination. Automatically handles LinkedIn pagination internally - specify the total count you want (max 50) and the API will fetch multiple pages as needed (max 10 pages, 10 results per page). Supports filtering by date, content type, author, and more.
/search/posts/v2Search LinkedIn posts (V2 - RSC endpoint with auto-pagination)
Search for LinkedIn posts using the RSC endpoint with enhanced filtering options and automatic pagination. Automatically handles LinkedIn pagination internally - specify the total count you want (max 50) and the API will fetch multiple pages as needed (max 10 pages, 10 results per page). Supports filtering by date, content type, author, and more.
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/search/posts/v2' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"accountId":"acc_12345","keywords":"","count":10,"start":0,"filters":{"sortBy":"example_value","datePosted":["2024-01-15"],"contentType":["default"],"postedBy":["example_value"],"fromMember":["example_value"],"fromOrganization":["example_value"],"mentionsMember":["example_value"],"mentionsOrganization":["example_value"],"authorCompany":["Acme Inc"],"authorIndustry":["Technology"],"authorJobTitle":["Senior Developer"]}}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
keywords | string | No | Search keywords for post content |
count | number | No | Total number of posts to return. API will automatically paginate (10 per page) to collect this many. |
start | number | No | Starting offset (0-indexed) for pagination. |
filters | object | No | Optional filters to narrow down search results |
Example
{
"accountId": "acc_12345",
"keywords": "",
"count": 10,
"start": 0,
"filters": {
"sortBy": "example_value",
"datePosted": [
"2024-01-15"
],
"contentType": [
"default"
],
"postedBy": [
"example_value"
],
"fromMember": [
"example_value"
],
"fromOrganization": [
"example_value"
],
"mentionsMember": [
"example_value"
],
"mentionsOrganization": [
"example_value"
],
"authorCompany": [
"Acme Inc"
],
"authorIndustry": [
"Technology"
],
"authorJobTitle": [
"Senior Developer"
]
}
}Responses
| Status | Description |
|---|---|
| 200 | Posts retrieved successfully |
Get group details
Retrieve detailed information about a specific LinkedIn group including full description, rules, member count, activity level, and admin information.
Search geo locations
Search for LinkedIn geo location IDs by place name. Use this endpoint to find location IDs that can be used as filters in other search endpoints (jobs, companies, people). Returns matching cities, regions, and countries.
