ConnectSafely LinkedIn icon

ConnectSafely LinkedIn

Comprehensive LinkedIn automation - actions, posts, profiles, organizations, and groups

Get Latest Posts

AI-generated

Summary

Fetch recent posts from a specified LinkedIn profile or account via the ConnectSafely API.

Inputs

  • accountId — LinkedIn account ID used to perform the operation. Defaults to the connected account if left blank.
  • profileId — The target LinkedIn profile ID to retrieve posts from.
  • profileUrn — The target LinkedIn profile URN, provided as an alternative identifier to profileId.
  • count — The number of posts to retrieve (1 to 20, default is 1).
  • includeReposts — Whether to include reposted or shared content alongside original posts (default is true).

Output shape

A JSON object containing a list of retrieved LinkedIn posts and associated metadata.

Returns the response object sent directly by the ConnectSafely /linkedin/posts/latest endpoint.

Examples

Example 1: Fetch the 5 most recent posts from a specific LinkedIn user including reposts

Set Profile ID to 'alex-smith-123', Count to 5, and Include Reposts to true.

Example 2: Get the single latest original post using a profile URN

Set Profile URN to 'urn:li:fsd_profile:ACoAAA...', Count to 1, and Include Reposts to false.

Discussion