Social media6 min readBy Purrkey teamUpdated

How to fetch a LinkedIn profile's recent posts

Pull a public LinkedIn profile's recent posts with author, engagement, article, media, annotation, and repost details

On this page

You have a partner call booked and one public LinkedIn profile to review before it. You need the profile's ten most recent posts with author, engagement, article and newsletter detail, so you can decide which posts to reference on the call and which to answer in a comment

Nothing in this article has been run. The tables below are a design, and the values in them are placeholders showing the shape

The table to build

One row per post, nine columns: createdUtc, author.name, author.headline, articleTitle, newsletterTitle, engagement.reactions, engagement.comments, engagement.reposts and publicationUrl. The first pass asks for 10 posts, and the paging rule further down can hand you more

createdUtcauthor.nameauthor.headlinearticleTitlenewsletterTitlereactionscommentsrepostspublicationUrl
epoch secondsauthor display nameheadline textarticle title, or emptynewsletter title, or emptycountcountcountcanonical post URL

Read the reaction and comment counts as a pair. Many reactions with a thin comment thread points to a post you can mention on the call; fewer reactions with a busy thread points to one you answer in writing instead

For a set of profiles rather than one, the companion guide on LinkedIn profile data for a list is the other half of this workflow

What goes in, and the catch on limit

anyapi.linkedin.profile_posts_full runs through POST /v1/runs with toolId anyapi.linkedin.profile_posts_full. Only url is required, and it is the full public profile URL copied from the browser

FieldRequiredWhat it does
urlyesFull URL of the public profile whose posts you want
limitnoMost posts to return, 1 to 100, default 10
cursornoPagination cursor from a previous response's nextCursor
postedLimitnoRelative window: any, 1h, 24h, week, month, 3months, 6months, year
postedLimitDatenoOnly posts published on or after this date or timestamp
contextCountrynoRegional LinkedIn context: any, US, GB, DE, FR
includeRepostsnoWhether to include reposts with no added commentary, default true
includeQuotePostsnoWhether to include quote posts with added commentary, default true
requireFieldsnoOutput fields the request must be able to return; the accepted value here is nextCursor

The catch sits on limit. It is ignored on sources that page: each call returns one full page of 50 posts, and you follow nextCursor for more. Sources that cannot page return up to limit posts in one call with no nextCursor. Asking for 10 on a paging source can put 50 rows in front of you, so plan the table for either outcome

requireFields has its own price risk. Naming nextCursor can raise what you pay, because a dearer source serves when the cheapest one cannot return the field. A combination that no single source returns together is refused as invalid input, with no charge

Example profile, invented and to be replaced before the run: https://www.linkedin.com/in/jane-doe-analyst/

Reading the fields that drive the decision

Rows arrive in data.items, and these fields carry the decision into the table

  • createdUtc is a UTC epoch timestamp in seconds. Multiply by 1000 for a JavaScript date
  • text holds the post body, which is what you read to name the topic beside each row
  • author.name and author.headline say who wrote the post. author.handle, author.profileUrl and author.type add identity detail
  • engagement.reactions, engagement.comments and engagement.reposts are totals, and engagement.breakdown splits reactions by type
  • articleTitle, articleUrl and articleDescription describe an attached article, while newsletterTitle and newsletterUrl mark a post tied to a newsletter
  • publicationUrl is the canonical LinkedIn feed publication URL for the post. url is the canonical post URL
  • socialContent carries flags such as hideReactionsCount and hideCommentsCount, which say whether LinkedIn hides a count on that post. Check those flags before you compare counts across rows
  • found and reason settle the empty case: found false with reason set to not_found is a successful call, not an error, and costUsd reports what that call cost. data is null when no posts were found

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to fetch the recent
posts from one public LinkedIn profile before a partner call. Check the
current inputs and price of anyapi.linkedin.profile_posts_full before
running anything. Request limit 10 and leave the other filters unset.
Return a table with createdUtc, author.name, author.headline, articleTitle,
newsletterTitle, engagement.reactions, engagement.comments,
engagement.reposts and publicationUrl, sorted by createdUtc descending.
If the response includes nextCursor, report it and stop there. Do not page
further unless I ask.

url: https://www.linkedin.com/in/jane-doe-analyst/

The URL in that prompt is the invented example profile, so swap in the profile you are reviewing before you run it. Expect a paging source to return 50 rows even though the prompt asks for 10, and read the top 10 by createdUtc if that happens

Estimated tool cost

Prices from the Purrkey catalog, read November 13, 2026. The unit is max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge". The totals below are ceilings, not settled charges

StepFormulaUnit pricePlanned quantityTotal
Single call review1 call x max price$0.194 per call1$0.194
Three-call paged walk3 calls x max price$0.194 per call3$0.582

A single call covers the pre-call read when the source returns the posts without paging. A three-call walk covers three pages at 50 posts per page and lands at most $0.582. Model fees for the agent are not counted in either figure

Open the tool page

Check the quote on LinkedIn tools, profile_posts_full before the run, then copy the profile URL into url and send the prompt above with your own profile in place of the example

Get started by giving this to your agent

  • Claude Code
  • Codex
  • Gemini CLI
  • Cursor
  • GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with LinkedIn.
Explore LinkedIn tools and pricing

FAQ

How do I fetch a LinkedIn profile's recent posts?

Call anyapi.linkedin.profile_posts_full with the full public profile URL in url and a limit. Post rows come back in data.items with author, engagement, article, newsletter and repost detail.

What inputs does anyapi.linkedin.profile_posts_full take?

url is required. Optional inputs include limit (1 to 100, default 10), cursor, postedLimit, postedLimitDate, contextCountry, includeReposts, includeQuotePosts and requireFields.

Why did I get 50 posts when I asked for 10?

limit is ignored on sources that page: each call returns one full page of 50 posts, and you follow nextCursor for more. Sources that cannot page return up to limit posts in one call with no nextCursor.

What do the engagement fields return?

engagement.reactions, engagement.comments and engagement.reposts are totals, and engagement.breakdown splits reactions by type. socialContent carries flags such as hideReactionsCount and hideCommentsCount.

How much does it cost to fetch a profile's posts?

At most $0.194 per call. A single call review is at most $0.194 and a three-call paged walk is at most $0.582, and those figures are ceilings rather than settled charges.

What happens when the profile has no posts?

The call returns found false with reason set to not_found, which is a successful call rather than an error, and costUsd reports what it cost. data is null when no posts were found.

Can I filter posts by date?

Yes. postedLimit takes a relative window such as 24h, week or month, and postedLimitDate takes a JavaScript-compatible date-time string and returns posts published on or after it.

Next step

Try this with LinkedIn

The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.

See LinkedIn tools

Share this article