Tracking jobs
LinkedIn keeps a job tracker for every member: the jobs they saved and the ones they started or finished applying to. Linked API reads that tracker and changes it.
Each example below has its Node SDK call in the Node tab.
Each example below has its Python SDK call in the Python tab.
Each example below has its CLI command in the CLI tab.
Stages
A job sits in exactly one stage, and you read one stage at a time:
| Stage | What it means |
|---|---|
saved | Saved, not started. |
draft | An application was started on LinkedIn and not submitted. Only LinkedIn puts a job here. |
clickedApply | Apply was clicked, or the job was moved to inProgress. |
applied | Applied. |
interview | In interview. |
archived | Set aside. Keeps everything else about the job. |
st.setJobStage and st.unarchiveJob take saved, inProgress, applied and interview as destinations. A job moved to inProgress is read back as clickedApply, and a job already in draft or clickedApply counts as inProgress. Archiving has its own two actions.
Reading the tracker
Workflow:
{
"actionType": "st.retrieveTrackedJobs",
"stage": "applied",
"limit": 10
}Completion:
Completion – result() returns its data in data, and a failed action in errors:
Completion – with --json the CLI prints its data as data:
{
"actionType": "st.retrieveTrackedJobs",
"success": true,
"data": [
{
"jobId": "4450053454",
"urn": "urn:li:jobPosting:4450053454",
"jobUrl": "https://www.linkedin.com/jobs/view/4450053454/",
"title": "Senior Software Engineer",
"companyName": "Example Company",
"location": "United States",
"workplaceType": "remote",
"postedDate": "3mo",
"markedAppliedDate": "2d"
}
]
}Changing the tracker
| To | Use |
|---|---|
| Put a job in the tracker | st.saveJob |
| Move it between stages | st.setJobStage |
| Set it aside | st.archiveJob |
| Bring it back | st.unarchiveJob |
| Take it out | st.unsaveJob |
| Delete it from the tracker | st.deleteTrackedJob |
Each one takes the job's jobUrl, and repeating one is harmless: a change that is already true succeeds without doing anything, and deleting a job that is no longer tracked returns jobNotTracked. The exception is stageNotHonoured from st.setJobStage: LinkedIn has already moved the job to another stage, and repeating the call would move it again, so read it back with st.retrieveTrackedJobs instead.
Save a job:
{
"actionType": "st.saveJob",
"jobUrl": "https://www.linkedin.com/jobs/view/4450053454/"
}Finding the job faster
To change a job, Linked API has to find it in the tracker, and it does that by walking the stages. On a large tracker that costs page loads, and past a point the job cannot be located at all – the action then returns trackerTooLarge.
Pass currentStage with the stage the job is in to st.setJobStage, st.archiveJob or st.deleteTrackedJob: that stage is searched first, and when the job is there no other stage is. st.retrieveTrackedJobs tells you which stage that is.
What the tracker does not mean
- Nothing here applies to a job. Linked API never submits an application.
appliedis a label in the account's own tracker. markedAppliedDateis not proof of an application. LinkedIn stamps it when a job reachesappliedor beyond, including whenst.setJobStageput it there. It then sticks through later stages, through archiving and through a return tosaved.- The stamp is lost when the job leaves the tracker. A job deleted or unsaved and saved again comes back without it.
- LinkedIn decides which stages it offers for each job. The
stage*errors ofst.setJobStagesay what it answered.
This page provides examples of workflows and their completions. For detailed documentation on constraints, parameters, and possible results of specific actions, always refer to the corresponding action documentation pages.