# LinkedIn 职位详情 API (linkedin.job_detail)

- Canonical page: https://everyinfra.com/linkedin-api/job_detail
- Endpoint: POST /api/v1/social with {"platform": "linkedin", "action": "job_detail", "params": {...}}
- Price: $0.001194 per call ($1.19 per 1,000 requests); failed and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=linkedin&action=job_detail

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 要读的 LinkedIn 职位：职位页链接（https://www.linkedin.com/jobs/view/<数字>/）、职位搜索页里带 currentJobId=<数字> 的链接，或 8–12 位纯数字职位 ID。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 正文内容，已去除 HTML 标签，全文返回、不截断（个别平台的列表结果本身只有摘要，以该平台的字段说明为准）。 |
| company_name | 公司名称。 |
| company_url | 公司主页链接。 |
| company_logo | 公司 logo。 |
| location | 地理位置描述，原文透传，格式随平台而异。 |
| salary | 薪酬信息。 |
| employment_type | 雇佣类型（全职/兼职/合同/实习）。 |
| seniority | 职级。 |
| applicant_count | 岗位已投递人数。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| apply_url | 投递链接（job_detail）：站外投递页或 LinkedIn 一键投递链接。 |
| workplace_type | 办公方式（job_detail）：onsite 现场 / remote 远程 / hybrid 混合。 |
| is_remote | 是否可远程（job_detail）。 |
| industries | 所属行业。 |
| benefits | 职位页列出的福利（job_detail），没有时没有这个字段。 |
| view_count | 浏览/播放数。null 表示不公开，不等于 0。 |
| job_state | 职位状态（job_detail）：LISTED 在招 / CLOSED 已关闭。 |
| country_code | 国家代码。 |
| expires_at | 职位到期时间（job_detail），ISO 8601 UTC。 |
| company_employee_count | 招聘公司的员工数（job_detail，LinkedIn 公司页口径）。 |
| company_website | 招聘公司官网（job_detail）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "linkedin",
  "action": "job_detail",
  "params": {
    "url": "https://www.linkedin.com/jobs/view/4481880537/"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "linkedin",
        "action": "job_detail",
        "params": {
            "url": "https://www.linkedin.com/jobs/view/4481880537/",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "linkedin",
  "action": "job_detail",
  "results": {
    "id": …,
    "url": …,
    "title": …,
    "text": …,
    "company_name": …,
    "company_url": …,
    "company_logo": …,
    "location": …,
    "salary": …,
    "employment_type": …,
    "seniority": …,
    "applicant_count": …,
    "posted_at": …,
    "platform": …,
    "apply_url": …,
    "workplace_type": …,
    "is_remote": …,
    "industries": …,
    "benefits": …,
    "view_count": …,
    "job_state": …,
    "country_code": …,
    "expires_at": …,
    "company_employee_count": …,
    "company_website": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=linkedin
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
