# Match scores

> Store your users' resumes once, then score them against any job in the catalogue: the Match API, its price, and what the verdicts mean.

Source: https://hyperjobs.io/docs/guides/match-scores

The Match API answers one question for your users: **how well does my resume
fit this job?** You keep each user's resume with us under your own id for them,
and ask for scores against the jobs you show them: a number from 0 to 100, a
verdict, and the job's skills the resume shows and lacks.

It isn't paid from your jobs: it has its own monthly allowance of **resume
reads** and **match scores**. Every plan has a little to try it (2 reads and
50 scores a month), and a [Match add-on](/pricing#match) gives 1,000 to 7,500
reads and 1,000,000 to 20,000,000 scores a month, in three sizes.

## The flow

<Steps>
  <Step title="PUT the resume, once per user">
    [`PUT /v1/candidates/{id}`](/docs/api-reference/candidates-put) with the
    resume as `text`, a PDF or DOCX `file`, a `linkedin_url`, or a JSON Resume
    `profile`. Use the id your own system has for the user. Most reads answer
    `200` within seconds; a `202` means the read continues: poll
    [`GET /v1/candidates/{id}`](/docs/api-reference/candidates-retrieve) until
    `status` is `ready`.
  </Step>
  <Step title="Get job ids from the catalogue">
    The ids are the catalogue's own `id`, from a
    [search](/docs/api-reference/jobs-list) you'd show the user anyway, or from
    [`/v1/jobs/changes`](/docs/api-reference/jobs-changes) for what's new since
    yesterday.
  </Step>
  <Step title="Score them">
    [`POST /v1/candidates/{id}/scores`](/docs/api-reference/candidates-scores)
    with up to 1,000 `job_ids`. Sort by `score`, filter by `verdict`, and show
    `matched_skills` and `missing_skills` beside each job.
  </Step>
  <Step title="Re-PUT when the resume changes">
    Same id, new content: the old resume is replaced and read again. Sending the
    same content again is free (`changed: false`), so PUT on every save
    without keeping track of what changed.
  </Step>
</Steps>

```js
const api = "https://api.hyperjobs.io/v1";
const headers = { Authorization: `Bearer ${process.env.HYPERJOBS_KEY}`, "Content-Type": "application/json" };

// 1. Once per user, and again when they edit their resume.
let c = await (await fetch(`${api}/candidates/${userId}`, {
  method: "PUT", headers, body: JSON.stringify({ text: resumeText }),
})).json();
while (c.status === "reading") {
  await new Promise((r) => setTimeout(r, 3000));
  c = await (await fetch(`${api}/candidates/${userId}`, { headers })).json();
}

// 2. The jobs you'd show them anyway.
const { data: jobs } = await (await fetch(`${api}/jobs?title=backend+engineer&country=DE&limit=100`, { headers })).json();

// 3. A score per job.
const { data: scores } = await (await fetch(`${api}/candidates/${userId}/scores`, {
  method: "POST", headers, body: JSON.stringify({ job_ids: jobs.map((j) => j.id) }),
})).json();
```

## Verdicts

The score is the fit, 0 to 100. The verdict is the same thing in a word, plus
one case a number can't say:

| `verdict` | Score | Means |
| --- | --- | --- |
| `strong` | 80 and up | The resume shows what the job asks for. Put it first. |
| `good` | 55 to 79 | A real fit with gaps, usually worth applying. |
| `partial` | 35 to 54 | Some of it. Show it with `missing_skills`. |
| `weak` | below 35 | Little of what the job asks for. |
| `different_field` | any | The job is in **another field** than the resume: a nurse and a backend role. The score may still be high on shared words; don't show it as a match. |

`matched_skills` and `missing_skills` are the job's own skills, in the
posting's words: what the resume shows, and what it doesn't. They're what
makes a score explainable, and `missing_skills` is what a candidate can act
on.

## What it costs

| | Every plan | Match S | Match M | Match L |
| --- | --- | --- | --- | --- |
| Price, on a paid plan | included | $99 / month | $299 / month | $699 / month |
| Resume reads / month | 2 | 1,000 | 3,000 | 7,500 |
| Match scores / month | 50 | 1,000,000 | 5,000,000 | 20,000,000 |
| Candidates kept | 2 | 5,000 | 20,000 | 50,000 |

| Request | Uses |
| --- | --- |
| A resume read: `text`, `file` or `profile` | 1 read |
| A resume read: a LinkedIn link | 2 reads |
| A PUT with the same content (`changed: false`) | nothing |
| Each job scored | 1 score |
| Ids in `not_found`, every error, `GET`, the list, `DELETE` | nothing |

None of it touches your jobs. Every Match answer says where you stand in
`X-Match-Reads-Limit` / `-Used` and `X-Match-Scores-Limit` / `-Used`.

Two things are checked **before** any work is done, so a request is either
done and counted or refused and free: the month must have room for what the
request could use (a `402` with `scope` `match_reads` or `match_scores` and
`needed` otherwise: a scores request needs room for every id it sends), and a
**new** id must fit the candidates you may keep (a `403` with `scope`
`match_candidates`). Replacing a resume you keep is always allowed.
[Plans](/help/plans#the-match-api) has the sizes and their prices.

Scoring is cheap; reading isn't. Score as often as you like (when a user
opens a list, when new jobs arrive), but PUT a resume only when it changes.

## Keeping it tidy

- **Delete** a candidate when your user deletes their account or withdraws
  their resume: [`DELETE /v1/candidates/{id}`](/docs/api-reference/candidates-delete).
  It's free and answered even when the month's allowance is used up.
- A candidate nobody **reads or scores for 180 days** is deleted for you; a
  score after that is a `404`. PUT it again.
- [`GET /v1/candidates`](/docs/api-reference/candidates-list) lists what your
  account keeps, newest first, to reconcile with your own users.
- Deleting your HyperJobs account deletes every candidate it keeps.

<Note title="Resumes are personal data">
  You decide what goes in; we only need what a resume says about work. Names,
  emails, phone numbers and addresses aren't used for scoring. Leave them out
  when you can. Resumes are read and scored by a processor of ours, listed on
  [subprocessors](/legal/subprocessors).
</Note>

## Next

<CardGroup cols={2}>
  <Card title="Create or replace a candidate" icon="UserPlus" href="/docs/api-reference/candidates-put">
    The four forms a resume can come in.
  </Card>
  <Card title="Score a candidate" icon="Target" href="/docs/api-reference/candidates-scores">
    The response field by field.
  </Card>
</CardGroup>
