---
title: "LinkedIn API"
description: "Use Ayrshare's LinkedIn API to publish text, images, video, and PDFs, schedule them, and get analytics for your users, without waiting on LinkedIn's approval."
canonical: https://www.ayrshare.com/linkedin-api/
lastModified: 2026-11-03
pageType: landing
---

# LinkedIn API

> Use Ayrshare's LinkedIn API to publish text, images, video, and PDFs, schedule them, and get analytics for your users, without waiting on LinkedIn's approval.

## LinkedIn API for Posting, Scheduling, and Analytics

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.

[Read the LinkedIn Docs](/docs/apis/post/social-networks/linkedin)
[Get Your API Key](/pricing/)

- **50+** — LinkedIn metrics
- **30M+** — API calls per day
- **14+** — Social media networks
- **AI-Native** — Native MCP server for any AI agent

## What Do You Need to Know About the LinkedIn API?

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.

- **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.
- **Ongoing maintenance**: 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.
- **Account types**: Personal profiles and company pages. Linking a company page needs the Super Admin or Content Admin role.
- **Link renewal reminders**: 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.

## Post and Schedule to LinkedIn in Your Language

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.

[Full Post API Reference](/docs/apis/post/overview)

- **cURL**
- **Node.js**
- **Python**
- **PHP**
- **Java**
- **Go**
- **Ruby**
- **C#**

## LinkedIn API Limits: Post Types, Media, and Characters

LinkedIn's rules in one place. The full list lives in the [LinkedIn media guidelines](/docs/media-guidelines/linkedin) and the [LinkedIn publishing options](/docs/apis/post/social-networks/linkedin).

- **5 post types (Post types)**: Text, links with automatic previews, single or multi-image posts, video, and documents. Media can go out with no post text.
- **2 account types (Accounts)**: Company pages and personal profiles. Only Admins and Direct Sponsored Content users can publish video to a company page.
- **5 MB per image (Images)**: JPG, PNG, GIF, or animated GIF, up to 9 per post. LinkedIn recommends 1200 x 627 px.
- **500 MB per video (Video)**: 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.
- **3,000 characters per post (Characters)**: 400 for a document title and 1,250 for a comment. Per-image alt text and titles ride along in linkedInOptions.
- **100 MB up to 300 pages (Documents)**: PDF, PPT, PPTX, DOC, or DOCX. Signed URLs with a query string after the extension work.
- **300 followers to target (Mentions and targeting)**: 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.
- **150 posts per day per account (Scheduling and limits)**: Pass a scheduleDate to publish later. A LinkedIn link lasts 365 days, with a reminder 15 days before it expires.

## What Else Can You Do With the LinkedIn API?

- **Post a PDF or slide deck as a document**: 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 up to 9 images with alt text and titles**: Send up to 9 image URLs. altText and titles are arrays that line up with mediaUrls in order, so screen readers and captions stay attached to the right image.
- **Upload video with a custom thumbnail**: MP4 up to 500 MB and 30 minutes. If the URL doesn't end in a video extension, set isVideo. The thumbnail must match the video's dimensions and stay under 10 MB. LinkedIn processes video for several minutes before the share URL and analytics work.
- **Target company page posts by audience**: Narrow who sees an organic company page post by country, seniority, industry, job function, degree, field of study, or company size. LinkedIn needs at least 300 followers in the targeted audience, or the post fails. visibility takes public (the default), loggedin, or connections, and the allowed values for each targeting field are listed in the LinkedIn docs.
- **Mention pages and members, and control sharing**: Write @handle for a company page and @[Full Name] or @vanity_name for a member. Ayrshare looks the handle up before posting, and unresolved mentions lose their @ so LinkedIn still accepts the post. Member mentions need a linked company page that the member follows. disableShare stops resharing, and disableComments turns comments off.

## Why Use Ayrshare Instead of the LinkedIn API Directly?

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](/blog/how-to-post-and-get-analytics-with-the-linkedin-api/).

[See the LinkedIn Publishing Options](/docs/apis/post/social-networks/linkedin)

- **One simple endpoint**: Send 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.
- **We deal with LinkedIn**: OAuth tokens, media and document upload, @mention lookup, targeting, and visibility. All data is encrypted at rest and in transit.
- **Analytics on every post**: 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.

## Beyond Posting: The Rest of the LinkedIn Lifecycle

The same LinkedIn connection that publishes also reads analytics, handles comments, pulls history, and validates posts before they go out.

See every network you can reach with the same integration on the [supported networks page](/supported-networks/).

- **Analytics**: 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 API](/social-media-analytics-api/)
- **Comments**: Read comments and replies, post a comment with an image, reply, delete, and @mention companies or members in the reply.
  - [Engagement API](/social-media-engagement-api/)
- **History**: Fetch a page's or profile's past posts with metrics, including posts published outside Ayrshare.
  - [History API](/history-api/)
- **Pre-publish checks**: Send the same JSON to /validate/post first and get back any issues without anything reaching LinkedIn.
  - [Validate docs](/docs/apis/validate/overview)
- **Mention lookup**: Look 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 docs](/docs/apis/listen/search/linkedin-search)

## FAQs About the LinkedIn API

### Can I post to LinkedIn through an API?

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](/docs/apis/post/social-networks/linkedin).
### Is the LinkedIn API free?

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](/pricing/).
### Where can I get LinkedIn API access?

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](/docs/apis/post/overview).
### What access is needed for LinkedIn company page posting?

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](/docs/apis/post/social-networks/linkedin).
### Can I post a PDF or slide deck to LinkedIn with an API?

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](/blog/how-to-post-and-get-analytics-with-the-linkedin-api/) walks through a first post.
### Can I get LinkedIn analytics and comments through the API?

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](/social-media-analytics-api/).

## Your Users Are on LinkedIn. Your Product Can Be Too.

Get an API key, publish your first LinkedIn post, and turn on the other networks with the same call when you need them.

[Get Your API Key](/pricing/)
[Read the LinkedIn Docs](/docs/apis/post/social-networks/linkedin)
