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-11-05.
Last tested: Last updated:
/v1/search200 OK2 creditsplatform: "linkedin" · query: "ai agents"nullcollects nullviews nullformattitleauthor.idauthor.verified+54 actions.
Plus 2 only LinkedIn has.
Open a row to see its request. Its full parameters and response fields are on its own page.
SearchFind posts by keyword: text, author, likes, comment count and publish time./v1/search2 credits≈ $0.0067$0.67 per 1,000 (up to 10 a page)
platformquery+1 optionalcurl https://socialtoai.app/v1/search \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "linkedin", "query": "ai agents" }'POST /v1/searchYour key goes in the Authorization headerDetailOne post by ID or link: text, author, likes, comment count and publish time./v1/detail2 credits≈ $0.0067
platformid or urlinclude=transcriptthe transcript of the video2 creditscurl https://socialtoai.app/v1/detail \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "linkedin", "id": "7514400676702195712" }'POST /v1/detailYour key goes in the Authorization headerUser ProfileOne account: name and bio./v1/user_profile2 credits≈ $0.0067
platformusername or urlcurl https://socialtoai.app/v1/user_profile \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "linkedin", "username": "nasa" }'POST /v1/user_profileYour key goes in the Authorization headerUser PostsThe recent posts of one account./v1/user_posts2 credits≈ $0.0067$0.67 per 1,000 (up to 10 a page)
platformusername or urlcurl https://socialtoai.app/v1/user_posts \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "platform": "linkedin", "username": "unesco" }'POST /v1/user_postsYour key goes in the Authorization headerNot offered on LinkedIn: trending and comments.
Compared with X: LinkedIn posts do not give saves, reposts or views; its accounts do not give verified, followers, following or posts.
Ad detailGet one ad of the LinkedIn Ad Library by its ID or link.linkedin.ad_detail2 credits≈ $0.0067
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 urlcurl https://socialtoai.app/v1/call/linkedin.ad_detail \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "id": "1588761774" }'POST /v1/call/linkedin.ad_detailYour key goes in the Authorization headerAd Library searchSearch the ads of the LinkedIn Ad Library by keyword or by the company that advertises.linkedin.ad_search2 credits≈ $0.0067$0.28 per 1,000 (up to 24 a page)
Search the ads of the LinkedIn Ad Library by keyword or by the company that advertises: 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 or advertiser+1 optionalcurl https://socialtoai.app/v1/call/linkedin.ad_search \ -H "Authorization: Bearer $SOCIALTOAI_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "query": "cloud security" }'POST /v1/call/linkedin.ad_searchYour key goes in the Authorization headerWhat a whole job costs.
| The job | How it adds up | Credits | About |
|---|---|---|---|
| Search 1,000 results on LinkedIn | usually 10 a page, 100 pages | 200 credits | about $0.67 |
| Watch 1 LinkedIn account daily, at most a month | 12 credits × 31 days | 372 credits | about $1.24 |
Priced at the $10 pack; larger purchases bring it down. A watch runs only while it is on, and you can pause it at any time. There is no subscription.
Or skip the parameters.
Just ask.
Connect SocialToAI once over MCP. Your AI picks the calls, and you see what each one cost.
Which is bigger on LinkedIn this week: home coffee or matcha?
- search“home coffee”2 credits
- search“matcha”2 credits
How big is this LinkedIn account, and what has it posted lately?
- user_profilethe account you named2 credits
- user_postsits latest page2 credits
Look up this LinkedIn account and tell me who it is.
- user_profilethe account you named2 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.
{ "platform": "linkedin", "id": "…", "ref": "…", "approx": [], "extra": {}, "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": [], "is_pinned": null}formattitleauthor.idauthor.verifiedmetrics.sharesmetrics.collectsmetrics.viewsmetrics.repostsis_pinned{ "platform": "xiaohongshu", "id": "…", "ref": "…", "approx": [], "extra": {}, "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}author.verifiedauthor.followersmetrics.viewsmetrics.reposts4 tools read LinkedIn.
All toolsDoes 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-30.
| Who can use it | Cost | Limits | Source | |
|---|---|---|---|---|
| Self-serve permissions | Any developer app. | LinkedIn's page states no price. | Sign in (the member's own name, headline, photo and email) and posting on a member's behalf. None reads other members' posts. | learn.microsoft.com, checked 2026-10-30 |
| Partner program APIs | Apps approved through LinkedIn's partner programs. | LinkedIn's page states no price. | Every API beyond the self-serve permissions needs that approval. | learn.microsoft.com, checked 2026-10-30 |
| SocialToAI | Anyone with a key; no LinkedIn account of yours and no review. | From 2 credits a call (≈$0.0067); failed calls are free. | Publicly visible content only; up to 10 items a call. | Pricing |
1,000 posts here: about 100 linkedin.search calls (typically 10 a page), 200 credits, $0.67 at the first pack. Estimate your cost
- Transcript API, every platformWhich platforms give a transcript, timed or not.
- Monitor competitors' accounts every daycompetitors' accounts, daily: what is new and what beat their usual, from 9 credits an account
- LinkedIn MCP serverLet your AI read LinkedIn.