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.
Last tested: Last updated:
/v1/search200 OK2 creditsplatform: "linkedin" · query: "ai agents"nullcollects nullviews nullformattitleauthor.idauthor.verified+64 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
platformquery+1 optionalcurl 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 headerDetailOne post by ID or link: text, author, likes, comment count and publish time./v1/detail2 credits
platformid or urlinclude=transcriptthe transcript of the video2 creditscurl 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 headerUser ProfileOne account: name and bio./v1/user_profile2 credits
platformusername or urlcurl 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 headerUser PostsThe recent posts of one account./v1/user_posts2 credits
platformusername or urlcurl 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 headerNot offered on LinkedIn: trending and comments.
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 urlcurl 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 headerAd 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 optionalcurl 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 headerPreview: 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.
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": [], "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}formattitleauthor.idauthor.verifiedmetrics.sharesmetrics.collectsmetrics.viewsmetrics.repostshashtagsis_pinned{ "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}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-17.