How I Built 10 Serverless B2B & AI Data APIs at $0/mo (Without Headless Browsers)
Most web scraping and data-enrichment tools default to spinning up headless Chromium for every URL. That works on a laptop, until you deploy it to a serverless function or pay-per-event marketplace and watch 2 GB RAM bro
Most web scraping and data-enrichment tools default to spinning up headless Chromium for every URL. That works on a laptop, until you deploy it to a serverless function or pay-per-event marketplace and watch 2 GB RAM browser containers eat your latency and compute margin alive.
This week I built and shipped 10 lightweight, HTTP-first B2B and AI data APIs running on Vercel's free tier ($0/month) and Apify (capped at 128-512 MB RAM). Here are three practical patterns that eliminated headless browsers across almost all of them, plus live free-tier endpoints if you want to plug them straight into n8n, Clay, or an AI agent.
1. Decode Cloudflare Emails Without Running JavaScript
A huge percentage of B2B company websites hide their sales@ and hello@ addresses behind Cloudflare's email obfuscation (data-cfemail). Naive regex scrapers miss them completely, so people reach for Playwright.
You do not need a browser for this. Cloudflare's data-cfemail attribute is just a simple hex XOR cipher where the first byte is the key:
export function decodeCloudflareEmail(hex: string): string | null {
const clean = hex.trim();
if (!/^[0-9a-fA-F]{6,}$/.test(clean) || clean.length % 2 !== 0) return null;
const key = parseInt(clean.slice(0, 2), 16);
let decoded = '';
for (let i = 2; i < clean.length; i += 2) {
decoded += String.fromCharCode(parseInt(clean.slice(i, i + 2), 16) ^ key);
}
return decoded.includes('@') ? decoded.toLowerCase() : null;
}
Pair that with a shallow HTTP crawl (/, /contact, /about, /pricing, /careers) and header/HTML tech-stack fingerprinting, and you can enrich a company domain in ~1-2 seconds on 128 MB RAM.
- Try it on RapidAPI (Free tier): Website Contact, Cloudflare Email & Tech Stack Enricher API
- Or on Apify Store: Website Contact, Tech Stack & AI Lead Qualifier
2. Hit Official Public ATS JSON APIs for Hiring Intent
If you build outbound sales or recruiting workflows (for example, monitoring when target SaaS companies open AI or DevOps roles), scraping rendered career pages is fragile. Greenhouse, Lever, and Ashby all expose clean public JSON endpoints per company slug:
-
Greenhouse:
https://boards-api.greenhouse.io/v1/boards/{slug}/jobs -
Lever:
https://api.lever.co/v0/postings/{slug}?mode=json -
Ashby:
https://api.ashbyhq.com/posting-api/job-board/{slug}
You can scan 1,500+ open roles across multiple companies in ~2 seconds with zero DOM breakage and zero proxy cost.
- Try the unified API (Free tier): Greenhouse, Lever & Ashby Company Jobs API
- Or on Apify Store: Multi-ATS Company Jobs Scraper
3. Clean HTML-to-RAG Markdown Chunking (Zero Boilerplate)
When feeding documentation sites into Pinecone, Supabase pgvector, or an LLM prompt, raw HTML wastes tokens on navbars, cookie banners, sidebars, and footers.
Locating <article> or <main>, stripping <nav>, <footer>, <aside>, and <script>, preserving fenced code blocks (<pre><code>), and splitting on heading boundaries gives you clean, token-counted Markdown chunks in under a second.
- Try it on RapidAPI (Free tier): URL & Docs to Clean RAG Markdown Chunker API
The Rest of the Suite (All With Free Tiers)
Using the same HTTP-first TypeScript pattern (plus Node's native dns/promises and official RDAP/government portals), I also published:
- Australian ABN & Business Register Lookup: Official ABR status, GST registration, ACN/ASIC number, state and postcode (RapidAPI | Apify)
- Australian Gov Tenders (AusTender) & Grants (GrantConnect): Open federal procurement and grant opportunities (RapidAPI | Apify)
- Australian Public Holidays & Business Days Calculator: National + all 8 state/territory calendars and working-day math (RapidAPI)
- Domain RDAP, DNS & Email Deliverability Intel: MX/SPF/DMARC policies, email host detection (Google Workspace, Microsoft 365, Proofpoint), and domain age (RapidAPI)
-
AI-Readiness,
llms.txt& AI-Bot (robots.txt) Auditor: Checks/llms.txtand allow/block rules for 12 AI crawlers like GPTBot, ClaudeBot, and PerplexityBot (RapidAPI) - SEO Metadata, OpenGraph & JSON-LD Extractor: Preview cards, Schema.org JSON-LD, headings, and alt-text coverage (RapidAPI)
- Apple App Store Reviews & Sentiment: Official iTunes JSON/RSS with automatic bug, pricing, and feature-request tagging (RapidAPI | Apify)
If you are building custom data pipelines, n8n/Clay workflows, or MCP servers and want to compare notes (or need a custom scraper/endpoint built), feel free to drop a comment below or reach out via Contra or LinkedIn.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.