Claude API for Resume Screening Tool: A Build Guide
Can you use the Claude API to screen resumes?
Yes. The Claude API is well suited to resume screening because it can read unstructured text (resumes come in dozens of formats and layouts), extract structured fields, and reason about fit against a job description in a single pass. Instead of maintaining brittle regex-based parsers or a stack of ATS keyword rules, you send the resume text and job requirements to Claude and get back structured, explainable output: extracted candidate data, a match score, and reasoning for that score.
This matters for teams building an internal recruiting tool, an ATS add-on, or a SaaS product for staffing agencies. The core workflow is always the same: parse the resume, compare it to a job profile, produce a consistent scoring format, and flag anything that needs human review. Below is a practical pattern for building this with Claude, including prompt structure, a working code example, and the parts of the system that need the most care — bias mitigation and legal defensibility.
Core architecture for a resume screening tool
A production resume screener typically has four stages:
- Text extraction — convert PDF/DOCX resumes to plain text before sending to Claude. Claude works on text, not binary files, so you need an upstream extraction step (e.g.,
pdf-parse,mammoth, or a dedicated OCR service for scanned resumes). - Structured extraction — ask Claude to pull candidate name, years of experience, skills, education, and job history into a fixed JSON schema.
- Scoring against the role — send the extracted data plus the job description and ask Claude to produce a fit score with reasoning.
- Human review layer — never auto-reject. Surface Claude's score and reasoning to a recruiter who makes the final call.
Step 1: Extraction prompt
Keep extraction and scoring as separate calls. Mixing them in one prompt makes outputs inconsistent and harder to debug.
{
"model": "claude-sonnet-4.5",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Extract the following fields from this resume as JSON: name, email, phone, total_years_experience, skills (array), education (array of {degree, institution, year}), work_history (array of {title, company, start_date, end_date, summary}).\n\nResume:\n{{resume_text}}"
}
]
}
Ask for JSON explicitly and validate it on your side — don't assume the model will never add extra commentary. Wrapping the request with a system instruction like "Respond with JSON only, no explanation" reduces parsing errors significantly.
Step 2: Scoring prompt
{
"model": "claude-sonnet-4.5",
"max_tokens": 800,
"messages": [
{
"role": "user",
"content": "Job requirements:\n{{job_description}}\n\nCandidate data:\n{{extracted_json}}\n\nScore this candidate's fit from 0-100 based only on skills, experience, and qualifications explicitly stated. Return JSON: {score, matched_requirements: [], missing_requirements: [], reasoning}. Do not infer gender, age, ethnicity, or make assumptions beyond what is written."
}
]
}
That last instruction isn't decorative — it's a working part of the prompt that reduces the chance of the model drawing on irrelevant signals like name-based inferences or graduation-year-based age guesses.
Calling this through SubToAPI
If you already have a Claude subscription and want an HTTPS API for this without going through Anthropic's separate API billing and approval process, SubToAPI turns your existing Claude access into a standard API with its own key (sub_live_...), so you can wire it into a resume screening backend the same way you'd call any other API.
curl https://api.subtoapi.app/v1/messages \
-H "Authorization: Bearer $SUBTOAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4.5",
"max_tokens": 800,
"messages": [
{"role": "user", "content": "Score this candidate against the job description. Return JSON only. Job: Senior Backend Engineer, 5+ years Node.js, AWS, PostgreSQL. Candidate: 6 years experience, Node.js, Python, AWS, MySQL."}
]
}'
For higher volume screening — batches of resumes run overnight, or a pipeline that processes hundreds of applications per role — streaming isn't usually necessary since you want the full JSON object before acting on it. A standard synchronous request per resume, run in parallel with reasonable concurrency limits, is the simpler and more reliable pattern. See /docs/messages for the request format and /docs/quickstart to get a key provisioned.
If your screening tool later needs to look up external data — verifying a company name, checking a certification registry, pulling salary benchmarks — tool use lets Claude call out to your own functions mid-conversation. That's documented at /docs/tools.
Keeping it legally defensible
Resume screening with any AI tool sits close to employment law, especially around disparate impact. A few concrete safeguards:
- Never let the model see protected-class signals it doesn't need. Strip photos, strip explicit age/gender/marital status fields if present, and instruct the model not to infer them.
- Log every score and the reasoning text. If a candidate disputes a rejection, you need an audit trail showing what the model evaluated and why.
- Treat scores as a ranking signal, not a gate. Use Claude's output to prioritize a recruiter's queue, not to auto-reject candidates below a threshold.
- Re-run periodic audits. Sample a batch of scored resumes and check for patterns correlated with school prestige, employment gaps, or name origin — these can creep in even with careful prompting.
- Check local regulations. Several jurisdictions (NYC Local Law 144 is the most cited example) require bias audits for automated employment decision tools. Build your logging and audit capability before you need it, not after.
Handling resume volume and cost
Resume screening tools tend to have bursty, high-volume traffic — hundreds of resumes arriving around application deadlines. Two practical notes:
- Batch your extraction and scoring calls with a concurrency cap (10–20 concurrent requests is a reasonable starting point) rather than firing everything at once.
- Cache job description context across all resumes for a given role instead of re-sending it fresh each time if your provider supports prompt caching, which cuts repeated-token cost significantly on high-volume roles.
For teams running this across a hiring team with multiple recruiters needing their own keys and usage visibility, SubToAPI's team seats (from the pricing page) let you give each recruiter or each environment (staging vs. production) a separate sub_live_ key while tracking usage centrally.
Getting started
Start with a single role, a fixed JSON schema, and manual review of every score for the first few dozen candidates before trusting the pipeline. Tune the scoring prompt based on where it disagrees with your recruiters' judgment, then expand to more roles. A free trial at /signup is enough to prototype the extraction and scoring prompts above before committing to a plan.
Questions
Does Claude read PDF resumes directly? Not as raw binary. Extract text first with a PDF/DOCX parsing library, then send the plain text to Claude for structured extraction and scoring.
Will Claude discriminate based on name or school in resumes? It can introduce bias if prompted carelessly, same as any LLM. Mitigate it by instructing the model explicitly not to infer protected characteristics, logging reasoning for audits, and using scores as a ranking aid rather than an automatic reject/accept gate.
Can I run this without Anthropic's separate API approval process? Yes — if you already have Claude access, SubToAPI issues an API key from that access so you can call /docs/messages directly without a separate Anthropic API account and billing setup.