Social media5 min readBy Purrkey teamUpdated

How to list a LinkedIn company's recent posts

Get the text and canonical links for a public LinkedIn company page's recent posts in one API call

On this page

You have three competitors' public LinkedIn company pages and need to pull their recent post text and canonical links each week for a competitive-intel digest. The deliverable is a table with one row per returned post, carrying id, url, text, createdUtc and the input url you supplied. You then compare that table with the prior week's table and choose which updates belong in the digest

This article has no executed run. The tables below are a design, and values are placeholders showing the shape. The tool described here is the basic company posts endpoint, which the catalog describes as post text and link only

Example input and deliverable table

The input is one full public LinkedIn company page URL per competitor. Example pages with invented slugs:

Replace these with the real public LinkedIn company page URL for each competitor before running

The deliverable table has one row per post returned in data.items. Values here are placeholders showing the shape:

idurltextcreatedUtccompany_page
(post id)(post URL)(post text)(UTC epoch seconds)https://www.linkedin.com/company/acme-plumbing-example

Keep the input url value so a row remains tied to its competitor after you combine three pages. If a page returns found: false, record the page and mark it as no posts rather than inventing a row

What the tool takes

The catalog lists this tool, called through POST /v1/runs with toolId anyapi.linkedin.company_posts_thin. The contract documents url as required: the full public LinkedIn company page URL. page is optional and accepts integers of 1 or higher for pagination. Set page to 1 for the first call and raise it only when you need older posts

Check the current inputs before running. Do not assume the documented fields are the whole input surface

Reading the output fields

found says whether the company posts were found. When found is true, data.items holds the company's recent posts. Each item has id, url, text and createdUtc. createdUtc is a UTC epoch timestamp in seconds; multiply by 1000 for a JS Date in milliseconds. Use url and text to decide which update goes into the digest, and sort by createdUtc when you need a weekly order

When found is false, data is null and reason says not_found. A found: false answer is a successful call, not an error. Record the page as no posts and move to the next competitor. The digest still needs a row for that competitor so the weekly comparison shows the gap

The basic tool returns post text and link only. It cannot return engagement counts, author details, media, or reaction breakdown. That limit decides how you use the table: the digest can quote the post text and link, but it cannot rank posts by reactions or identify an author from this response

For each competitor, compare the new url values with the prior week's url column. New id and url pairs are candidates; use text to write the digest line. If a post has no new URL but its text changed, note the edit only if your process tracks edits

The agent prompt

Agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to list recent posts from three public LinkedIn company pages. Check the current inputs and price of anyapi.linkedin.company_posts_thin before running. Call the tool once per company page URL. Return a table with id, url, text, createdUtc and company_page. Mark a page with found false as no posts. Do not invent post text or post URLs. Use page 1 for the first call.

Example URLs:
https://www.linkedin.com/company/acme-plumbing-example
https://www.linkedin.com/company/northline-hvac-example
https://www.linkedin.com/company/riverbend-electrical-example

Replace the Example URLs with real public LinkedIn company page URLs before running.

Keep the first run to the three competitor pages. The found: false rows are part of the table, not a reason to retry with guessed data

Estimated tool cost

The catalog lists anyapi.linkedin.company_posts_thin at up to $0.00242 per call. The unit is max_call, which the catalog defines as "Maximum per call. Successful runs settle at the actual AnyAPI charge." The totals below are ceilings. Agent model fees are not counted

StepFormulaUnit pricePlanned quantityTotal
One callcalls x max price$0.00242 per call1$0.00242
Three competitor pagescalls x max price$0.00242 per call3$0.00726
Five callscalls x max price$0.00242 per call5$0.01210

Three competitor pages use three calls, at most $0.00726. A five-call run is at most $0.01210. A found: false answer is a successful call, so it is part of the planned quantity rather than a separate error row

Next action

Open the LinkedIn company posts tool page to check the current inputs and price. Replace the invented example URLs with the real public LinkedIn company page URL for each competitor before running

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 list a LinkedIn company's recent posts with an API?

Use anyapi.linkedin.company_posts_thin with the full public LinkedIn company page URL in url. The tool returns id, url, text and createdUtc for each recent post when found is true.

What inputs does anyapi.linkedin.company_posts_thin take?

The contract documents url as required and page as optional for pagination. page accepts integers of 1 or higher.

What does anyapi.linkedin.company_posts_thin return?

It returns found, data and, when there is no result, reason with not_found. When found is true, data.items has recent posts with id, url, text and createdUtc.

What does found false mean for this tool?

found: false means the company posts were not found, and reason is not_found. The contract says a found: false answer is a successful call, not an error.

Does the tool return engagement counts or author details?

No. The basic tool returns post text and link only and cannot return engagement counts, author details, media, or reaction breakdown.

How much does it cost to list posts for three company pages?

At up to $0.00242 per call, three calls are at most $0.00726. One call is at most $0.00242 and five calls are at most $0.01210. Agent model fees are not counted.

What is createdUtc in the post output?

createdUtc is a UTC epoch timestamp in seconds. Multiply it by 1000 for a JS Date in milliseconds.

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