# retrieveFeed

Retrieve posts from the current account's personalized home feed.

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);
}
```

```python
from linkedapi import RetrieveFeedParams

workflow = linkedapi.retrieve_feed.execute(RetrieveFeedParams(limit=20))
result = linkedapi.retrieve_feed.result(workflow.workflow_id)

if result.errors:
    print(result.errors)

for post in result.data or []:
    print(post.url, post.author.name if post.author else None, post.feed_context)
```

## 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](/docs/action-st-retrieve-feed) for the complete response contract and error list.
