# LinkedIn API

The LinkedIn API lets you search posts and read post details, account profiles and an account's posts, with no LinkedIn account or login. Each call costs 2 credits ($0.004 to $0.0067); failed calls are free. LinkedIn does not give view counts, so that field is returned as null. Use it over HTTP with an API key, or through MCP from your AI client. Last tested 2026-10-17.

- Page: https://socialtoai.com/platforms/linkedin/
- Last updated: 2026-10-17
- Last tested: 2026-10-17

## Actions

| Action | What it returns | Selected by | Price key | Credits | Parameters and fields |
| --- | --- | --- | --- | --- | --- |
| `search` | Find posts by keyword: text, author, likes, comment count and publish time. | — | `linkedin.search` | 2 | https://socialtoai.com/linkedin-search-api.md |
| `detail` | One post by ID or link: text, author, likes, comment count and publish time. | — | `linkedin.detail` | 2 | https://socialtoai.com/linkedin-detail-api.md |
| `detail` | the transcript of the video | `include=transcript` | `linkedin.detail:transcript` | 2 | https://socialtoai.com/linkedin-detail-api.md |
| `user_profile` | One account: name and bio. | — | `linkedin.user_profile` | 2 | https://socialtoai.com/linkedin-user-profile-api.md |
| `user_posts` | The recent posts of one account. | — | `linkedin.user_posts` | 2 | https://socialtoai.com/linkedin-user-posts-api.md |

Not offered on LinkedIn: trending and comments.

## Example call

```bash
curl https://api.socialtoai.com/v1/search \
  -H "Authorization: Bearer $SOCIALTOAI_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "platform": "linkedin",
    "query": "ai agents"
  }'
```

## Only on LinkedIn

Each one is called by its own op, through `POST /v1/call/{op}`; its full parameters and response fields are on its own page.

### Ads

| Interface | What it does | Price key | Credits | Parameters and fields |
| --- | --- | --- | --- | --- |
| Ad detail (Preview) | Get one ad of the LinkedIn Ad Library by its ID or link. | `linkedin.ad_detail` | 2 | https://socialtoai.com/linkedin-ad-detail-api.md |
| Ad Library search (Preview) | Search the ads of the LinkedIn Ad Library by keyword. | `linkedin.ad_search` | 2 | https://socialtoai.com/linkedin-ad-search-api.md |

Preview: this interface is not marked stable yet, so its parameters and fields may still change. It is charged like any other call, and a failed call is not charged.

## Fields LinkedIn cannot give

These fields are always null on the calls named, and are listed in the response's `unavailable`.

| Field | On |
| --- | --- |
| `format` | search, detail, user_posts |
| `title` | search, detail, user_posts |
| `author.id` | search, detail, user_posts |
| `author.verified` | search, detail, user_posts |
| `metrics.shares` | search, detail, user_posts |
| `metrics.collects` | search, detail, user_posts |
| `metrics.views` | search, detail, user_posts |
| `metrics.reposts` | search, detail, user_posts |
| `hashtags` | search, detail, user_posts |
| `is_pinned` | search, detail, user_posts |
| `verified` | user_profile |
| `followers` | user_profile |
| `following` | user_profile |
| `posts_count` | user_profile |
| `author.username` | user_posts |
| `author.name` | user_posts |
| `author.followers` | user_posts |
| `metrics.likes` | user_posts |
| `metrics.comments` | user_posts |
| `images` | user_posts |

## Ask in your AI

- Which is bigger on LinkedIn this week: home coffee or matcha? → search, search: 4 credits

- How big is this LinkedIn account, and what has it posted lately? → user_profile, user_posts: 4 credits

- Look up this LinkedIn account and tell me who it is. → user_profile: 2 credits

## Ready-made tools that read LinkedIn

- [Brand buzz](https://socialtoai.com/tools/brand-buzz.md): How people feel about it on each platform, what comes up most, and the posts behind it
- [Account watch](https://socialtoai.com/tools/account-watch.md): What each one posted lately, and which posts beat its usual numbers
- [Creator profile](https://socialtoai.com/tools/creator-card.md): Their accounts on other platforms, the numbers on each, and how sure the match is
- [Bulk link data](https://socialtoai.com/tools/batch-stats.md): One row per link with its numbers as they are now. Links that no longer work are marked

## Official API

LinkedIn's self-serve API permissions only cover signing in (the member's own name, headline, photo and email) and posting on a member's behalf. Other APIs require approval through LinkedIn's partner programs; none of the open permissions reads other members' posts.

Source: [LinkedIn's developer documentation](https://learn.microsoft.com/en-us/linkedin/shared/authentication/getting-access), checked 2026-10-17.
