Automated B2B lead generation directly inside Google Sheets using the Apify API.
No Python, no Docker, and no server configuration needed. Perfect for sales teams, cold outreach agencies, and growth marketers.
If you have already executed a run on Apify Store (or want to pull an active public task), you can pull live leads into Google Sheets with one formula:
=IMPORTDATA("https://api.apify.com/v2/datasets/DATASET_ID/items?format=csv&token=YOUR_APIFY_TOKEN")
DATASET_ID with the dataset ID from your Actor run.YOUR_APIFY_TOKEN with your personal token from Apify Console.Business Name, Phone, Website, Rating, Address).This method adds a native “Lead Machine” menu bar directly inside your Google Sheet. You type a niche (e.g. Roofing Contractors) and city (e.g. Denver, CO), click Fetch Fresh Leads, and the sheet calls Apify and fills rows automatically.
In the Settings tab, set up this simple key-value table:
| Cell | Label / Value | Description |
|---|---|---|
| A1 | Apify API Token |
Label |
| B1 | YOUR_APIFY_TOKEN |
Paste your token from Apify Settings |
| A2 | Search Term |
Label |
| B2 | HVAC Contractors |
Any industry or business category |
| A3 | Location |
Label |
| B3 | Phoenix, AZ |
Any city, state, or postal code |
| A4 | Max Results |
Label |
| B4 | 50 |
Number of leads to extract (e.g. 25, 50, 100) |
function myFunction() { ... }).google_apps_script_enricher.js from this folder, copy all code, and paste it into the editor.If you use Clay for cold outreach:
POST.https://api.apify.com/v2/acts/captainhandsome~googlemaps/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN
Content-Type: application/json{
"searchQueries": [" in "],
"maxResultsPerQuery": 1
}
phone, rating, reviewsCount, address) directly to your Clay columns.captainhandsome/googlemapscaptainhandsome/glassdoor-jobs-scrapercaptainhandsome/california-contractors-license-searchcaptainhandsome/airbnb-scraper