SocialToAIStart freeConsole

LinkedIn API

Posts, accounts.

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.

4 of 6actions available
From 2 creditsper call
Same formatas every other call

Last tested: Last updated:

POST/v1/search200 OK2 credits
platform: "linkedin" · query: "ai agents"
@…·237,136 followers·
likes 404comments 74shares nullcollects nullviews null
Always null here:formattitleauthor.idauthor.verified+6
pageNext pagecursor
billingThis call2 credits
Sample data1 of the 10 items recorded

4 actions.
Plus 2 only LinkedIn has.

Open a row to see its request. Its full parameters and response fields are on its own page.

ActionsCredits per call
SearchFind posts by keyword: text, author, likes, comment count and publish time./v1/search2 credits
You send
platformquery+1 optional
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/search \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "platform": "linkedin",    "query": "ai agents"  }'
POST /v1/searchYour key goes in the Authorization header
DetailOne post by ID or link: text, author, likes, comment count and publish time./v1/detail2 credits
You send
platformid or url
include=transcriptthe transcript of the video2 credits
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/detail \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "platform": "linkedin",    "id": "7514400676702195712"  }'
POST /v1/detailYour key goes in the Authorization header
User ProfileOne account: name and bio./v1/user_profile2 credits
You send
platformusername or url
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/user_profile \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "platform": "linkedin",    "username": "nasa"  }'
POST /v1/user_profileYour key goes in the Authorization header
User PostsThe recent posts of one account./v1/user_posts2 credits
You send
platformusername or url
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/user_posts \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "platform": "linkedin",    "username": "unesco"  }'
POST /v1/user_postsYour key goes in the Authorization header

Not offered on LinkedIn: trending and comments.

Only on LinkedIn · AdsCredits per call
Ad detailPreviewGet one ad of the LinkedIn Ad Library by its ID or link.linkedin.ad_detail2 credits

Get one ad of the LinkedIn Ad Library by its ID or link: advertiser, text, headline, images and videos, landing page, first and last day shown, bracket of impressions, the languages and locations targeted.

id or url
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/call/linkedin.ad_detail \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "id": "1588761774"  }'
POST /v1/call/linkedin.ad_detailYour key goes in the Authorization header
Ad Library searchPreviewSearch the ads of the LinkedIn Ad Library by keyword.linkedin.ad_search2 credits

Search the ads of the LinkedIn Ad Library by keyword: advertiser, text, headline, images and videos, landing page, first and last day shown, bracket of impressions, the languages and locations targeted; can be limited to a country.

query+1 optional
All parameters and response fields
Sign in to run2 creditsOpens this call in the Playground after you sign in. It never runs by itself, and a failed call is not charged.
cURL
curl https://api.socialtoai.com/v1/call/linkedin.ad_search \  -H "Authorization: Bearer $SOCIALTOAI_KEY" \  -H "Content-Type: application/json" \  -d '{    "query": "cloud security"  }'
POST /v1/call/linkedin.ad_searchYour key goes in the Authorization header

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.

Or skip the parameters.
Just ask.

Connect SocialToAI once over MCP. Your AI picks the calls, and you see what each one cost.

You ask01

Which is bigger on LinkedIn this week: home coffee or matcha?

Your AI calls
  • search“home coffee”2 credits
  • search“matcha”2 credits
Total4 credits
You ask02

How big is this LinkedIn account, and what has it posted lately?

Your AI calls
  • user_profilethe account you named2 credits
  • user_postsits latest page2 credits
Total4 credits
You ask03

Look up this LinkedIn account and tell me who it is.

Your AI calls
  • user_profilethe account you named2 credits
Total2 credits

Same shape on every platform.
Learn it once.

A LinkedIn post and a Xiaohongshu note come back with the same field names. What a platform cannot give comes back as null.

LinkedIndetail · 2 credits
{  "platform": "linkedin",  "id": "…",  "ref": "…",  "approx": [],  "type": "content",  "url": "https://example.com/…",  "format": null,  "title": null,  "text": "…",  "published_at": "2026-10-09T19:05:32.138Z",  "author": {    "id": null,    "username": "…",    "name": "…",    "verified": null,    "followers": 7136644  },  "metrics": {    "likes": 474,    "comments": 11,    "shares": null,    "collects": null,    "views": null,    "reposts": null  },  "images": ["https://example.com/…"],  "hashtags": null,  "is_pinned": null}
Null on LinkedIn:formattitleauthor.idauthor.verifiedmetrics.sharesmetrics.collectsmetrics.viewsmetrics.repostshashtagsis_pinned
Xiaohongshudetail · 12 credits
{  "platform": "xiaohongshu",  "id": "…",  "ref": "…",  "approx": [],  "type": "content",  "url": "https://example.com/…",  "format": "image",  "title": "…",  "text": "…",  "published_at": "2026-10-09T01:00:34.000Z",  "author": {    "id": "…",    "username": "…",    "name": "…",    "verified": null,    "followers": null  },  "metrics": {    "likes": 927,    "comments": 122,    "shares": 256,    "collects": 59,    "views": null,    "reposts": null  },  "images": ["https://example.com/…", "https://example.com/…"],  "hashtags": ["…", "…"],  "is_pinned": false}
Null on Xiaohongshu:author.verifiedauthor.followersmetrics.viewsmetrics.reposts
Sample dataThe fields are always there; only the values differ.

4 tools read LinkedIn.

All tools

Does LinkedIn have an 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, checked 2026-10-17.

The same calls work on 17 more.

All platforms and prices

Your AI is one URL away
from all of social media.

100 credits on sign-up, no card needed