Business research5 min readBy Purrkey teamUpdated

How to search public LinkedIn posts by keyword

Find recent public LinkedIn posts by keyword, author, company, industry, or content type with engagement and attachment details

On this page

You have a request for 30 public LinkedIn posts that mention AI agents from the past week, filtered to authors at specific companies. The work is a social listening pass for a weekly competitive-content brief, and the output decides which themes to monitor next

The table below is the deliverable design, not a result. No run has been executed for this guide, so values here are placeholders showing the shape

author.nameauthor.headlineauthor.typecreatedUtctextengagement.reactionsengagement.commentsengagement.repostsattachmentTypeattachmentTitleattachmentUrlurltheme
Example AuthorExample headlineperson1760000000(post text)1231articleExample title(attachment URL)(post URL)(reader fills)

One row is one post. The theme column is yours to fill after reading text and any attachment title

Inputs for a filtered post search

Call anyapi.linkedin.search_posts_full with query as the required field. Agents call it through POST /v1/runs with toolId anyapi.linkedin.search_posts_full

Add the filters that match the brief. datePosted defaults to last-day; this plan uses last-week. sort takes relevance or date, and contentType narrows by content type

Other filters include authorKeywords, authorCompanyNames, authorIndustryIds, authorUrls and mentioningMemberUrls. authorKeywords checks the author headline or job title for at least one keyword. authorCompanyNames limits posts to people associated with the named companies and takes up to 20 company names, while authorIndustryIds takes up to 20 LinkedIn industry IDs. authorUrls takes up to 10 LinkedIn profile or company URLs, and mentioningMemberUrls takes up to 10 member profile URLs. The query field accepts quoted terms or Boolean operators accepted by LinkedIn search

Example input values for the 30-post brief:

FieldExample valueNote
queryAI agentsRequired phrase or Boolean expression
datePostedlast-weekDefault is last-day
authorCompanyNames["Acme Plumbing", "Northwind Legal"]Invented company names; replace with your list
limit301 to 100; 100 is one LinkedIn search page
sortdateOr relevance

Example only; the company names are invented. Replace them with the companies in your brief

Keep limit at 30 for this run. limit accepts 1 to 100 posts, and 100 is the upper bound of one LinkedIn search page

Use requireFields only when you need a named output field such as attachmentType or pollOptions. If you omit it, routing is unchanged and the cheapest source serves. The request is served only by a source that returns each named field, and naming fields can raise the price. Naming a combination that no single source returns together is refused as invalid input, with no charge

How to read the output fields

Read found first. When it is true, data.posts holds the posts. When it is false, data is null and reason is not_found; the contract says a found: false answer is a successful call, not an error, and costUsd is what it actually cost

For each post, author.name, author.headline and author.type tell you who posted. author.type is person, company or showcase. createdUtc is a UTC epoch timestamp in seconds; multiply by 1000 for a JS Date. text is empty when the post has no commentary, so read attachmentTitle and attachmentUrl for bare shares

Use engagement.reactions, engagement.comments and engagement.reposts to sort the table for the brief. engagement.breakdown groups reaction counts by LinkedIn reaction type. attachmentType says what kind of structured content sits on the post, such as article, job, poll, video or document. Tracking parameters are removed from attachmentUrl. When attachmentType indicates an article, attachmentUrl is the destination URL; the companion guide at Read a LinkedIn article by URL covers reading the body

Poll fields such as pollQuestion, pollOptions, pollTotalVotes and pollClosed are available when a post carries a poll. The url field is the canonical post URL

The agent prompt

Run this prompt after you replace the example query and company names with your own. It tells the agent to check current inputs and price before it calls the tool

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search public LinkedIn posts by keyword.
Check the current inputs and price of anyapi.linkedin.search_posts_full before running anything.
Use query "AI agents", datePosted last-week, authorCompanyNames ["Acme Plumbing", "Northwind Legal"], limit 30, sort date.
Return a table with author.name, author.headline, author.type, createdUtc, text, engagement.reactions, engagement.comments, engagement.reposts, attachmentType, attachmentTitle, attachmentUrl, url, and theme.
Leave theme empty for the reader. Do not invent posts.

The company names in the prompt are invented placeholders. Swap in the companies from your brief before the run

Estimated tool cost

Price from the Purrkey catalog, read on November 13, 2026, price revision anyapi-catalog-2026-11-05. The catalog lists the unit as max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge

StepFormulaUnit pricePlanned quantityTotal
Single filtered searchcalls x max price$0.194 per call1$0.194
Three keyword variantscalls x max price$0.194 per call3$0.582

The table is a ceiling, not a settled charge. The two rows are alternative plans, not added together. One call with limit set to 30 can cover the 30-post brief. Three keyword variants use three calls, one per query variant. Model fees for the agent are not counted

Next action

Open LinkedIn Post Search and run the prompt with the 30-post plan

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 search public LinkedIn posts by keyword?

Call anyapi.linkedin.search_posts_full with the required query field and set datePosted to the time window you need. Add filters such as authorCompanyNames or contentType to narrow the posts.

What inputs does anyapi.linkedin.search_posts_full take?

It requires query and accepts optional filters including datePosted, sort, limit, contentType, authorKeywords, authorCompanyNames, authorIndustryIds, authorUrls, mentioningMemberUrls and requireFields.

What does the limit field do?

limit sets the maximum number of posts returned, from 1 to 100, with a default of 10. The upper bound is one LinkedIn search page.

What fields should I read in each post row?

Read author.name, author.headline, author.type, createdUtc, text, engagement.reactions, engagement.comments, engagement.reposts, attachmentType, attachmentTitle, attachmentUrl and url. Add a theme column for your own reading.

How much does a search cost?

The price is up to $0.194 per call under max_call, which means Maximum per call; successful runs settle at the actual AnyAPI charge. One search call is at most $0.194, and three keyword variants are at most $0.582.

What if no posts are found?

The response sets found to false and includes reason set to not_found. A found: false answer is a successful call, not an error, and costUsd is what it actually cost.

Can I request attachment or poll fields?

Use requireFields to name output fields such as attachmentType or pollOptions; the request is served only by a source that returns each named field. Naming a combination no single source returns together is refused as invalid input, with no charge, and naming fields can raise the price.

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