Build a local lead list with APIs without merging every branch
All Them APIs
Independent API research
A local lead list can be wrong before it contains a single email. Collapse every location with the same website into one row and you lose branches. Treat every search result as a separate company and you count the same business repeatedly.
The useful output is a reviewed list of businesses in a defined area, with evidence that each location fits the brief. Contact discovery is a later, optional step. Sending a campaign is a different workflow altogether.
Give each API one job
You can connect the following providers directly from your application. Keep their keys in server-side configuration and translate responses into your own records rather than passing one provider's entire response to another.
| Step | API from the catalog | What to retain |
|---|---|---|
| Discover locations | SerpApi | Provider location identifier, query, address, listing URL and collection time |
| Check the business website | Firecrawl | Exact page URL, service/location evidence and observation time |
| Optional contact research | Hunter: email validation and domain tools | Domain match, contact source and a distinct verification outcome |
SerpApi's Maps reference documents local-result records and pagination. It is a discovery source, not proof that every business in a city has been found. Firecrawl's Scrape endpoint can retrieve a selected page in a requested document format. Neither step establishes that a business wants to buy your product.
Define the area and the acceptance rule first
Start with a narrow brief: an approved business type, geographic boundary, required service and exclusions. For example, an agency might research independent repair shops that explicitly advertise a particular service. A directory category alone is not that evidence.
Record the query, language and geographic settings with every discovery batch. Follow the provider's pagination response only within an application-enforced page budget. Repeating the first page with slightly different wording is not a reliable way to estimate market size.
Check the source and supplier's permitted use, retention and attribution requirements before building a persistent database. API access does not itself grant unrestricted reuse of the underlying listings. Keep a path for corrections and removal requests.
Store locations separately from organizations
A normalized location record needs provider, placeId, companyId when established, website, address, observedAt and an evidence URL. Keep companyId unknown until you can support the relationship. Two branches can share a domain and still deserve separate location records.
This local JavaScript example deduplicates repeated provider records across pages. It keeps the newest observation for an identifier; it deliberately does not merge records across providers or by website.
function mergeLocationPages(pages) {
const locations = new Map();
for (const page of pages) {
for (const item of page.items ?? []) {
if (typeof item.provider !== "string" || !item.provider.trim()) continue;
if (typeof item.placeId !== "string" || !item.placeId.trim()) continue;
const observed = Date.parse(item.observedAt);
if (!Number.isFinite(observed)) continue;
const key = JSON.stringify([item.provider, item.placeId]);
const previous = locations.get(key);
if (!previous || observed > Date.parse(previous.observedAt)) {
locations.set(key, item);
}
}
}
return [...locations.values()];
}
Cross-source entity matching needs an additional review rule using address, location identity and website evidence. Sharing a phone number or domain is not sufficient to silently merge a franchise, marketplace listing or booking service.
Check fit before buying contact data
Fetch only the approved business pages needed to establish fit: typically a service page and a location/contact page. A useful evidence row pairs a short supported observation with the page URL. Record missing pages and uncertain location matches instead of filling the gap with a model's guess.
If contact research is justified, Hunter's Domain Search reference describes domain-associated email information with source fields. Domain Search and Email Verifier are separate operations. A verification outcome is not permission to contact someone, and an accept-all result is not a confirmed individual mailbox. Consult current rules for the intended outreach and keep opt-outs separate from technical address checks.
Make this stage optional. A list intended for account planning may need only business websites and source evidence, with no personal contact data at all.
Give the agent a review queue, not a send button
Research the approved business type and area using configured provider APIs.
Respect the page/request budget and preserve each provider location identifier.
Check service and location fit against permitted public business pages.
Return separate accepted, uncertain and rejected records with source evidence.
Do not merge branches by domain or infer purchase intent from a listing.
Research contacts only if explicitly enabled; never send or enroll anyone.
Test a repeated listing on two pages, two branches sharing one domain, a moved location, a website belonging to a booking directory and a failed page fetch. Reprocessing a batch must not add another location or erase a newer observation.
Measure cost per accepted location, including discovery pages, website reads and optional contact checks. For deeper account preparation after selection, use the company-research workflow. Compare broader access options in the search directory and enrichment cluster.