Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    PlaybooksLocal business

    Directory to Leads

    The businesses a directory lists, each with its website and the email that site publishes, checked.

    Id
    directory-to-leads
    Version
    1.0.0
    Category
    Local business
    Status
    Live
    Saved, it runs
    weekly, monthly
    Unit cap
    1500 by default, 10 to 20000

    Reads a business directory page by page (the Better Business Bureau, Gelbe Seiten, Checkatrade, Clutch) or any directory page you give, such as a chamber of commerce's member list, whose links to members' websites are followed. Each business is matched to its own website, which is read for the address and profiles it publishes, and the address is checked.

    Use when someone has a directory or member list and wants each business on it with a website and an email.

    Run it with POST /v1/formulas/directory-to-leads/runs. How runs work is in Running a playbook; what a run costs is below.

    Parameters

    The fields of params, the Basics first. Only the required ones must be given; every other has a default. A field that is not listed is refused. The OpenAPI document has them as the type DirectoryToLeadsParams.

    Parameters of Directory to Leads
    ParameterTypeRequired or defaultWhat it is
    directoryBasicsstringrequiredDirectory. Which directory to read; a web page is any directory page of your own, such as a chamber of commerce's members.One of bbb, gelbeseiten, checkatrade, clutch, web_page.
    whatBasicsstringrequiredKind of business. As the directory names it: plumber on BBB or Checkatrade, Zahnarzt on Gelbe Seiten, a Clutch directory with its place such as web-developers/london, or the address of the directory page.up to 300 characters.
    whereBasicsstring""Place. A town, city or postcode. Not needed for Clutch, whose place is in its directory, or for a web page.up to 120 characters.
    pagesBasicsinteger3Pages to read. How many pages of the directory to read; for a web page, how many of its pages to follow.at least 1, at most 10.
    require_emailFiltersbooleantrueOnly businesses with an email. Keeps the businesses whose own website publishes an email address that passes the check.
    exclude_role_addressesFiltersbooleanfalseOnly named addresses. Leaves out shared inboxes such as info@.
    min_reviewsFiltersinteger0Fewest reviews. Businesses with fewer reviews on the directory are left out.at least 0.
    exclude_companiesFilterslist of strings[]Businesses to leave out. Names or domains, such as your existing customers.up to 5000, each up to 200 characters.
    resurface_after_daysOutputinteger180Show a business again after (days). For a saved playbook, how long before a delivered business may come back.at least 1, at most 365.
    max_resultsOutputinteger200Most rows. The run stops at this many businesses.at least 1, at most 5000.

    Presets

    Ready-made answers to start from: give them as params, with any of your own beside them.

    Tax advisers (Hamburg, Gelbe Seiten) tax-advisers-hamburg

    JSON
    {
      "directory": "gelbeseiten",
      "what": "Steuerberater",
      "where": "Hamburg"
    }

    Plumbers (Austin, BBB) plumbers-austin

    JSON
    {
      "directory": "bbb",
      "what": "plumber",
      "where": "Austin, TX"
    }

    A chamber of commerce's members chamber-members

    JSON
    {
      "directory": "web_page",
      "pages": 5
    }

    UK tradespeople (Checkatrade) uk-trades

    JSON
    {
      "directory": "checkatrade",
      "what": "electrician",
      "where": "Leeds"
    }

    Agencies (Clutch) agencies

    JSON
    {
      "directory": "clutch",
      "what": "agencies/digital-marketing/london",
      "pages": 2
    }

    Columns

    The columns of each row’s data, in order; rows also carry a score from 0 to 100, and come best first. A value that is not known is null.

    Columns of Directory to Leads
    ColumnLabelTypeShown by default
    business_nameBusinessstringyes
    directoryDirectorystringyes
    categoryCategorystringyes
    addressAddressstringno
    cityCitystringyes
    regionRegionstringno
    postcodePostcodestringno
    countryCountrystringno
    phonePhonestringyes
    websiteWebsiteurlyes
    domainDomainstringyes
    ratingRatingnumberyes
    reviewsReviewsintegeryes
    bbb_gradeBBB gradestringno
    years_in_businessYears in businessintegerno
    emailEmailemailyes
    email_statusEmail statusstringyes
    email_source_pageEmail found onurlno
    social_profilesSocial profileslistno
    listing_urlDirectory pageurlyes
    scoreScorenumberyes

    Example request

    # Start the run and wait up to 60 seconds for it to finish
    curl -X POST "https://api.enrichednow.com/v1/formulas/directory-to-leads/runs?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{"params":{"directory":"gelbeseiten","what":"Steuerberater","where":"Hamburg","pages":3,"require_email":true,"exclude_role_addresses":false,"min_reviews":0,"exclude_companies":[],"resurface_after_days":180,"max_results":200},"unit_cap":1500}'
    
    # Follow it until it ends, then read its rows, with the id the first call answered
    curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID?wait=60" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    curl "https://api.enrichednow.com/v1/formula-runs/$RUN_ID/rows?limit=100" \
      -H "Authorization: Bearer $ENRICHEDNOW_API_KEY"
    from enrichednow import EnrichedNow
    
    client = EnrichedNow()  # reads ENRICHEDNOW_API_KEY
    
    # Start the run, wait for it to end, and get its rows
    params = {
        "directory": "gelbeseiten",
        "what": "Steuerberater",
        "where": "Hamburg",
        "pages": 3,
        "require_email": True,
        "exclude_role_addresses": False,
        "min_reviews": 0,
        "exclude_companies": [],
        "resurface_after_days": 180,
        "max_results": 200,
    }
    result = client.run_formula("directory-to-leads", params, unit_cap=1500)
    print(result.run.id, result.run.status, result.run.rows_total, result.run.units_spent)
    
    # Read its rows, best first: pages are fetched as you go
    for row in result:
        print(row.data)

    Install it with pip install enrichednow, then save as run.py and run python3 run.py

    import EnrichedNow from "enrichednow";
    
    const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
    
    // Start the run, wait for it to end, and get its rows
    const params = {
      directory: "gelbeseiten",
      what: "Steuerberater",
      where: "Hamburg",
      pages: 3,
      require_email: true,
      exclude_role_addresses: false,
      min_reviews: 0,
      exclude_companies: [],
      resurface_after_days: 180,
      max_results: 200,
    };
    const { run, rows } = await client.runFormula("directory-to-leads", params, { unitCap: 1500 });
    console.log(run.id, run.status, run.rows_total, run.units_spent);
    
    // Read its rows, best first: pages are fetched as you go
    for await (const row of rows) console.log(row.data);

    Install it with npm install enrichednow, then save as run.mjs and run node run.mjs

    package main
    
    import (
    	"context"
    	"fmt"
    	"log"
    	"time"
    
    	enrichednow "github.com/enrichednow/enrichednow-go"
    )
    
    func main() {
    	client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
    	if err != nil {
    		log.Fatal(err)
    	}
    	ctx, cancel := context.WithTimeout(context.Background(), 30*time.Minute)
    	defer cancel()
    
    	// Start the run, wait for it to end, and get its rows
    	params := map[string]any{"directory": "gelbeseiten", "what": "Steuerberater", "where": "Hamburg", "pages": 3, "require_email": true, "exclude_role_addresses": false, "min_reviews": 0, "exclude_companies": []any{}, "resurface_after_days": 180, "max_results": 200}
    	run, rows, err := client.RunFormula(ctx, "directory-to-leads", params, &enrichednow.RunFormulaParams{UnitCap: 1500})
    	if err != nil {
    		log.Fatal(err)
    	}
    	fmt.Println(run.ID, run.Status, run.RowsTotal, run.UnitsSpent)
    
    	// Read its rows, best first: pages are fetched as you go
    	for rows.Next() {
    		fmt.Println(string(rows.Current().Data))
    	}
    	if err := rows.Err(); err != nil {
    		log.Fatal(err)
    	}
    }

    Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go

    import com.enrichednow.EnrichedNowClient;
    import com.enrichednow.FormulaResult;
    import com.enrichednow.FormulaRunOptions;
    import com.enrichednow.models.FormulaRow;
    import java.util.List;
    import java.util.Map;
    
    public class Run {
        public static void main(String[] args) {
            EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
    
            // Start the run, wait for it to end, and get its rows
            FormulaResult result = client.runFormula("directory-to-leads", Map.of("directory", "gelbeseiten", "what", "Steuerberater", "where", "Hamburg", "pages", 3, "require_email", true, "exclude_role_addresses", false, "min_reviews", 0, "exclude_companies", List.of(), "resurface_after_days", 180, "max_results", 200), FormulaRunOptions.builder().unitCap(1500).build());
            System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().rowsTotal() + " " + result.run().unitsSpent());
    
            // Read its rows, best first: pages are fetched as you go
            for (FormulaRow row : result.rows()) {
                System.out.println(row.data());
            }
        }
    }

    Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java

    enrichednow formulas run directory-to-leads --params-json '{"directory":"gelbeseiten","what":"Steuerberater","where":"Hamburg","pages":3,"require_email":true,"exclude_role_addresses":false,"min_reviews":0,"exclude_companies":[],"resurface_after_days":180,"max_results":200}' --unit-cap 1500

    Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    {
      "name": "run_formula",
      "arguments": {
        "formula_id": "directory-to-leads",
        "params": {
          "directory": "gelbeseiten",
          "what": "Steuerberater",
          "where": "Hamburg",
          "pages": 3,
          "require_email": true,
          "exclude_role_addresses": false,
          "min_reviews": 0,
          "exclude_companies": [],
          "resurface_after_days": 180,
          "max_results": 200
        }
      }
    }

    It starts a full run with the answers the sample rows below were made with and the default unit cap, waits for it, and reads its rows a page at a time. The key is read from an environment variable. The MCP tab is the same run asked of an agent connected to the MCP server, which runs a preview first.

    Example response

    The data of the first 3 rows a real run returned with these answers on 2026-11-24: it ended ok with 29 rows, after 74 scraper calls charged 68 units. Text over 160 characters is cut here and ends with … [truncated]; the API returns every value whole.

    JSON
    [
      {
        "business_name": "Dr. Böttner Rechtsanwälte und Strafverteidiger",
        "directory": "gelbeseiten",
        "category": "Rechtsanwälte: Internetstrafrecht (Schwerpunkt)",
        "address": "Colonnaden 104",
        "city": "Hamburg",
        "region": null,
        "postcode": "20354",
        "country": "DE",
        "phone": "040 18 01 84 77",
        "website": "https://www.strafrecht-bundesweit.de",
        "domain": "strafrecht-bundesweit.de",
        "rating": 5,
        "reviews": 122,
        "bbb_grade": null,
        "years_in_business": null,
        "email": "info@strafrecht-bundesweit.de",
        "email_status": "risky",
        "email_source_page": "https://www.strafrecht-bundesweit.de/",
        "social_profiles": [
          "https://x.com/RA_Dr_Boettner",
          "https://www.facebook.com/rechtsanwalt.strafrecht.anwaltskanzlei.dr.boettner"
        ],
        "listing_url": "https://www.gelbeseiten.de/gsbiz/2a480d35-48b1-444c-8934-0b89c6aed6ef",
        "score": 55
      },
      {
        "business_name": "Behn, Sonja Steuerberaterin",
        "directory": "gelbeseiten",
        "category": "Steuerberatung",
        "address": "Vierlandenstr. 31",
        "city": "Hamburg",
        "region": null,
        "postcode": "21029",
        "country": "DE",
        "phone": "040 7 21 98 66",
        "website": "http://www.sonja-behn.de",
        "domain": "sonja-behn.de",
        "rating": null,
        "reviews": null,
        "bbb_grade": null,
        "years_in_business": null,
        "email": "mail@sonja-behn.de",
        "email_status": "risky",
        "email_source_page": "https://www.sonja-behn.de/",
        "social_profiles": null,
        "listing_url": "https://www.gelbeseiten.de/gsbiz/b34a0817-c2d0-486f-a952-0225929a7d99",
        "score": 20
      },
      {
        "business_name": "B&S Steuerberater Partnerschaftsgesellschaft",
        "directory": "gelbeseiten",
        "category": "Steuerberatung",
        "address": "Hindenburgstr. 167",
        "city": "Hamburg",
        "region": null,
        "postcode": "22297",
        "country": "DE",
        "phone": "040 6 56 93 30",
        "website": "http://www.bus-steuerberater.de",
        "domain": "bus-steuerberater.de",
        "rating": null,
        "reviews": null,
        "bbb_grade": null,
        "years_in_business": null,
        "email": "team@bus-steuerberater.de",
        "email_status": "risky",
        "email_source_page": "https://www.bus-steuerberater.de/",
        "social_profiles": null,
        "listing_url": "https://www.gelbeseiten.de/gsbiz/5512e082-2fd9-41fa-be91-f8bcc91e65ee",
        "score": 20
      }
    ]

    Each row also has its id, its score, when it was first seen and its evidence: where each value came from. The run and its rows are described in Running a playbook.

    Pricing

    A run costs the units of the work it does, and nothing on top: each scraper call it makes is charged at that scraper's rate, when the call ends ok or partial. It never spends past its unit cap: 1500 units unless you give another (at least 10, at most 20000).

    With the answers above, a run is estimated at about 68 units for about 29 rows, and at most 1401: 1 search across 1 source, about 29 rows. An estimate for no history; POST /v1/formulas/directory-to-leads/estimate gives yours, free.

    A preview, mode: preview, is the first 10 rows, charged at what they cost: about 18 units with the answers above. POST /v1/formulas/directory-to-leads/estimate with mode: preview gives yours, free.

    How a playbook is charged has the rule for every playbook.