> ## Documentation Index
> Fetch the complete documentation index at: https://docs.querying.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# LinkedIn API

> Read public LinkedIn profiles, posts and jobs as JSON, and search jobs by keyword, location, date, workplace, type and experience level.

Read public LinkedIn data as JSON with `POST /v1/social/linkedin/{action}`. `{action}` picks what to read. A completed request costs **0.5 credits**.

## Request

```bash theme={"theme":"css-variables"}
curl -X POST https://api.querying.ai/v1/social/linkedin/jobs-search \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "query": "data engineer", "jobLocation": "United States", "postedWithin": "week", "limit": 1 }'
```

The request waits for the result, up to 290 seconds, and answers `200` with the result in `response`. A task still running answers `202`; poll `GET /v1/async/task/{id}` or set `webhook`. See [Async tasks](https://docs.querying.ai/concepts/async-tasks.md).

## Actions

| Path | Reads | Required |
| - | - | - |
| `/v1/social/linkedin/profile` | A public profile with its recent posts and articles | `username` or `url` |
| `/v1/social/linkedin/post` | One post with a preview of its comments | `postId` or `url` |
| `/v1/social/linkedin/jobs-search` | Job listings, page by page | `query` or `jobLocation` |
| `/v1/social/linkedin/job` | One job listing | `jobId` or `url` |

The four actions read public profiles, posts and jobs.

`username` takes a profile's vanity name, the part after `/in/`, or a profile URL such as `https://www.linkedin.com/in/williamhgates`. `postId` takes a post's activity ID, a post URN such as `urn:li:activity:7530009142778941443` or a post URL (`/posts/...` or `/feed/update/...`). `jobId` takes a job ID or a job URL (`/jobs/view/...`). `url` takes the URL for the action.

## Parameters

A request with a parameter of another action, a value outside the ones listed below, or a missing required field is refused when you submit it, with `400 VALIDATION_ERROR` naming the field.

`jobs-search`:

* `query`: Up to 200 characters, with at least one letter or digit. Send `query`, `jobLocation` or both.
* `jobLocation`: Up to 100 characters, such as `Seoul, South Korea` or `United States`.
* `postedWithin`: `day`, `week` or `month`.
* `workplace`: `onsite`, `remote` or `hybrid`.
* `jobType`: `full_time`, `part_time`, `contract`, `temporary`, `internship`, `volunteer` or `other`.
* `experience`: `internship`, `entry`, `associate`, `mid_senior`, `director` or `executive`.
* `limit`: Optional integer from 1 to 100, default 10.
* `cursor`: The `nextCursor` of the previous page, sent with the same query and filters. LinkedIn lists 10 jobs a page and stops before its 1,000th result.

## Response example

```json theme={"theme":"css-variables"}
{
  "platform": "linkedin",
  "action": "jobs_search",
  "jobs": [
    {
      "url": "https://www.linkedin.com/jobs/view/data-engineer-central-infraops-analytics-team-at-amazon-web-services-aws-4493232607",
      "jobId": "4493232607",
      "title": "Data Engineer, Central InfraOps Analytics Team",
      "company": {"url": "https://www.linkedin.com/company/amazon-web-services", "name": "Amazon Web Services (AWS)"},
      "benefits": "Actively Hiring",
      "location": "Herndon, VA",
      "position": 1,
      "postedAt": "2026-11-21",
      "postedText": "1 day ago"
    }
  ],
  "query": "data engineer",
  "hasMore": true,
  "provider": "linkedin_web",
  "nextCursor": "1",
  "jobLocation": "United States",
  "returnedCount": 1
}
```

## Result fields

* Every response echoes `platform` and `action`, and `provider` names the source the data was read from. A multi-word `action` is written with underscores, such as `jobs_search` for the path `/jobs-search`. `jobs-search` carries `returnedCount`.
* `profile` returns `username`, `url`, `name`, `headline`, `location`, `countryCode`, `about`, `avatarUrl`, `followerCount`, `connectionsText`, `currentCompany` (`name`, `url`, `startDate`), `jobTitles`, `previousCompanies` and `education` (`name`, `url`, `startDate`, `endDate`).
  * `posts` lists the recent posts the profile shows, 5 to 9, each with `postId`, `url`, `text`, `likeCount` and `publishedAt`.
  * `articles` lists up to 10 articles, each with `url`, `title`, `likeCount` and `publishedAt`.
* `post` returns `postId`, `url`, `text`, `author` (`name`, `url`, `headline`, `followerCount`), `publishedAt`, `likeCount`, `commentCount`, `sharedTitle`, `imageUrl` and, for a video post, `media`. `comments` previews about 10 comments, each with `text`, `author`, `likeCount` and `publishedAt`.
* `jobs-search` returns `jobs`, `hasMore` and `nextCursor`, which is `null` at the end of the list, and echoes `query` and `jobLocation`. A job has `jobId`, `url`, `title`, `company` (`name`, `url`), `location`, `position`, `postedAt`, `postedText` and `benefits`.
* `job` returns `jobId`, `url`, `title`, `company`, `location`, `description` with its line breaks, `seniority`, `employmentType`, `industries`, `applicants` as LinkedIn words it and `postedText`. `jobFunction` and `salary` appear when the listing shows them.
* A profile, post or job that does not exist or is not public ends the task with `PAGE_UNAVAILABLE`. Only completed requests are charged.

## HTML page

Set `include.html` to `true` and the result gains `html`, a link to the LinkedIn page the answer was read from, saved as a file you can put in a report. `html` has `status`, `url` and `expiresAt`, described in [HTML pages](https://docs.querying.ai/engines/html-pages.md).

* `include.html` works on `profile` and `post`.
* The file is the HTML document LinkedIn sent for the page, before any script ran. It starts with a note comment, `Saved by querying.ai: the page LinkedIn served for task <id> at <UTC time>, the page as LinkedIn sent it, before any script ran, the address of the visit and its session ids masked.`
* Values that belong to the visit are replaced with zeros of the same length: cookie values, session, request and device ids, CSRF and other tokens, nonces and the signatures in media addresses. Because those signatures are masked, the image and video links in the file do not load. Content that depends on where the visit came from, such as the regional CDN host names in media addresses, stays as LinkedIn sent it.
* The document's scripts are kept as text. The file is served with a Content-Security-Policy that runs no script and loads no outside resource.
* LinkedIn sends the main content as markup, so the opened file is readable.
* `profile` and `post` keep the public page.
* Every other action (`jobs_search` and `job`) returns `422 EVIDENCE_UNSUPPORTED` when you submit the task, and the message names why.
* The page costs nothing extra: the request is still 0.5 credits.
* When the page cannot be kept, the answer is still returned and `html` is `{ "status": "failed", "error": "EVIDENCE_FAILED" }`. Resubmit the task to try again.

## Related

* [LinkedIn Ad Library](https://docs.querying.ai/engines/linkedin-ad-library.md), for the ads an advertiser runs on LinkedIn
* [Instagram](https://docs.querying.ai/engines/instagram.md)
* [Threads](https://docs.querying.ai/engines/threads.md)
* [Engine overview](https://docs.querying.ai/engines/overview.md)
* [Credits and limits](https://docs.querying.ai/concepts/credits-and-limits.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.