Access
Your users link a company page or personal profile on Ayrshare's approved LinkedIn app. You skip the Community Management API application, the legal organization vetting, and the Standard tier review.

Ayrshare's LinkedIn API lets developers publish text, images, video, and documents to LinkedIn company pages and personal profiles via a single REST endpoint. It supports scheduled posts, audience targeting, mentions, visibility controls, comments, and analytics across 14+ social networks through one integration.
Your users link their own LinkedIn company page or personal profile through an OAuth flow inside your product, on Ayrshare's approved LinkedIn app. You don't need to apply for LinkedIn's Community Management API.

One integration, 14+ networks, 30M+ API calls a day.
50+
LinkedIn metrics
30M+
API calls per day
14+
Social media networks
AI-Native
Native MCP server for any AI agent
50+
LinkedIn metrics
30M+
API calls per day
14+
Social media networks
AI-Native
Native MCP server for any AI agent
You need one API key and a user who links their LinkedIn page or profile. Ayrshare holds the approved LinkedIn app, so there is no application to file, no company vetting, and no review call before your first post. After that, Ayrshare keeps the integration running: monthly LinkedIn API versions, new post types as LinkedIn adds them, and link renewals before they expire.
Your users link a company page or personal profile on Ayrshare's approved LinkedIn app. You skip the Community Management API application, the legal organization vetting, and the Standard tier review.
LinkedIn releases a new API version every month. Ayrshare keeps your integration current and adds new LinkedIn features, like document posts and audience targeting, so you don't have to.
Personal profiles and company pages. Linking a company page needs the Super Admin or Content Admin role.
A LinkedIn link lasts 365 days. Ayrshare emails your user and fires a webhook 15 days before it expires, so re-linking is a button, not an outage.

Each sample publishes an image post with a link now, then schedules a video for later. Same endpoint, same JSON, in Node.js, Python, PHP, Java, Go, Ruby, C#, or plain cURL. Add a Profile-Key header to post for one of your users.
# 1. Publish now: an image post with a link and alt textcurl -X POST https://api.ayrshare.com/api/post \ -H "Authorization: Bearer $AYRSHARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "post": "We rebuilt our onboarding around one question. https://example.com/blog/onboarding #productdesign", "platforms": ["linkedin"], "mediaUrls": ["https://example.com/onboarding.jpg"], "linkedInOptions": { "altText": ["Screenshot of the new onboarding screen"] } }' # 2. Schedule for later (ISO 8601, UTC)curl -X POST https://api.ayrshare.com/api/post \ -H "Authorization: Bearer $AYRSHARE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "post": "Two minutes on how our API handles retries.", "platforms": ["linkedin"], "mediaUrls": ["https://example.com/retries.mp4"], "linkedInOptions": { "thumbNail": "https://example.com/retries-cover.jpg" }, "scheduleDate": "2026-11-06T17:00:00Z" }'
LinkedIn's rules in one place. The full list lives in the LinkedIn media guidelines and the LinkedIn publishing options.
Text, links with automatic previews, single or multi-image posts, video, and documents. Media can go out with no post text.
Company pages and personal profiles. Only Admins and Direct Sponsored Content users can publish video to a company page.
JPG, PNG, GIF, or animated GIF, up to 9 per post. LinkedIn recommends 1200 x 627 px.
MP4 from 3 seconds to 30 minutes, with an aspect ratio between 1:2.4 and 2.4:1. Thumbnails are PNG or JPG, match the video's dimensions, and stay under 10 MB.
400 for a document title and 1,250 for a comment. Per-image alt text and titles ride along in linkedInOptions.
PDF, PPT, PPTX, DOC, or DOCX. Signed URLs with a query string after the extension work.
Mention a company page with @handle, or a member with @vanity_name or @[Full Name]. Target company page posts by country, seniority, industry, job function, or company size when the audience has at least 300 followers.
Pass a scheduleDate to publish later. A LinkedIn link lasts 365 days, with a reminder 15 days before it expires.
Put the document URL in mediaUrls and give it a title in linkedInOptions. Without a title, LinkedIn uses the file name. Documents don't take alt text.
{ "post": "Our 2026 state of social APIs report, 40 pages, no gate.", "platforms": ["linkedin"], "mediaUrls": ["https://example.com/reports/state-of-social-apis-2026.pdf"], "linkedInOptions": { "title": "State of social APIs 2026" }}
Ayrshare holds the approved LinkedIn app, so your product sends one request and gets back the LinkedIn share ID and URL. Ayrshare uploads images, video, and documents, resolves @mentions, applies targeting and visibility, and handles LinkedIn's monthly API versions.
For a step-by-step walkthrough, read How to Post to LinkedIn with an API.
See the LinkedIn Publishing OptionsSend one POST request with your post, media URL, and the user's Profile-Key. We keep the LinkedIn app approved and keep up with LinkedIn's monthly API versions.
OAuth tokens, media and document upload, @mention lookup, targeting, and visibility. All data is encrypted at rest and in transit.
Get the LinkedIn post URL right away. The same ID returns 50+ LinkedIn metrics, from impressions and reactions by type to engagement rate and video views, in the same JSON format as every other network.
The same LinkedIn connection that publishes also reads analytics, handles comments, pulls history, and validates posts before they go out.

50+ metrics for company pages and personal profiles: impressions, unique reach, reactions by type, comments, shares, engagement rate, video views, followers, and page views. Counts settle within 24 to 48 hours.
Analytics APIRead comments and replies, post a comment with an image, reply, delete, and @mention companies or members in the reply.
Engagement APIFetch a page's or profile's past posts with metrics, including posts published outside Ayrshare.
History APISend the same JSON to /validate/post first and get back any issues without anything reaching LinkedIn.
Validate docsLook up a company page or member by name to get the exact handle for an @mention, so every mention links to the right profile.
LinkedIn Search docsSee every network you can reach with the same integration on the supported networks page.
Yes, you can post to LinkedIn through an API. Ayrshare's LinkedIn API lets developers publish text, images, video, and documents to LinkedIn company pages and personal profiles via a single REST endpoint. It supports scheduled posts, audience targeting, mentions, visibility controls, comments, and analytics across 14+ social networks through one integration. Start with the LinkedIn publishing options.
The LinkedIn API is free for now: LinkedIn's API terms say the APIs are currently provided free, though LinkedIn can charge later. The real cost is access, since company page posting means applying for the Community Management API and passing two reviews. Ayrshare's plans include company page and profile posting on Ayrshare's approved app. Compare Ayrshare plans.
You get LinkedIn API access in the LinkedIn Developer Portal. Share on LinkedIn, for posting to a member's own feed, is self-serve. Company page posting needs an access request for the Community Management API, a verified business email, and a Page super admin's approval, then a Standard tier review. With Ayrshare, your users link through Ayrshare's approved app instead. See the Post API reference.
LinkedIn company page posting needs the w_organization_social permission from the Community Management API, plus the Super Admin or Content Admin role on the page being linked. LinkedIn only approves registered legal organizations for commercial use. With Ayrshare, the permission is already in place, so your users only need the page role. Read the LinkedIn docs.
Yes, you can post a PDF or slide deck to LinkedIn with an API. Put a PDF, PPT, PPTX, DOC, or DOCX URL in mediaUrls and set a title in linkedInOptions. Files can be up to 100 MB and 300 pages, and signed URLs work. The tutorial How to Post to LinkedIn with an API walks through a first post.
Yes, you get LinkedIn analytics and comments through the same API, for both company pages and personal profiles. Post analytics include impressions, reactions by type, comments, shares, engagement rate, and video views, and account analytics add followers and page views. Comments can be read, posted, replied to, and deleted. See the Analytics API.
Get an API key, publish your first LinkedIn post, and turn on the other networks with the same call when you need them.