# get_recent_posts: Get someone's recent posts

Read one person's latest posts, through a shared account. This action only reads; it changes nothing. Plan: Free and Connect.

```
POST https://api.heyreagent.com/v1/actions/get_recent_posts
Authorization: Bearer YOUR_KEY
content-type: application/json

{
  "profileUrl": "PASTE_PROFILE_LINK_HERE"
}
```

## What you give it

- `profileUrl` (optional): a profile link or a public identifier. LinkedIn profile URL of the person, e.g. a linkedinUrl from search_people_sales_navigator ("https://linkedin.com/in/…"). Where to get it: Open the person's profile on LinkedIn and copy the address from your browser. It looks like https://www.linkedin.com/in/their-name Or: Run `search_people` and use `people[].profileUrl`.
- `providerId` (optional): a member id or a Sales Navigator id. The person's providerId from search_people_sales_navigator (an ACwAA… id). Faster than profileUrl — skips the profile-resolution lookup. Where to get it: Run `get_profile_details` and use `providerId`.
- `limit` (optional): a number, 1 to 20. Max recent posts to return (1–20, default 2: the newest plus a backup is usually all a personalized opener needs).

## What you get back

- `returned`
- `source`
- `posts`
- `note`

## Good to know

- Pass profileUrl or providerId, one of them. providerId is faster: a link is first resolved to an id.
- People only. For a company page use list_posts_by_author with isCompany true.
- A post here has no socialId: pass its url to get_post, or straight to comment_on_post and react_to_post.

Page: https://heyreagent.com/docs/actions/get_recent_posts