← Blog

Build a Claude API Resume Screening Tool

2026-11-13 · 5 min read · SubToAPI Team

Why build a resume screener with Claude

If you're hiring at any volume, manually reading every resume doesn't scale. Recruiters spend hours skimming PDFs for keywords that may or may not reflect actual fit, and candidates wait weeks for a response that a script could generate in seconds. The Claude API is a strong fit for this problem because it can read unstructured resume text, extract structured fields (name, years of experience, skills, education), and reason about fit against a job description — not just pattern-match on keywords.

This guide walks through building a working resume screening tool: parsing resumes into structured JSON, scoring candidates against a role, and wiring it into a pipeline you can actually run in production. It also covers the legal and ethical guardrails you need before shipping anything like this.

How the pipeline works

A resume screening tool built on Claude typically has four stages:

  1. Ingest — pull resume text from PDF/DOCX uploads (use a parsing library like pdf-parse or mammoth before sending text to the model).
  2. Extract — send resume text to Claude with a tool definition that forces structured output (name, contact info, experience, skills, education).
  3. Score — send the extracted data plus the job description back to Claude and ask it to score fit on defined criteria.
  4. Rank & route — store results, rank candidates, and route top matches to a recruiter for human review.

The key design decision: never let the model make a final hire/reject decision autonomously. Use it to extract and summarize, and to produce a score with reasoning that a human reviews before any candidate is rejected.

Step 1: Extract structured data with tool use

Claude's tool use (function calling) lets you force the model to return data in a strict schema instead of free text. Define a tool like this:

{
  "name": "extract_resume",
  "description": "Extract structured candidate data from resume text",
  "input_schema": {
    "type": "object",
    "properties": {
      "full_name": { "type": "string" },
      "years_experience": { "type": "number" },
      "skills": { "type": "array", "items": { "type": "string" } },
      "education": { "type": "array", "items": { "type": "string" } },
      "most_recent_title": { "type": "string" }
    },
    "required": ["full_name", "years_experience", "skills"]
  }
}

When you call the API with this tool and a resume's raw text, Claude returns a tool call with the fields filled in, which you parse directly — no regex, no brittle string matching.

Step 2: Score fit against a job description

Once you have structured candidate data, send it alongside the job description and ask Claude to produce a fit score with justification:

You are screening candidates for a Senior Backend Engineer role.

Job requirements:
- 5+ years backend development
- Experience with distributed systems
- Go or Rust preferred

Candidate data:
{extracted_json}

Score this candidate from 1-10 on fit for this role.
Return the score, a one-sentence justification, and any
missing requirements. Do not make a hiring recommendation —
only assess fit against the listed requirements.

This separates two concerns cleanly: extraction is deterministic and structured, scoring is reasoning-based and explainable. Keep the justification text — recruiters need to see why a score was assigned, both for trust and for audit purposes.

Step 3: Wire it into an API pipeline

Here's a minimal example using SubToAPI as the Claude access layer, since it gives you a standard HTTPS endpoint with streaming, usage tracking per team seat, and application API keys instead of juggling raw provider credentials across your hiring stack:

const response = await fetch("https://api.subtoapi.app/v1/messages", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${process.env.SUBTOAPI_KEY}`,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    model: "claude-sonnet-4",
    max_tokens: 1024,
    tools: [resumeExtractionTool],
    messages: [
      { role: "user", content: `Extract structured data from this resume:\n\n${resumeText}` }
    ]
  })
});

const data = await response.json();
const extracted = data.content.find(c => c.type === "tool_use").input;

If you're processing resumes in bulk, add retry logic for rate limits and consider streaming the scoring step so recruiters see justifications render in real time in a review UI — see /docs/streaming for details. Full request/response shapes are in /docs/messages, and /docs/tools covers tool-use schemas in depth.

Guardrails you need before shipping this

Resume screening tools touch employment law, so build these in from day one, not after a complaint:

Getting started

You don't need a large engineering team to prototype this. Start with a single extraction call on a handful of real (anonymized, consented) resumes, verify the structured output matches what a recruiter would manually pull out, then layer in the scoring step. Get a Claude access point running through /signup, check /docs/quickstart for your first authenticated request, and review /pricing if you're scoping this for a team rather than a solo project.

Questions

Does Claude replace a recruiter in the screening process? No. It extracts and summarizes candidate data and produces a fit score with reasoning, but final shortlisting and any rejection decisions should go through human review — both for accuracy and for legal compliance in most jurisdictions.

Can Claude read PDF resumes directly? Claude works on text, so you need to extract text from PDFs/DOCX files first using a library like pdf-parse, then send that text in your API request alongside the job description or extraction tool.

How do I prevent bias in automated resume scoring? Instruct the model explicitly to ignore protected characteristics, log every score with its justification for audit purposes, and periodically test the same resume content with varied names to check for scoring drift.

Turn your Claude access into an HTTPS API

SubToAPI gives you application API keys, streaming, tool use and usage insights on top of your existing Claude access — set up in minutes.

Start free  Read the quickstart →