retrieveFeed

Retrieve posts from the home feed of the account associated with the current API tokens.

typescript
const workflow = await linkedapi.retrieveFeed.execute({ limit: 20 });
const { data, errors } = await linkedapi.retrieveFeed.result(workflow.workflowId);

if (errors.length > 0) {
  console.warn(errors);
}

for (const post of data ?? []) {
  console.log(post.url, post.author?.name, post.feedContext);
}

Params

  • limit (optional) – maximum number of posts to retrieve. Defaults to 20 and accepts values from 1 to 100.

The home feed is algorithmic rather than chronological, so this method has no since parameter. It can return fewer posts than requested when the feed stops loading.

Data

Returns an array of posts using the standard post shape, plus feedContext. The context is LinkedIn's localized explanation of why the post is shown, such as a connection reacting to it, and is null when no context line is present.

See the st.retrieveFeed action reference for the complete response contract and error list.