See which companies visit. Not which people.
Pull visitor IPv4 addresses from your server logs, dedupe them, and run each through ip_to_company to get the organisation that owns the network. Home broadband, mobile carriers and cloud hosts return not_found, so expect matches only for companies that run their own network.
Logs to a list of companies
- / 01
Get the IPs server-side
Take the client IP from your web server, CDN or backend logs. If you sit behind a proxy, use the forwarded client address, not the proxy's.
- / 02
Filter and dedupe
Keep IPv4 only; IPv6 is not supported. Drop your own office, known bots and health checks. Dedupe so each IP is looked up once.
- / 03
Look up each IP
Call ip_to_company. A match returns the organisation, network name, IP range and country.
- / 04
Expect a lot of not_found
People browsing from home, on a phone or through a VPN on a cloud host show up as their ISP, carrier or host. We return not_found for these rather than a misleading name, and a miss is free.
- / 05
Turn names into accounts
For organisations you care about, find their domain and run domain_to_company for size and industry (on your own People Data Labs key,
ravn keys add pdl), or scrape_website for their public details, which is our own check and needs no key. - / 06
Act on the account, not the visitor
You know a company looked, not who. Use it to prioritise accounts and research the right buyer through finding decision makers.
From log file to matches
# Pull unique IPv4 addresses from an nginx access log into a CSV
echo "ip" > ips.csv
awk '{print $1}' access.log | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+