# LinkedIn API (ScrapeIO)

6 endpoints for public LinkedIn data. Same response format and field names as every other platform.

## Basics

- Base URL: `https://scrapeio.com`
- Auth: send your key in the `x-api-key` header. Get a key at https://scrapeio.com/login (100 free credits, no card).
- Every endpoint is a GET with query parameters and returns JSON:
  `{ "success": true, "cached": false, "credits_used": 1, "credits_remaining": 99, "data": { ... } }`
- Field names are the same on every platform (`handle`, `followers`, `plays`, `likes`, `comments`, `created_at`).
- Lists return `data.items`, `data.cursor` and `data.has_more`. Pass `cursor` back to get the next page.
- Each endpoint has one listed price. Cached repeats, failed calls, private and not-found answers cost 0.
- Limit: 300 requests a minute per key.

## Errors

| Status | Meaning | Charged |
| --- | --- | --- |
| 200 | Success | Yes, unless cached |
| 400 | A parameter is missing or wrong | No |
| 401 | The key is missing or invalid | No |
| 402 | Not enough credits | No |
| 403 | The account or post is private | No |
| 404 | Not found on the platform | No |
| 429 | More than 300 requests a minute | No |
| 502 | Every source is down; retry shortly | No |

### GET /v1/linkedin/company

Company Page Price: 5 credits. MCP tool: `linkedin_company`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The URL of the LinkedIn company page to get |

```bash
curl "https://scrapeio.com/v1/linkedin/company?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/linkedin/company/posts

Company Posts Price: 5 credits. MCP tool: `linkedin_company_posts`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The LinkedIn company (/company/) or school (/school/) page URL, for example https://www.linkedin.com/school/oxfordsbs/ |
| `page` | string | no | The page number to get |

```bash
curl "https://scrapeio.com/v1/linkedin/company/posts?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/linkedin/post

Post Price: 5 credits. MCP tool: `linkedin_post`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The URL of the LinkedIn post to get |

```bash
curl "https://scrapeio.com/v1/linkedin/post?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/linkedin/post/transcript

Post Transcript Price: 5 credits. MCP tool: `linkedin_post_transcript`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The URL of the LinkedIn post to get the transcript from |

```bash
curl "https://scrapeio.com/v1/linkedin/post/transcript?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/linkedin/profile

Person's Profile Price: 5 credits. MCP tool: `linkedin_profile`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | string | yes | The URL of the LinkedIn profile to get |

```bash
curl "https://scrapeio.com/v1/linkedin/profile?url=..." -H "x-api-key: $SCRAPEIO_API_KEY"
```

### GET /v1/linkedin/search/posts

Search Posts Price: 5 credits. MCP tool: `linkedin_search_posts`.

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | Keyword or phrase to search for in public LinkedIn posts |
| `date_posted` | string (last-hour, last-day, last-week, last-month, last-year) | no | Date posted filter based on Google-indexed results |
| `cursor` | string | no | The cursor returned from the previous response. |

```bash
curl "https://scrapeio.com/v1/linkedin/search/posts?query=coffee" -H "x-api-key: $SCRAPEIO_API_KEY"
```
