> **For coding agents and LLMs:** This is one page of the Social Parse docs, exported as Markdown. For an index of every page, start with [`/llms.txt`](https://socialparse.dev/llms.txt); for every page in one file, use [`/llms-full.txt`](https://socialparse.dev/llms-full.txt); for the full contract (parameters, response schemas, errors), use [`/openapi.json`](https://socialparse.dev/openapi.json).

## This page

- **On-site (HTML):** <https://socialparse.dev/docs/api/linkedin/profile>
- **Markdown (.mdx) URL:** <https://socialparse.dev/docs/api/linkedin/profile.mdx>

## API base URL and authentication

- **API origin:** `https://api.socialparse.dev`
- **Authentication:** send `x-api-key: <your key>` on every `/v1/**` call; keys are made in the dashboard.
- **OpenAPI JSON:** <https://socialparse.dev/openapi.json>

## Recommended docs entrypoints

- [Introduction](https://socialparse.dev/docs.mdx) — Structured JSON from public social media pages, through one REST API: what it does, the platforms it reads and where to start.
- [Quickstart](https://socialparse.dev/docs/quickstart.mdx) — Save an API key, make your first call with cURL, Python or Node.js, read the response and fix the usual first-run failures.
- [Authentication](https://socialparse.dev/docs/authentication.mdx) — Create API keys, send one in the x-api-key header with every call, and keep them safe: replacing and revoking a key.
- [Responses](https://socialparse.dev/docs/responses.mdx) — The envelope every successful call answers with (data, page and meta), and how to page through a list with its cursor.
- [Errors](https://socialparse.dev/docs/errors.mdx) — The error body, what each code means, how missing, private and empty content answer, and which errors are worth trying again.
- [Credits](https://socialparse.dev/docs/credits.mdx) — What a call costs, how to see your balance, what happens when it runs out, the rate limits, and how to plan a batch.
- [MCP server](https://socialparse.dev/docs/mcp.mdx) — Let AI agents call the API: connect Claude, ChatGPT, Cursor, VS Code or any MCP client by signing in or with your API key, and what its two tools do and cost.
- [`/llms.txt`](https://socialparse.dev/llms.txt) — every guide and endpoint, each with a link to its Markdown.
- [`/llms-full.txt`](https://socialparse.dev/llms-full.txt) — every page's Markdown in one file.
- [`/openapi.json`](https://socialparse.dev/openapi.json) — the OpenAPI document: parameters, responses, errors.

## Markdown docs convention

- Every docs page has a Markdown twin: append `.mdx` to its path (`/docs/quickstart` → `/docs/quickstart.mdx`).

---

# Profile (https://socialparse.dev/docs/api/linkedin/profile)

## Summary

A member's profile: name, headline, location, about, followers and connections, experience and education.
Text LinkedIn hides from logged-out visitors (it shows asterisks in its place) is null, and a school it hides is
left out.

**Platform:** `LinkedIn`

## HTTP

- **Method:** GET
- **Path:** `/v1/linkedin/profile`
- **Base URL:** `https://api.socialparse.dev`

## Pagination

None: one call returns the whole result.

## Credits

- **A successful call (2xx) or a not-found (404):** 1 credit.
- **A cached answer (`meta.cached`) or any other error:** not charged.
- **Your balance:** the `X-Credits-Remaining` header of each 2xx or 404 answer.

## Authentication

- **`x-api-key`** (header, required): your API key, made in the dashboard.

## Parameters

### `handle` (query)

- **Required:** no
- **Constraints:** type `string`
- **Example:** `williamhgates`
- **Description:** A member's handle: the part of their profile's link after /in/ (williamhgates). Give handle or url.

### `url` (query)

- **Required:** no
- **Constraints:** type `string`; max 300 chars
- **Description:** A profile's link: linkedin.com/in/<handle>, with anything after it. Give handle or url.

## Responses (status codes)

- **200**: Successful Response
- **400** `INVALID_PARAMS`: A parameter is wrong; the message says which.
- **401** `UNAUTHORIZED`: The x-api-key header is missing or not a valid key.
- **402** `INSUFFICIENT_CREDITS`: The key's account doesn't have the credits the call costs.
- **403** `LOGIN_REQUIRED`: Only a logged-in user can see it: private, age-restricted or members-only.
- **404** `NOT_FOUND`: It doesn't exist, or was deleted.
- **429** `RATE_LIMITED`: Too many calls: wait as long as the Retry-After header says.
- **500** `INTERNAL`: Our bug. Quote the request_id when you report it.
- **502** `LOOKUP_FAILED`: The request couldn't be completed. Try again later.
- **503** `TEMPORARILY_UNAVAILABLE`, `EMPTY_PAGE`: Temporarily unavailable. Try again in a moment.

## Response body (200)

Successful Response

### Field outline

- **data** (required) — type `object`.
  - **id** (optional) — type `string`; nullable. LinkedIn's id for the member: digits, written as text.
  - **handle** (required) — type `string`. The part of the profile's link after /in/.
  - **url** (required) — type `string`. The profile's link.
  - **name** (optional) — type `string`; nullable. The member's name.
  - **headline** (optional) — type `string`; nullable. The line under the name.
  - **location** (optional) — type `string`; nullable. Where the member says they are.
  - **country** (optional) — type `string`; nullable. Its country, as a two-letter code (US).
  - **about** (optional) — type `string`; nullable. The About section, as far as LinkedIn shows it logged out (it may end with …).
  - **picture** (optional) — type `string`; nullable. The profile picture's link.
  - **cover** (optional) — type `string`; nullable. The cover image's link.
  - **website** (optional) — type `string`; nullable. The first website on the profile.
  - **followers** (optional) — type `integer`; nullable. Followers.
  - **connections** (optional) — type `integer`; nullable. Connections; 500 means 500 or more, the most LinkedIn shows logged out.
  - **experience** (optional) — type `array`; nullable. The positions in its Experience section, newest first. Text LinkedIn hides logged out is null.
    - **title** (optional) — type `string`; nullable. The job title.
    - **company** (optional) — type `string`; nullable. The company's name.
    - **company_url** (optional) — type `string`; nullable. The company's LinkedIn page, when it has one.
    - **start** (optional) — type `string`; nullable. When it started, as the profile shows it: a year, or a month and year (Jan 2016).
    - **end** (optional) — type `string`; nullable. When it ended; null for a position held now.
    - **description** (optional) — type `string`; nullable. What the member wrote about it.
  - **education** (optional) — type `array`; nullable. The schools in its Education section, those LinkedIn shows logged out.
    - **school** (optional) — type `string`; nullable. The school's name.
    - **school_url** (optional) — type `string`; nullable. The school's LinkedIn page, when it has one.
    - **start** (optional) — type `integer`; nullable. The year it started.
    - **end** (optional) — type `integer`; nullable. The year it ended.
    - **degree** (optional) — type `string`; nullable. The degree and field of study, as the member wrote them.
- **page** (optional) — type `object`; nullable. Paging, for the endpoints that page; null for the others.
  - **next_cursor** (optional) — type `string`; nullable. Send it as the cursor parameter, with the same other parameters, for the next page. Null on the last page.
  - **has_more** (optional) — type `boolean`; default: false. Whether another page follows.
- **meta** (required) — type `object`.
  - **platform** (required) — type `string`. The platform: reddit, threads, tiktok or youtube.
  - **endpoint** (required) — type `string`. The endpoint's name, such as channel_videos.
  - **params** (required) — type `object`. The call's parameters, defaults included. Parameters without a value, and the cursor, are left out.
  - **request_id** (required) — type `string`. This call's id. Quote it when you report a problem.
  - **api_version** (required) — type `string`. The API version that answered.
  - **fetched_at** (required) — type `string`; format: date-time. When the data was fetched from the platform (UTC).
  - **cached** (optional) — type `boolean`; default: false. Whether it came from our cache; fetched_at says how old it is.

### Example JSON

The values are placeholders; the outline gives each field's type.

```json
{
  "data": {
    "id": "string",
    "handle": "string",
    "url": "string",
    "name": "string",
    "headline": "string",
    "location": "string",
    "country": "string",
    "about": "string",
    "picture": "string",
    "cover": "string",
    "website": "string",
    "followers": 0,
    "connections": 0,
    "experience": [
      {
        "title": "string",
        "company": "string",
        "company_url": "string",
        "start": "string",
        "end": "string",
        "description": "string"
      }
    ],
    "education": [
      {
        "school": "string",
        "school_url": "string",
        "start": 0,
        "end": 0,
        "degree": "string"
      }
    ]
  },
  "page": {
    "next_cursor": "string",
    "has_more": false
  },
  "meta": {
    "platform": "string",
    "endpoint": "string",
    "params": {},
    "request_id": "string",
    "api_version": "string",
    "fetched_at": "2026-01-01T00:00:00Z",
    "cached": false
  }
}
```

## Errors and retries

An error answers with `{"error": {"code", "message", "retryable"}, "request_id"}` and costs no credits, except `404 NOT_FOUND`. Branch on `error.code`, and try again only when `error.retryable` is `true`.

- **400** `INVALID_PARAMS`: A parameter is wrong; the message says which. **Retry:** don't retry it unchanged.
- **401** `UNAUTHORIZED`: The x-api-key header is missing or not a valid key. **Retry:** don't retry it unchanged.
- **402** `INSUFFICIENT_CREDITS`: The key's account doesn't have the credits the call costs. **Retry:** don't retry it unchanged.
- **403** `LOGIN_REQUIRED`: Only a logged-in user can see it: private, age-restricted or members-only. **Retry:** don't retry it unchanged.
- **404** `NOT_FOUND`: It doesn't exist, or was deleted. **Retry:** don't retry it unchanged.
- **429** `RATE_LIMITED`: Too many calls: wait as long as the Retry-After header says. **Retry:** try again after the seconds in the `Retry-After` header.
- **500** `INTERNAL`: Our bug. Quote the request_id when you report it. **Retry:** don't retry it unchanged.
- **502** `LOOKUP_FAILED`: The request couldn't be completed. Try again later. **Retry:** may work if tried again: back off (about 1, 2, then 4 seconds) and cap the tries.
- **503** `TEMPORARILY_UNAVAILABLE`, `EMPTY_PAGE`: Temporarily unavailable. Try again in a moment. **Retry:** may work if tried again: back off (about 1, 2, then 4 seconds) and cap the tries.

## Examples

The key is read from the `API_KEY` environment variable.

### cURL

```bash
curl "https://api.socialparse.dev/v1/linkedin/profile?handle=williamhgates" \
  -H "x-api-key: $API_KEY"
```

### Node.js

```js
const response = await fetch("https://api.socialparse.dev/v1/linkedin/profile?handle=williamhgates", {
  headers: { "x-api-key": process.env.API_KEY },
});
console.log(response.status, await response.json());
```

### Python

```python
import os

import requests

response = requests.get(
    "https://api.socialparse.dev/v1/linkedin/profile?handle=williamhgates",
    headers={"x-api-key": os.environ["API_KEY"]},
    timeout=120,
)
print(response.status_code, response.json())
```