If you have ever built a B2B lead enrichment pipeline in Python, n8n, or Clay, you know how quickly SaaS subscriptions pile up:
- $295+/month for BuiltWith or Wappalyzer Pro just to detect whether a prospect runs Next.js, Stripe, or PostHog.
- Another $99–$199/month for an email & contact enrichment API.
- Another $150+/month for hiring-intent alerts showing which companies are actively expanding their AI or Security teams.
Worse, most DIY scrapers spin up heavy Playwright browsers behind expensive residential proxies — burning compute, tripping Cloudflare challenges, and breaking every time a marketing team redesigns their careers page.
There is a much cleaner engineering approach. Roughly 85–90% of high-value B2B domain intelligence is exposed directly via standard HTTP headers, free DNS-over-HTTPS (DoH) records, TLS certificates, and official unauthenticated ATS JSON APIs — requiring zero proxies, zero headless browsers, and zero third-party Python dependencies.
In this guide, I will walk through the exact three-stage Python pipeline I built — complete with working code snippets and real live outputs from polar.sh, Anthropic, Linear, and hengfudev.xyz.
The Hidden Goldmine: Why DNS-over-HTTPS Beats HTML Scraping Alone
Most "BuiltWith clones" only inspect <script src> tags in HTML. That misses half of a company's real stack — because enterprise tools like Google Workspace, Microsoft 365, Stripe, Slack, Notion, OpenAI, and HubSpot rarely inject frontend JavaScript into a marketing homepage.
Where do they leave verifiable fingerprints? DNS MX and TXT records.
Even better: you don't need dnspython or system dig binaries inside a Docker container. Cloudflare exposes a fast, free JSON DNS-over-HTTPS endpoint (https://cloudflare-dns.com/dns-query) that works with Python's standard library urllib.request:
import json import urllib.parse import urllib.request def doh_lookup(domain: str, record_type: str = "TXT") -> list[str]: query = urllib.parse.urlencode({"name": domain, "type": record_type}) url = f"https://cloudflare-dns.com/dns-query?{query}" req = urllib.request.Request( url, headers={ "Accept": "application/dns-json", "User-Agent": "B2B-Enricher/1.0", }, ) with urllib.request.urlopen(req, timeout=8) as resp: payload = json.loads(resp.read().decode("utf-8")) return [a["data"].strip('"') for a in payload.get("Answer", []) if "data" in a] mx = doh_lookup("polar.sh", "MX") txt = doh_lookup("polar.sh", "TXT") dmarc = doh_lookup("_dmarc.polar.sh", "TXT") From just three sub-second HTTPS calls, you immediately unlock signals sales and security teams pay top dollar for:
- Enterprise Email Provider (
MX):aspmx.l.google.com-> Google Workspace;mail.protection.outlook.com-> Microsoft 365;route1.mx.cloudflare.net-> Cloudflare Email Routing. - Email Security Maturity (
SPF&_dmarc): Checkingv=spf1andp=rejectvs.p=nonetells you how mature a prospect's security posture is. - Hidden Back-Office SaaS (
TXT): Markers likestripe-verification=,slack-domain-verification=,openai-domain-verification=,hubspot-developer-verification=, andinclude:resend.comexpose internal tools invisible in HTML.
Pair DoH with Python's built-in ssl.create_default_context() to read the TLS certificate issuer and remaining days before expiry, plus lightweight regex matching across HTTP response headers (CF-Ray, X-Vercel-Id, X-Powered-By, Server) and HTML assets.
Real Live Output: polar.sh & hengfudev.xyz
| Target Domain | Detected Tech Stack (HTML + Headers + Hidden DNS TXT) | Email / DNS / SSL | Buying & Hiring Signals |
|---|---|---|---|
polar.sh | 8 stacks: Next.js, Google Analytics 4, Cloudflare, Vercel, Google Workspace, Google Search Console, Stripe, Slack | Google Workspace · SPF ✅ · DMARC reject · SSL valid (70 days, Google Trust Services) | Public email support@polar.sh, X & GitHub profiles, Hiring ATS: Ashby, /llms.txt ✅ |
hengfudev.xyz | 5 stacks: Creem.io, GitHub Pages, Fastly, Model Context Protocol (MCP), Cloudflare Email Routing | Cloudflare Email Routing · SPF ✅ · SSL valid (89 days, Let's Encrypt) | Public email support@hengfudev.xyz, pricing $19 / $49 / $99, /llms.txt ✅ |
Notice how for polar.sh, Stripe, Slack, and Google Workspace were all surfaced cleanly from DNS records, while inspecting its careers link immediately identified Ashby as its Applicant Tracking System (ATS).
That single detectedAts field is the bridge to Stage 2.
Stage 2: Querying 5 Official Public ATS JSON APIs (Zero HTML Scraping)
Hiring velocity is one of the strongest B2B buying intent signals on earth. A company opening 15 new AI/ML roles or 10 Security Engineering roles has approved budget right now.
Yet most developers waste hours writing fragile BeautifulSoup or Playwright scrapers for company /careers pages — when the five dominant tech ATS platforms all publish official, unauthenticated public JSON APIs:
| ATS Provider | Official Public JSON Endpoint |
|---|---|
| Greenhouse | GET https://boards-api.greenhouse.io/v1/boards/{slug}/jobs?content=true |
| Lever | GET https://api.lever.co/v0/postings/{slug}?mode=json |
| Ashby | GET https://api.ashbyhq.com/posting-api/job-board/{slug}?includeCompensation=true |
| SmartRecruiters | GET https://api.smartrecruiters.com/v1/companies/{slug}/postings?limit=100 |
| Workable | GET https://apply.workable.com/api/v1/widget/accounts/{slug} (fallback POST /api/v3/accounts/{slug}/jobs) |
Here is a minimal Python helper that normalizes Greenhouse and Ashby into a single schema and tags AI/ML, Security, and Sales/GTM hiring velocity:
import json import re import urllib.request AI_RE = re.compile(r"\b(ai|ml|machine learning|llm|inference|research scientist|rag|mcp)\b", re.I) SEC_RE = re.compile(r"\b(security|appsec|infosec|red team|trust & safety|devsecops)\b", re.I) def fetch_json(url: str) -> dict | list: req = urllib.request.Request(url, headers={"Accept": "application/json", "User-Agent": "ATS-Signals/1.0"}) with urllib.request.urlopen(req, timeout=15) as r: return json.loads(r.read().decode("utf-8")) def get_ashby_signals(slug: str) -> dict: data = fetch_json(f"https://api.ashbyhq.com/posting-api/job-board/{slug}?includeCompensation=true") jobs = data.get("jobs", []) remote = sum(1 for j in jobs if j.get("isRemote")) ai_roles = sum(1 for j in jobs if AI_RE.search(f"{j.get('title','')} {j.get('department','')}")) sec_roles = sum(1 for j in jobs if SEC_RE.search(f"{j.get('title','')} {j.get('department','')}")) salaries = [] for j in jobs: for comp in (j.get("compensation") or {}).get("summaryComponents") or []: if comp.get("compensationType") == "Salary" and comp.get("currencyCode") == "USD": if comp.get("minValue"): salaries.append(int(comp["minValue"])) if comp.get("maxValue"): salaries.append(int(comp["maxValue"])) return { "company": slug, "totalOpenRoles": len(jobs), "remoteRatioPct": round(remote / max(len(jobs), 1) * 100, 1), "aiMlRoles": ai_roles, "securityRoles": sec_roles, "salaryRangeUsd": (min(salaries), max(salaries)) if salaries else None, } Real Live ATS Benchmarks (Measured Today)
Running this pure-JSON aggregator against three real tech companies returns instant, structured hiring velocity — with zero headless browsers:
-
greenhouse:anthropic: 636 open roles (285 Engineering,174 AI/ML,95 Security,177 Sales/GTM,10.1% remote) -> classified ashypergrowth_ai_expansion. -
ashby:linear: 31 open roles (100.0% remote), native USD compensation bands disclosed from$95,000to$320,000(20 Sales/GTM,9 Engineering). -
ashby:polar: 3 open roles (100.0% remote, includingPlatform Engineering).
Think about how actionable that is compared to a static company list: instead of cold-emailing random startups, you can automatically filter for companies with detectedAts != null, aiMlRoles >= 3, and disclosed $150k+ engineering budgets.
Stage 3: Closing the Outreach Loop with AI Search Readiness (GEO)
Once you know a prospect's tech stack, public business email, and live hiring budget, you still need a personalized reason for them to reply.
That is where a lightweight /llms.txt + JSON-LD teaser inside Stage 1 shines. When a fast-growing SaaS company uses Stripe + Next.js, is actively hiring on Ashby/Greenhouse, and is missing /llms.txt or accidentally blocking PerplexityBot / OAI-SearchBot in robots.txt, you can automatically run a full 6-dimension GEO audit and attach a ready-to-deploy llms.txt draft to your first message.
Don't Want to Maintain 110+ Signatures & 5 ATS Normalizers Yourself?
I packaged all three stages as lightweight, zero-proxy, Pay-Per-Event Apify Store Actors (each works via REST API, n8n/Make/Clay, or hosted MCP at https://mcp.apify.com, with $0 charged on failed/404 targets):
- Website Tech Stack, Emails & Contacts Enricher (BuiltWith Alt) — 113+ tech stacks (Next.js, Stripe, Polar, Creem, PostHog, MCP/AI SDKs), public role-based emails, socials, Cloudflare DoH MX/SPF/DMARC/TXT SaaS, TLS cert expiry, ATS detection, and
/llms.txtteaser ($0.025–$0.040/domain— 60% cheaper than legacy Wappalyzer replacements). - ATS Jobs & Hiring Signals API — Greenhouse, Lever & Ashby — Official JSON API extractor across Greenhouse, Lever, Ashby, SmartRecruiters, and Workable with company hiring velocity & compensation bands (
$0.015/board+$0.0015/job). - GEO & AI Search Readiness Auditor — 6-dimension 0–100 GEO/AEO/SEO score, 12 AI crawlers
robots.txtmatrix, SPA empty-shell detector, plus auto-generatedllms.txt& JSON-LD patches ($0.04/site).
Bonus: Local AI & MCP Repo Auditing
If you are building your own AI agents or MCP servers locally and want to stop leaked API keys, unpinned npx -y MCP configs, and unbounded while True LLM loops before they hit production, check out our open-core Python CLI AgentGuard CLI (GitHub MIT repo) — 100% local, zero dependencies, runs in under 1 second.
Key Takeaways for Lean Data Engineering
- Skip headless browsers whenever raw HTTP or official JSON exists: You get ~10x faster execution, ~99% lower compute cost, and far higher reliability.
- Always pair HTML fingerprinting with DNS-over-HTTPS: MX + TXT records reveal email providers and hidden back-office SaaS that frontend DOM scrapers completely miss.
- Chain intent signals together: Tech Stack + Email Provider (Stage 1) -> Live ATS Hiring Velocity (Stage 2) -> Personalized Technical Audit Hook (Stage 3) turns cold scraping into high-signal B2B intelligence.
Are you tracking any other public ATS JSON endpoints or DNS TXT SaaS fingerprints in your pipelines? Drop them in the comments!