DEV Community

titic gamer
titic gamer

Posted on

I built a <1ms API to extract B2B leads from dirty HTML

Hey everyone,

I do a lot of web scraping and lead generation, and I was getting frustrated with how slow and expensive it is to use AI just to extract emails and phone numbers from dirty HTML.

I decided to build my own deterministic tool using pre-compiled regex engines. It processes raw text/HTML and returns clean JSON with emails, international phones, and social links.

The cool parts:

It's blazing fast (latency is usually under 1ms).

It filters out fake emails (like logo.png or image.svg).

It cleans tracking parameters from social URLs (removes ?utm_ or igsh=).

I just hosted it on RapidAPI and added a forever-free tier (100 requests/mo) so people can test the latency without putting in a card.

If you are building scrapers or CRM enrichers, I'd love for you to test it and destroy my server. Any feedback on the JSON structure or edge cases I missed would be highly appreciated!

Link here:https://rapidapi.com/titicgamer/api/b2b-lead-extractor-data-cleaner2

Top comments (0)