Social media5 min readBy Purrkey teamUpdated

How to search public LinkedIn posts by keyword

Search public LinkedIn posts by keyword and recency, returning URLs, text and engagement counts

On this page

You want 20 public LinkedIn posts from the last week that mention hiring, and you need the post URLs, author names and engagement counts to build a shortlist for outreach. Run a keyword search, then page through the cursor until you have enough rows. The worksheet below is the deliverable: one row per post with the fields that decide whether it belongs on the shortlist

No run has been executed for this guide. The table is a design, and values here are placeholders showing the shape

Example input and worksheet design

Example input:

FieldValue
queryhiring
datePostedlast-week

query is required. datePosted is optional and accepts last-hour, last-day, last-week, last-month or last-year. cursor is optional and takes a pagination cursor from a previous response. requireCursor is deprecated; the contract says it stays accepted so callers that already send it keep working, but it changes nothing about the price or which source serves you

The agent fills this table. Values here are placeholders showing the shape:

idurltextcreatedUtcauthorNameauthorUrlreactionCountcommentCountreader note
(post id)(post URL)(post text)(epoch seconds)(author or empty)(profile URL or empty)00why this row fits the hiring shortlist

id, url, text and createdUtc are required on each post. authorName and authorUrl can be empty when the upstream omits them. reactionCount and commentCount are integer totals. createdUtc is a UTC epoch timestamp in seconds; multiply by 1000 for a JS Date in milliseconds. The reader note column is yours, not a returned field

Step 1: search public posts by keyword and recency

Call anyapi.linkedin.search_posts with query set to the keyword and datePosted set to the recency window. Agents call it through POST /v1/runs with toolId anyapi.linkedin.search_posts. The catalog describes it as: "Search public LinkedIn posts by keyword (text, link, publish date)." Results come from search-engine matches over public LinkedIn posts

The limit sits with this step: only public LinkedIn posts are searched, and results come from search-engine matches that work well with English keywords. Test the query before you plan a larger sweep

For the 20-post goal, read found and data.posts first. found says whether matching posts were found. When data.posts is populated, each item carries id, url, text and createdUtc, plus the engagement and author fields when available. data.nextCursor is an opaque cursor for the next page, or null when this lane has no more. Pass it back as cursor to continue

A found: false answer is a successful call, not an error. The reason field is present only when found is false, and its value is not_found when the source states the target does not exist or returned nothing for it. Treat that as an empty result, not as a failed request

Reading the result fields

Use createdUtc to check that the post falls inside the datePosted window you asked for. Use reactionCount and commentCount to sort or annotate the shortlist; the contract defines them as total numbers on the post. Use url as the canonical post URL and authorUrl as the canonical profile URL with tracking query params stripped. authorName is the display name

The returned text is the post content, so read it before you add a reader note. The note should record the hiring angle you saw, the company context, or a reason to skip the row. Keep the note short so the table stays readable

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to search public LinkedIn posts for the keyword "hiring" with datePosted set to last-week. Check the current inputs and price of anyapi.linkedin.search_posts before running anything. Request one page first, then follow data.nextCursor as cursor for up to two more pages if you need more rows to reach 20 posts. Return a table with id, url, text, createdUtc, authorName, authorUrl, reactionCount, commentCount and a short reader note. Leave author fields empty when the response omits them. Do not invent posts or engagement counts. Stop when you have 20 rows or nextCursor is null.

Replace the example keyword and recency window with your own so the returned table matches the worksheet

Estimated tool cost

Prices come from the Purrkey catalog read on November 13, 2026. The catalog lists the unit as max_call: "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings. Model fees for the agent are not counted

StepFormulaUnit pricePlanned quantityTotal
First-page keyword search1 call x max price$0.018 per call1$0.018
Three-page cursor sweep3 calls x max price$0.018 per call3$0.054

A first-page search costs at most $0.018. A three-page cursor sweep costs at most $0.054. If the first page already returns enough rows, stop after one call. If you need more than three pages, add calls at the same per-call ceiling

Next action

Open the LinkedIn post search tool page and run the first-page search with your keyword and datePosted window

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 with query set to your keyword and datePosted set to one of the five recency values. Read found and data.posts, then pass data.nextCursor as cursor to continue.

What does anyapi.linkedin.search_posts return?

It returns found and data. data.posts holds items with id, url, text and createdUtc plus author and engagement fields when available; data.nextCursor is the next page or null.

What datePosted values can I use?

datePosted accepts last-hour, last-day, last-week, last-month or last-year. It is optional; query is required.

How much does a LinkedIn post search cost?

$0.018 per call. A first-page search is at most $0.018, and a three-page cursor sweep is at most $0.054.

What happens when no posts are found?

found is false and reason is not_found when the source states the target does not exist or returned nothing for it. That is a successful call, not an error.

Can I search posts in languages other than English?

Only public LinkedIn posts are searched, and results come from search-engine matches that work well with English keywords. Test a non-English query before planning a larger sweep.

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