LinkFetch Posts API
Through a LinkedIn account you connect in the dashboard.
Through a LinkedIn account you connect in the dashboard.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/linkfetch-io:linkfetch-io-posts-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Linkfetch Io Posts API
version: '2'
contact:
name: LinkFetch
email: info@linkfetch.io
url: https://linkfetch.io
termsOfService: https://linkfetch.io/terms
description: 'Operations tagged Posts across 2 of this provider''s published API definitions: openapi.json, linkfetch-io-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://linkfetch.io
security:
- bearerAuth: []
- apiKeyHeader: []
tags:
- name: Posts
description: Through a LinkedIn account you connect in the dashboard.
paths:
/v1/posts:
get:
operationId: search_posts
tags:
- Posts
summary: Search posts on LinkedIn by keywords (?q=), 10 per page…
description: 'Search posts on LinkedIn by keywords (?q=), 10 per page; ?posted=24h|week|month, ?sort=top|latest, ?from= for one person''s posts.
5 credits per request, however many rows come back.
Runs through a connected LinkedIn account, within its safety limits.
MCP tool: `search_posts`.'
x-credits: 5
x-mcp-tool: search_posts
parameters:
- $ref: '#/components/parameters/account_id'
- name: q
in: query
description: Search keywords (keywords= also works).
schema:
type: string
required: true
- name: posted
in: query
description: Posted within this window.
schema:
type: string
enum:
- 24h
- week
- month
- name: sort
in: query
description: Sort order.
schema:
type: string
enum:
- top
- latest
- name: from
in: query
description: 'Only posts by this person: their public id or linkedin.com/in/ URL.'
schema:
type: string
- $ref: '#/components/parameters/searchLimit'
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/offset'
responses:
'200':
description: OK
headers:
x-credits-remaining:
$ref: '#/components/headers/CreditsRemaining'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/OutOfCredits'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/Limited'
default:
$ref: '#/components/responses/Error'
servers:
- url: https://linkfetch.io
/v1/posts/{post_id}:
get:
operationId: get_post
tags:
- Posts
summary: One post with its counts, by activity id (from the post URL)
description: 'One post with its counts, by activity id (from the post URL).
1 credit per request, however many rows come back.
Runs through a connected LinkedIn account, within its safety limits.
MCP tool: `get_post`.'
x-credits: 1
x-mcp-tool: get_post
parameters:
- name: post_id
in: path
required: true
description: The post's numeric activity id (from the post URL) or urn:li:activity:<id>.
schema:
type: string
- $ref: '#/components/parameters/account_id'
responses:
'200':
description: OK
headers:
x-credits-remaining:
$ref: '#/components/headers/CreditsRemaining'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/OutOfCredits'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/Limited'
default:
$ref: '#/components/responses/Error'
servers:
- url: https://linkfetch.io
/v1/posts/{post_id}/reactions:
get:
operationId: get_post_reactions
tags:
- Posts
summary: Who reacted to a post
description: 'Who reacted to a post.
3 credits per request, however many rows come back.
Runs through a connected LinkedIn account, within its safety limits.
MCP tool: `get_post_reactions`.'
x-credits: 3
x-mcp-tool: get_post_reactions
parameters:
- name: post_id
in: path
required: true
description: The post's numeric activity id (from the post URL) or urn:li:activity:<id>.
schema:
type: string
- $ref: '#/components/parameters/account_id'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/page'
- $ref: '#/components/parameters/offset'
responses:
'200':
description: OK
headers:
x-credits-remaining:
$ref: '#/components/headers/CreditsRemaining'
content:
application/json:
schema:
type: object
additionalProperties: true
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/OutOfCredits'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/Limited'
default:
$ref: '#/components/responses/Error'
post:
operationId: react_to_post
tags:
- Posts
summary: Like, celebrate or otherwise react to a post
description: 'Like, celebrate or otherwise react to a post.
2 credits per request, however many rows come back.
Runs through a connected LinkedIn account, within its safety limits.
MCP tool: `react_to_post`.'
x-credits: 2
x-mcp-tool: react_to_post
parameters:
- name: post_id
in: path
required: true
description: The post's numeric activity id (from the post URL).
schema:
type: string
- $ref: '#/components/parameters/account_id'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
reaction:
type: string
enum:
- LIKE
- PRAISE
- EMPATHY
- INTEREST
- APPRECIATION
- ENTERTAINMENT
- FUNNY
default: LIKE
responses:
'200':
description: OK
headers:
x-credits-remaining:
$ref: '#/components/headers/CreditsRemaining'
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
reaction:
type: string
enum:
- LIKE
- PRAISE
- EMPATHY
- INTEREST
- APPRECIATION
- ENTERTAINMENT
- FUNNY
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/OutOfCredits'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/Limited'
default:
$ref: '#/components/responses/Error'
servers:
- url: https://linkfetch.io
/v1/posts/{post_id}/comments:
post:
operationId: comment_on_post
tags:
- Posts
summary: Comment on a post
description: 'Comment on a post.
5 credits per request, however many rows come back.
Runs through a connected LinkedIn account, within its safety limits.
MCP tool: `comment_on_post`.'
x-credits: 5
x-mcp-tool: comment_on_post
parameters:
- name: post_id
in: path
required: true
description: The post's numeric activity id (from the post URL).
schema:
type: string
- $ref: '#/components/parameters/account_id'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
text:
type: string
description: The comment.
required:
- text
responses:
'200':
description: OK
headers:
x-credits-remaining:
$ref: '#/components/headers/CreditsRemaining'
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/OutOfCredits'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/Limited'
default:
$ref: '#/components/responses/Error'
servers:
- url: https://linkfetch.io
components:
responses:
Error:
description: 'Other errors: 409 account session needs attention, 428 no connected account (`no_account`), 501 not in the API yet (`coming_soon`), 502 LinkedIn failed (`upstream`), 503 `unavailable`, 500 `internal`.'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
OutOfCredits:
description: Out of credits (`out_of_credits`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Missing, invalid or revoked API key (`unauthorized`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Limited:
description: The account's safety limit or queue is full (`rate_limited`, `queue_full`); try again later.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: Nothing found (`not_found`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
BadRequest:
description: Invalid input (`bad_request`).
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
parameters:
limit:
name: limit
in: query
description: Results per page.
schema:
type: integer
minimum: 1
maximum: 50
default: 25
offset:
name: offset
in: query
description: 'Alternative to page: rows to skip (rounded down to a whole page).'
schema:
type: integer
minimum: 0
page:
name: page
in: query
description: Page number, from 1.
schema:
type: integer
minimum: 1
default: 1
account_id:
name: account_id
in: query
description: Which connected LinkedIn account to use (from GET /v1/accounts). Defaults to your default account.
schema:
type: string
searchLimit:
name: limit
in: query
description: Results per page; LinkedIn search pages hold at most 10.
schema:
type: integer
minimum: 1
maximum: 10
default: 10
schemas:
Error:
type: object
properties:
error:
type: object
properties:
code:
type: string
message:
type: string
required:
- code
- message
required:
- error
headers:
CreditsRemaining:
description: Your credit balance after this request, when it was charged.
schema:
type: integer
securitySchemes:
bearerAuth:
type: http
scheme: bearer
description: Your API key (lf_…) from the dashboard.
apiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: The same API key, as a header.
x-refined-from:
- openapi.json
- linkfetch-io-openapi.json
x-provenance:
method: harvested
publisher: LinkFetch
source: https://linkfetch.io/openapi.json
note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
stamped by stamp-openapi-provenance.py (roadmap#793)