> ## 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

> 공개 LinkedIn 프로필, 게시물, 채용 공고를 JSON으로 읽고, 키워드, 지역, 게시 시기, 근무 형태, 고용 형태, 경력 수준으로 채용 공고를 검색합니다.

공개 LinkedIn 데이터를 `POST /v1/social/linkedin/{action}`로 JSON으로 읽습니다. `{action}`으로 읽을 대상을 고릅니다. 완료된 요청당 **0.5크레딧**입니다.

## 요청

```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 }'
```

요청은 결과가 나올 때까지 최대 290초 기다렸다가 `200`으로 응답하며, 결과는 `response`에 담깁니다. 그때까지 끝나지 않은 task는 `202`로 응답하므로 `GET /v1/async/task/{id}`를 폴링하거나 `webhook`을 설정합니다. 참고: [비동기 task](https://docs.querying.ai/ko/concepts/async-tasks.md).

## 동작

| 경로 | 읽는 대상 | 필수 |
| - | - | - |
| `/v1/social/linkedin/profile` | 공개 프로필과 최근 게시물, 아티클 | `username` 또는 `url` |
| `/v1/social/linkedin/post` | 게시물 하나와 댓글 미리보기 | `postId` 또는 `url` |
| `/v1/social/linkedin/jobs-search` | 채용 공고를 페이지 단위로 | `query` 또는 `jobLocation` |
| `/v1/social/linkedin/job` | 채용 공고 하나 | `jobId` 또는 `url` |

네 가지 동작은 공개 프로필, 게시물, 채용 공고를 읽습니다.

`username`은 프로필의 vanity 이름(`/in/` 뒤 부분)이나 `https://www.linkedin.com/in/williamhgates` 같은 프로필 URL을 받습니다. `postId`는 게시물의 activity ID, `urn:li:activity:7530009142778941443` 같은 게시물 URN, 게시물 URL(`/posts/...` 또는 `/feed/update/...`)을 받습니다. `jobId`는 채용 공고 ID나 채용 공고 URL(`/jobs/view/...`)을 받습니다. `url`은 동작에 맞는 URL을 받습니다.

## 입력

다른 동작의 파라미터나 아래에 없는 값이 있거나 필수 필드가 빠진 요청은 제출할 때 해당 필드를 밝힌 `400 VALIDATION_ERROR`로 거절됩니다.

`jobs-search`:

* `query`: 최대 200자이며 글자나 숫자가 하나 이상 있어야 합니다. `query`, `jobLocation` 중 하나 또는 둘 다 보냅니다.
* `jobLocation`: 최대 100자이며 `Seoul, South Korea`나 `United States` 같은 값입니다.
* `postedWithin`: `day`, `week`, `month` 중 하나입니다.
* `workplace`: `onsite`, `remote`, `hybrid` 중 하나입니다.
* `jobType`: `full_time`, `part_time`, `contract`, `temporary`, `internship`, `volunteer`, `other` 중 하나입니다.
* `experience`: `internship`, `entry`, `associate`, `mid_senior`, `director`, `executive` 중 하나입니다.
* `limit`: 선택. 1-100 정수이며 기본값은 10입니다.
* `cursor`: 이전 페이지의 `nextCursor`입니다. 같은 검색어와 필터와 함께 보냅니다. LinkedIn은 한 페이지에 채용 공고 10개를 나열하고 1,000번째 결과 앞에서 멈춥니다.

## 응답 예시

```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
}
```

## 결과 필드

* 모든 응답은 `platform`과 `action`을 그대로 돌려주고, `provider`는 데이터를 읽은 출처를 나타냅니다. 여러 단어로 된 `action`은 밑줄로 쓰며, 경로 `/jobs-search`의 값은 `jobs_search`입니다. `jobs-search`에는 `returnedCount`가 있습니다.
* `profile`은 `username`, `url`, `name`, `headline`, `location`, `countryCode`, `about`, `avatarUrl`, `followerCount`, `connectionsText`, `currentCompany`(`name`, `url`, `startDate`), `jobTitles`, `previousCompanies`, `education`(`name`, `url`, `startDate`, `endDate`)을 돌려줍니다.
  * `posts`는 프로필이 보여 주는 최근 게시물 5\~9개를 나열하며 각각 `postId`, `url`, `text`, `likeCount`, `publishedAt`이 있습니다.
  * `articles`는 아티클을 최대 10개 나열하며 각각 `url`, `title`, `likeCount`, `publishedAt`이 있습니다.
* `post`는 `postId`, `url`, `text`, `author`(`name`, `url`, `headline`, `followerCount`), `publishedAt`, `likeCount`, `commentCount`, `sharedTitle`, `imageUrl`, 동영상 게시물이면 `media`를 돌려줍니다. `comments`는 댓글 10개 안팎을 미리 보여 주며 각각 `text`, `author`, `likeCount`, `publishedAt`이 있습니다.
* `jobs-search`는 `jobs`, `hasMore`, `nextCursor`를 돌려주며 목록 끝에서 이 값은 `null`입니다. `query`와 `jobLocation`도 그대로 돌려줍니다. 채용 공고에는 `jobId`, `url`, `title`, `company`(`name`, `url`), `location`, `position`, `postedAt`, `postedText`, `benefits`가 있습니다.
* `job`은 `jobId`, `url`, `title`, `company`, `location`, 줄바꿈을 유지한 `description`, `seniority`, `employmentType`, `industries`, LinkedIn이 쓴 문구 그대로인 `applicants`, `postedText`를 돌려줍니다. `jobFunction`과 `salary`는 공고에 있을 때 나타납니다.
* 없거나 공개되지 않은 프로필, 게시물, 채용 공고는 task를 `PAGE_UNAVAILABLE`로 끝냅니다. 완료된 요청만 과금합니다.

## HTML 페이지

`include.html`을 `true`로 설정하면 결과에 `html`이 추가됩니다. 답변을 읽은 LinkedIn 페이지의 링크이며, 보고서에 넣을 수 있는 파일로 저장됩니다. `html`에는 `status`, `url`, `expiresAt`이 있으며 [HTML 페이지](https://docs.querying.ai/ko/engines/html-pages.md)에서 설명합니다.

* `include.html`은 `profile`, `post`에서 동작합니다.
* 파일은 LinkedIn이 그 페이지에 보낸 HTML 문서이며, 스크립트가 실행되기 전 상태입니다. 맨 앞에 메모 주석이 있습니다. `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.`
* 방문에 속하는 값은 같은 길이의 0으로 바꿉니다. 쿠키 값, 세션·요청·기기 ID, CSRF 등의 토큰, nonce, 미디어 주소의 서명이 해당합니다. 이 서명을 가렸기 때문에 파일 안의 이미지와 동영상 링크는 로드되지 않습니다. 미디어 주소의 지역별 CDN 호스트 이름처럼 방문이 어디서 왔는지에 따라 달라지는 내용은 LinkedIn이 보낸 그대로 둡니다.
* 문서의 스크립트는 텍스트로 파일에 남습니다. 파일은 스크립트를 실행하지 않고 외부 리소스도 불러오지 않는 Content-Security-Policy와 함께 제공됩니다.
* LinkedIn은 주요 내용을 마크업으로 보내므로 열어 본 파일을 읽을 수 있습니다.
* `profile`과 `post`는 공개 페이지를 저장합니다.
* 그 밖의 모든 동작(`jobs_search`, `job`)은 태스크를 보낼 때 `422 EVIDENCE_UNSUPPORTED`를 반환하며, 메시지에 이유가 나옵니다.
* 페이지에는 추가 요금이 없습니다. 요청은 그대로 0.5크레딧입니다.
* 페이지를 저장할 수 없어도 답변은 반환되고 `html`은 `{ "status": "failed", "error": "EVIDENCE_FAILED" }`가 됩니다. 다시 받으려면 태스크를 다시 보내세요.

## 관련 문서

* [LinkedIn 광고 라이브러리](https://docs.querying.ai/ko/engines/linkedin-ad-library.md): 광고주가 LinkedIn에서 집행하는 광고
* [Instagram](https://docs.querying.ai/ko/engines/instagram.md)
* [Threads](https://docs.querying.ai/ko/engines/threads.md)
* [엔진 목록](https://docs.querying.ai/ko/engines/overview.md)
* [크레딧과 한도](https://docs.querying.ai/ko/concepts/credits-and-limits.md)


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