An r/hiringcafe post launched an AI Job Search Agent matching power-user filters on a job board. This tutorial walks the data layer: SERP for ATS pages, Reddit for hiring threads, extract for the full job description. The description step uses Scavio's Extract endpoint (POST /api/v1/extract), which returns an ATS posting as clean Markdown for 1 credit; only successful extractions are billed.
API Docs: Extract API
Prerequisites
- Python 3.10+
- Scavio API key
Walkthrough
Step 1: Take user resume + preferences
Inputs: skills, location, salary range, remote preference.
USER = {'skills': ['python', 'rust', 'mcp'], 'location': 'remote', 'min_salary': 150000}Step 2: Generate ATS-targeted queries
site: queries find Greenhouse, Lever, Ashby pages.
ATS_DOMAINS = ['greenhouse.io', 'lever.co', 'ashbyhq.com']
def queries(user):
return [f'site:{d} {" ".join(user["skills"])} {user["location"]}' for d in ATS_DOMAINS]Step 3: SERP across ATS domains
Scavio search per query.
import requests, os
API_KEY = os.environ['SCAVIO_API_KEY']
def ats_jobs(q):
r = requests.post('https://api.scavio.dev/api/v2/google',
headers={'Authorization': f'Bearer {API_KEY}'}, json={'query': q}).json()
return r.get('organic_results', [])[:20]Step 4: Reddit hiring threads as a parallel surface
r/cscareerquestions, r/jobs, niche subs surface unannounced openings.
def reddit_jobs(skills):
return requests.post('https://api.scavio.dev/api/v1/reddit/search',
headers={'Authorization': f'Bearer {API_KEY}'},
json={'query': f'{" ".join(skills)} hiring 2026'}).json().get('results', [])[:20]Step 5: Extract full job description
Extract returns the posting as Markdown, ready for the scoring prompt.
# Scavio Extract reads one URL and returns the page as markdown, html or text.
# mode: "normal" (1 credit), "advanced" renders JavaScript (1 credit),
# "ultra" for the hardest pages (2 credits). Only a successful call is billed.
# Docs: https://scavio.dev/docs/extract
def scavio_extract(url, headers, mode="normal", fmt="markdown"):
r = requests.post("https://api.scavio.dev/api/v1/extract", headers=headers,
json={"url": url, "format": fmt, "mode": mode}, timeout=90)
r.raise_for_status()
return r.json()["data"]["content"]
def description(url):
# advanced renders JavaScript: some ATS boards build the posting in the browser.
return scavio_extract(url, {'Authorization': f'Bearer {API_KEY}'}, mode='advanced')Step 6: Score + rank with LLM
Match resume against full description.
import anthropic
client = anthropic.Anthropic()
def score(resume, jd):
msg = client.messages.create(model='claude-sonnet-4-6', max_tokens=200,
messages=[{'role':'user','content':f'Score this resume vs job description 0-100 with 1-line reason. RESUME: {resume}. JD: {jd}'}])
return msg.content[0].textPython Example
# Daily run: 3 ATS queries + 1 Reddit query + ~20 extracts = ~25 credits = $0.11.JavaScript Example
// Same pattern in TS via the Anthropic SDK.Expected Output
About 30-60 ranked jobs per day with full descriptions and 0-100 fit scores. Reddit thread surfacing catches unannounced roles 3-7 days earlier.