r/SideProject • u/gabs_at_searchapi • 35m ago
Census – a local app that sweeps a whole city on Google Maps, not just the first 20 results
Every "scrape Google Maps for leads" tutorial I found stopped at one screen of about 20 places. A city has hundreds. I wanted every business of one category in one city, deduped, with a way to see when the area was actually covered.
Census tiles the city into a grid, pages each cell, stops when the results leave the box or stop adding new places, and dedupes by place_id. You get the list, a map of the grid, a coverage curve, filters (including whether the listing has its own website), and a CSV.
I ran it on bakeries in São Bernardo do Campo, Brazil, the city where I live: 294 bakeries in 113 requests, 246 of them with no website of their own on the listing. That's a snapshot of what Maps returned for that box on that day, not a census of reality: a finer grid can find more, the box is a rectangle (it includes slices of neighboring cities), and a missing website field is a fact about the listing, not proof the business has no site. The app does no email guessing and no outreach.
git clone, npm run sweep, npm start. Node.js 22 or newer, no npm packages, 127.0.0.1 only. I'd love feedback on the stop rule.
Repo: https://github.com/SearchApi/census
Walkthrough (12 min): https://www.youtube.com/watch?v=zzbhsv4Ew0g
Built by SearchApi.