# LinkedIn Job (`linkedin.job`)

One LinkedIn job posting by URL or id: title, full description, location, salary when disclosed, applicants, employment and workplace type, apply links, posting and expiry dates and the hiring company.

Docs: https://primaryapi.com/docs/api-reference/linkedin/job

- Endpoint: `POST https://api.primaryapi.com/v1/run/linkedin.job`
- Category: Social · Platform: `linkedin` · Kind: lookup · Status: live
- Price: 1 credit per call; up to 7 credits if a call is retried elsewhere. A quote’s `maxCredits` is the most a given call can cost.
- Billing unit: per successful call
- Reliability: routed to a healthy upstream and retried automatically when an attempt fails; live 30-day status: `GET https://api.primaryapi.com/v1/status/apis?sku=linkedin.job`
- Execution: synchronous (answers 202 only if it outlives the wait window)

## Input

| Field | Type | Required | Default | Constraints | Description |
|---|---|---|---|---|---|
| `url` | string | yes |  | max 2048 chars | LinkedIn job URL (https://www.linkedin.com/jobs/view/<id>) or the numeric job id, e.g. "4011051212". |

Unknown fields are rejected with `400 invalid_input`. The routing controls `preferLatencyUnderMs` and `maxCredits` may be sent in the same JSON body.

## Output

When `output.found` is `true`, `output.data` has this shape:

| Field | Type | Description |
|---|---|---|
| `id` | string | LinkedIn job id |
| `url` | string \| null |  |
| `title` | string \| null |  |
| `descriptionText` | string \| null | Plain-text job description |
| `descriptionHtml` | string \| null |  |
| `location` | string \| null | Location as LinkedIn shows it |
| `city` | string \| null |  |
| `state` | string \| null |  |
| `country` | string \| null |  |
| `countryCode` | string \| null |  |
| `employmentType` | string \| null | e.g. "Full-time", "Contract" |
| `workplaceType` | string \| null | e.g. "Remote", "Hybrid", "On-site" |
| `remote` | boolean \| null |  |
| `experienceLevel` | string \| null | e.g. "Mid-Senior level" |
| `salary` | object \| null | Pay range when the posting discloses one |
| `salary.min` | number \| null |  |
| `salary.max` | number \| null |  |
| `salary.currency` | string \| null |  |
| `salary.text` | string \| null |  |
| `applicants` | integer \| null |  |
| `views` | integer \| null |  |
| `applyUrl` | string \| null |  |
| `easyApplyUrl` | string \| null |  |
| `easyApply` | boolean \| null |  |
| `createdUtc` | integer \| null | Posting time, Unix seconds |
| `expireUtc` | integer \| null | Expiry time, Unix seconds |
| `jobState` | string \| null | e.g. "LISTED", "CLOSED" |
| `industries` | string[] |  |
| `benefits` | string[] |  |
| `company` | object \| null |  |
| `company.name` | string \| null |  |
| `company.url` | string \| null |  |
| `company.universalName` | string \| null |  |
| `company.logoUrl` | string \| null |  |
| `applicantTrackingSystem` | string \| null |  |
| `hiringTeam` | object[] | People shown as hiring for the job, when listed |
| `hiringTeam[].name` | string \| null |  |
| `hiringTeam[].position` | string \| null |  |
| `hiringTeam[].linkedinUrl` | string \| null |  |

When the thing you asked about does not exist (or a search matches nothing) the call still succeeds: `output.found` is `false`, `output.data` is `null` and `output.reason` says why (`not_found`, `private`, `no_results`, …). Misses are free unless the notes below say misses are billed.

## Example request

```bash
curl -sS -X POST "https://api.primaryapi.com/v1/run/linkedin.job" \
  -H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.linkedin.com/jobs/view/4011051212"}'
```

## Example response

_Values are placeholders that follow the output schema; `credits` is what this call would cost at the usual price._

```json
{
  "output": {
    "found": true,
    "data": {
      "id": "string",
      "url": "https://www.linkedin.com/jobs/view/4011051212",
      "title": "string",
      "descriptionText": "string",
      "descriptionHtml": "string",
      "location": "string",
      "city": "string",
      "state": "string",
      "country": "string",
      "countryCode": "string",
      "employmentType": "string",
      "workplaceType": "string",
      "remote": true,
      "experienceLevel": "string",
      "salary": {
        "min": 0,
        "max": 0,
        "currency": "string",
        "text": "string"
      },
      "applicants": 0,
      "views": 0,
      "applyUrl": "https://example.com",
      "easyApplyUrl": "https://example.com",
      "easyApply": true,
      "createdUtc": 0,
      "expireUtc": 0,
      "jobState": "string",
      "industries": [
        "string"
      ],
      "benefits": [
        "string"
      ],
      "company": {
        "name": "string",
        "url": "https://www.linkedin.com/jobs/view/4011051212",
        "universalName": "string",
        "logoUrl": "https://example.com"
      },
      "applicantTrackingSystem": "string",
      "hiringTeam": [
        {
          "name": "string",
          "position": "string",
          "linkedinUrl": "https://example.com"
        }
      ]
    }
  },
  "provider": "PrimaryAPI",
  "credits": 1,
  "items": 1,
  "requestId": "req_01JBXK6Y2N9V8T4R3Q2P1M0A7Z"
}
```

## Pricing and reliability

- Usual price: 1 credit per call
- Price ceiling: up to 7 credits if a call is retried elsewhere. A quote’s `maxCredits` is the most a given call can cost; the `maxCredits` routing control caps it per call
- Live 30-day status, success rate, uptime and latency: `GET https://api.primaryapi.com/v1/status/apis?sku=linkedin.job`

## Errors to handle

`invalid_input`, `unauthorized`, `insufficient_balance`, `key_limit_reached`, `trial_cap_reached`, `forbidden`, `not_found`, `idempotency_conflict`, `rate_limited`, `all_sources_failed`, `service_unavailable`, `timeout`. See https://primaryapi.com/docs/errors.

## Notes

Closed postings that LinkedIn still shows come back with jobState "CLOSED". Salary, views, benefits and the hiring team are only present when the posting shows them. A job that no longer exists is a miss and is not charged.

## Legal

Public LinkedIn data only. LinkedIn’s User Agreement restricts automated collection and LinkedIn enforces it; use the data for lawful purposes, keep copies only as long as you need them, and treat post and article text as the author’s content (analysis, not republication). Results contain personal data about identifiable people (GDPR, UK GDPR, CCPA): have a lawful basis, honour deletion requests, and never use it for spam or unsolicited bulk outreach.

