How to Connect LinkedIn API to an AI Agent
Auth setup
1. Create app at linkedin.com/developers. 2. Add products (Share on LinkedIn, Marketing APIs). 3. OAuth 2.0 with redirect URI.
Key facts
| Base URL | https://api.linkedin.com/v2/ |
| API version | v2 |
| Auth | OAuth 2.0 Authorization Code. Register at linkedin.com/developers. 3-legged auth for user data. |
| Token URL | https://www.linkedin.com/oauth/v2/accessToken |
| Scopes | r_liteprofile r_emailaddress w_member_social |
| Request body | application/json |
| Pagination | offset-based: start and count params. |
| Rate limit | 100 req/day for most endpoints. Application-level daily limits. |
| Error format | JSON: {"serviceErrorCode":65600,"message":"...","status":403} |
Key endpoints
| Method | Path | Description |
POST | /ugcPosts | Create post/share content |
GET | /me | Get authenticated user profile |
GET | /organizationalEntityAcls | List managed pages |
Quickstart
GET /v2/me
Authorization: Bearer {access_token}
Agent pitfalls & tips
- Product approval needed for most APIs โ not instant access.
- Marketing APIs require separate approval and higher-tier partnership.
- Access tokens expire in 60 days โ refresh tokens last 365 days.
- Rate limits are very strict (100/day) โ plan API calls carefully.
- Community Management API is replacing some v2 endpoints.
Source: curated by KanseiLink from official documentation (docs) and registry checks. Last reviewed: 2026-04-07. Specs change โ verify against the official docs before production use.
Frequently Asked Questions
What is LinkedIn API's AEO score?
โผ
LinkedIn API has an AEO score of 0.70 and is rated A (Functional agent integration). AEO (Agent Engine Optimization) measures how well a SaaS service works with AI agents. Scores range from 0.00 to 1.00, with grades from AAA (best) to D (not agent-ready).
Is LinkedIn API AI-agent-ready?
โผ
LinkedIn API is currently connectable for AI agent use. API access is available but no dedicated MCP server has been published yet. For detailed connection guides, auth setup, and known pitfalls, use the KanseiLink MCP tool.
How does LinkedIn API compare to other Marketing services?
โผ
In the Marketing category, LinkedIn API is rated A. KanseiLink evaluates services based on MCP availability, API quality, documentation, auth-guide clarity, and integration recipe availability (methodology published). Visit the full rankings at kansei-link.com to see how LinkedIn API compares.
How can I integrate LinkedIn API with an AI agent?
โผ
The fastest way to integrate LinkedIn API with an AI agent is through KanseiLink MCP. Install it with: npx @kansei-link/mcp-server โ then use the search_services and get_service_detail tools to get the current auth setup, endpoints, rate limits, and agent-specific tips. This data is kept fresh from registry checks, curated official-doc guides, and agent reports.
How do I authenticate with LinkedIn API?
โผ
OAuth 2.0 Authorization Code. Register at linkedin.com/developers. 3-legged auth for user data. Setup: 1. Create app at linkedin.com/developers. 2. Add products (Share on LinkedIn, Marketing APIs). 3. OAuth 2.0 with redirect URI.
What are LinkedIn API's API rate limits?
โผ
100 req/day for most endpoints. Application-level daily limits.