LinkedIn

The LinkedIn API, without the partner program wait

Yes, LinkedIn has an API, and you don't need a partnership to publish with it. Create, update, and delete posts on member profiles today. Organization pages are live in beta with publishing, comments, and page insights. SocialAPI.ai handles OAuth scopes, LinkedIn-Version headers, and the Rest.li protocol for you.

Free tier available
Instant API key
MCP server included

See it in action.

Publish a post to LinkedIn

api.social-api.ai
1curl -X POST https://api.social-api.ai/v1/posts \
2  -H "Authorization: Bearer <your-api-key>" \
3  -H "Content-Type: application/json" \
4  -d '{
5    "targets": [{ "account_id": "<linkedin-account-id>" }],
6    "text": "We just shipped our new API. Here is what changed and why it matters for developers.",
7    "media_urls": ["https://yourcdn.com/image.jpg"]
8  }' | jq
9
10# Response
11{
12  "id": "<post-id>",
13  "status": "published",
14  "platforms": {
15    "linkedin": {
16      "status": "published",
17      "platform_post_id": "urn:li:share:7..."
18    }
19  }
20}

The same POST /v1/posts endpoint you already use for every other platform. SocialAPI.ai handles LinkedIn's Rest.li protocol, LinkedIn-Version headers, and URN plumbing behind the scenes.

What you can do with LinkedIn.

Supported

Profile publishing

Publish text, images, video, and multi-image carousels to a member profile. Update post text and delete posts through the same unified endpoint.

Supported

Organization pages

Publish, read, update, and delete posts on LinkedIn company pages via the linkedin_page connector. Live in beta; access on request.

Supported

Comments

Read, reply to, like, hide, and delete comments on organization page posts (beta). LinkedIn does not expose comments for personal profiles.

Supported

Page insights

Retrieve follower statistics and page-level analytics for organization pages (beta).

The official API vs one API key.

Getting access

the official LinkedIn API

Apply to the Marketing Developer Platform or Community Management API and wait for review before you can build.

With SocialAPI.ai

Sign up, grab an API key, and connect a LinkedIn account through OAuth in minutes.

Publishing a post

the official LinkedIn API

Rest.li protocol, LinkedIn-Version headers, and URN plumbing on every request.

With SocialAPI.ai

One POST /v1/posts call with plain JSON. Headers and protocol quirks are handled for you.

Company pages

the official LinkedIn API

A separate Community Management API with seven OAuth scopes to wire up yourself.

With SocialAPI.ai

Same endpoint. Pass connection_type: organization and publish to any page you administer (beta).

Reading the result

the official LinkedIn API

The post URN is returned in a response header, not the body.

With SocialAPI.ai

A normalized JSON response with the post ID, like every other platform.

Token expiry

the official LinkedIn API

Member tokens die after about 60 days with no programmatic refresh; you build the reconnect UX.

With SocialAPI.ai

Expired accounts return a clear reconnect error instead of a silent failure.

Good to know.

Member access tokens last about 60 days and cannot be refreshed programmatically; when one expires, the member reconnects through OAuth to keep publishing.

Organization page access (linkedin_page) is in beta and gated by allowed_platforms; request access before you can connect a company page.

LinkedIn does not scrape link previews for shared articles, so provide your own thumbnail, title, and description.

Comments and page insights are only available for organization pages; LinkedIn does not expose comments or insights for personal profiles.

Reading a member's own posts back from LinkedIn is not available; listing returns the posts SocialAPI has stored, not a live read from the platform.

LinkedIn's API does not offer direct messages, reviews, or mentions for either member or organization accounts.

Why developers love LinkedIn on SocialAPI.ai

1

Multi-format profile publishing

Publish text posts, image posts, video posts, and multi-image carousels to a member's LinkedIn profile through the unified publishing endpoint. Update post text or delete a post through the same endpoint, no separate LinkedIn-specific calls required.

2

Organization pages, live in beta

Publish, read, update, and delete posts on a LinkedIn company page through the linkedin_page connector. Access is gated by allowed_platforms; request it and connect the page you administer with connection_type: organization.

3

Comment management on organization pages

Read, reply to, like, hide, and delete comments on organization page posts through the same paginated comment endpoints used across every other platform. LinkedIn does not expose a comments API for personal profiles, so this is org-page only.

4

Page insights

Pull follower statistics and page-level analytics for organization pages you administer. Insights are part of the linkedin_page beta and use the same request shape as insights for other platforms.

5

One schema, regardless of LinkedIn's protocol

LinkedIn's raw API speaks Rest.li, sends the post URN back in a response header, and requires a LinkedIn-Version header (currently 202605) on every call. SocialAPI.ai absorbs all of that and returns the same normalized JSON response you get from Instagram, Facebook, or any other connected platform.

Simple, honest pricing.

Reading comments, DMs, and mentions is free and unlimited on every plan. Paid plans start at $29/mo with unlimited posts and interactions. The free tier needs no credit card.

FAQ

Frequently asked questions.

Does LinkedIn have an API?

Yes. LinkedIn offers official APIs, but most features sit behind partner programs and app review. SocialAPI.ai publishes to member profiles and organization pages (beta) through one REST API with no partner application.

Is the LinkedIn API free?

LinkedIn's official API has no fee, but access requires approval and engineering time. SocialAPI.ai has a free tier with no credit card; paid plans start at $29/mo with unlimited posts.

Can I post to LinkedIn with Python?

Yes. The API is plain REST with JSON, so any language works. The Python tab above publishes a post in a few lines.

Can I read or reply to LinkedIn comments through the API?

On organization pages, yes: read, reply, like, hide, and delete (beta). LinkedIn does not expose comments on personal profiles to any third party.

How long do LinkedIn access tokens last?

About 60 days, and LinkedIn does not allow programmatic refresh. When a token expires the member reconnects in one OAuth round-trip.

Can AI agents post to LinkedIn through SocialAPI.ai?

Yes. The built-in MCP server exposes publishing as tools, so Claude and other MCP-capable agents can draft and publish LinkedIn posts with your approval flow.

Get started today

Ready to unify your social interactions?

Free tier available · No credit card required · Ships with MCP server

We use essential cookies for security, and analytics cookies with your consent. Privacy Policy.