{
  "version": 1,
  "slug": "pay-as-you-go-lead-generation-apis",
  "title": "6 Pay-As-You-Go Lead Generation APIs for AI Agents",
  "excerpt": "Compare six pay-as-you-go lead generation APIs by input, output, billing rule, and best use case, then add the right one to a Claude Code or Codex workflow.",
  "cover": {
    "src": "/howto_images/pay-as-you-go-lead-generation-apis/pay-as-you-go-lead-generation-apis-cover.png",
    "optimized": "https://www.datablist.com/_next/image?url=%2Fhowto_images%2Fpay-as-you-go-lead-generation-apis%2Fpay-as-you-go-lead-generation-apis-cover.png&w=1200&q=75"
  },
  "url": "https://www.datablist.com/how-to/pay-as-you-go-lead-generation-apis",
  "contentMarkdown": "\nClaude Code and Codex are great for digging up leads on the web. Ask either one to search Google and pull details from public webpages, then have it build a workflow that saves the results to a CSV. Add lead generation APIs and your agent can scrape LinkedIn profiles and find email addresses and phone numbers.\n\nThis guide compares six pay-as-you-go Datablist **lead generation APIs** for finding company domains, LinkedIn profiles, profile data, work emails, personal emails, and phone numbers. You will see which API fits your current inputs, what it returns, what it costs, and how to add it to Claude Code or Codex. For broader targeting and qualification, see the [lead generation workflow](/how-to/lead-list-building-guide).\n\n## The six lead generation APIs at a glance {#the-six-lead-generation-apis-at-a-glance}\nDatablist's six APIs cover company domain lookup, LinkedIn profile finding, LinkedIn profile scraping, work email finding, personal email finding, and phone finding. They share one asynchronous task workflow, but their required inputs and billing conditions differ. **Choose the API from the input you already have and the one field you need next.**\n\n<div class=\"preview-table\">\n<div class=\"table-wrapper\">\n<table>\n<thead>\n<tr>\n<th>API and endpoint ID</th>\n<th>What it does</th>\n<th>Estimated cost</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"/apis/company-name-to-domain\">Company Name to Domain</a><br /><code>company-name-to-domain</code></td>\n<td>Finds a company’s domain and website from its name and optional country.</td>\n<td><strong>$0.001</strong> per successful dataset match or <strong>$0.0025</strong> per Google search, even without a match.</td>\n</tr>\n<tr>\n<td><a href=\"/apis/linkedin-profile-finder\">LinkedIn Profile Finder</a><br /><code>linkedin-profile-lookup</code></td>\n<td>Finds a likely public LinkedIn profile from a person’s name and a clue such as their company, school, or city.</td>\n<td><strong>$0.0025</strong> per name searched, even without a match.</td>\n</tr>\n<tr>\n<td><a href=\"/apis/linkedin-profile-scraper\">LinkedIn Profile Scraper</a><br /><code>linkedin-profile-scraper</code></td>\n<td>Pulls profile and role details from a public LinkedIn or Sales Navigator lead URL.</td>\n<td><strong>$0.02</strong> for an accepted cached profile or <strong>$0.025</strong> for a fresh lookup. Failed lookups can still use credits.</td>\n</tr>\n<tr>\n<td><a href=\"/apis/waterfall-email-finder\">Waterfall Email Finder</a><br /><code>waterfall-email-finder</code></td>\n<td>Finds a work email and returns its status. Start with a name and company or domain, or a public LinkedIn profile URL.</td>\n<td><strong>$0.025</strong> per work email found on the managed-credit route.</td>\n</tr>\n<tr>\n<td><a href=\"/apis/waterfall-personal-email-finder\">Waterfall Personal Email Finder</a><br /><code>waterfall-personal-email-finder</code></td>\n<td>Finds a personal email from a standard public LinkedIn profile URL.</td>\n<td><strong>$0.075</strong> per personal email found.</td>\n</tr>\n<tr>\n<td><a href=\"/apis/waterfall-phone-finder\">Waterfall Phone Finder</a><br /><code>waterfall-phone-finder</code></td>\n<td>Finds a phone number and its country from a standard public LinkedIn profile URL.</td>\n<td><strong>$0.50</strong> per phone number found. No charge for misses or accepted cached results on the documented route.</td>\n</tr>\n</tbody>\n</table>\n</div>\n</div>\n\n> 📘 **How to read the prices**\n>\n> A $0.025 estimate means that 25 credits have a consumption value of $0.025 at the base rate. It is not a standalone 25-credit purchase. You buy the one-time entry pack or a top-up, then the API consumes credits from that balance. Larger top-ups can lower the unit rate.\n\n## Install the Datablist API skill in Claude Code or Codex {#install-the-datablist-api-skill-in-claude-code-or-codex}\nThe official [Datablist API skill](https://github.com/datablist/agent-skills) gives a local AI agent instructions for credential storage, task creation, polling, pagination, and retries. Install it once, then name the endpoint and input file.\n\n![Official Datablist agent-skills repository with the datablist-api skill folder](/howto_images/pay-as-you-go-lead-generation-apis/datablist-api-agent-skill-github.png)\n\n### Install in Claude Code {#install-in-claude-code}\nRun this command inside Claude Code 2.1.275 or later.\n\n<div format=\"template\" title=\"Install the Datablist API skill in Claude Code\" copy=\"true\">\n<p>/plugin install datablist-api --marketplace datablist/agent-skills</p>\n</div>\n\n![Claude Code prompt with the Datablist API skill install command](/howto_images/pay-as-you-go-lead-generation-apis/install-datablist-api-skill-claude.png)\n\nConfirm the marketplace if prompted, then choose an installation scope. On earlier versions, follow the [two-step installation instructions](https://github.com/datablist/agent-skills#claude-code).\n\n### Install in Codex {#install-in-codex}\nPaste this prompt into Codex.\n\n<div format=\"template\" title=\"Install the Datablist API skill in Codex\" copy=\"true\">\n<p>$skill-installer Install the datablist-api skill from https://github.com/datablist/agent-skills/tree/main/skills/datablist-api</p>\n</div>\n\n![Codex prompt asking skill-installer to install the Datablist API skill](/howto_images/pay-as-you-go-lead-generation-apis/install-datablist-api-skill-codex.png)\n\nIf the skill does not appear after installation, restart Codex.\n\nOther agents with local file access can copy the complete `skills/datablist-api` folder when supported. Preserve its `SKILL.md` and `references` folder.\n\n## Company Name to Domain API {#company-name-to-domain-api}\nThe [Company Name to Domain API](/apis/company-name-to-domain) takes a company name, with optional country context, and returns its domain, website URL, and match confidence. Use it when a lead list has company names but no domains. Short or ambiguous names need country context and confidence review. Dataset matching and Google search also have different billing rules. The [Python walkthrough](/how-to/find-company-websites-python-api) shows the complete integration.\n\n### Pricing {#pricing}\nA successful dataset match starts at 1 credit, or about $0.001 at the base rate. A Google-searched company name uses 2.5 credits, or about $0.0025, whether or not the search finds a domain.\n\n## LinkedIn Profile Finder API {#linkedin-profile-finder-api}\nThe [LinkedIn Profile Finder API](/apis/linkedin-profile-finder) takes a person's name plus company, school, city, or another useful keyword. It returns a likely public LinkedIn profile URL with the page title, snippet, and match confidence. The result is a candidate rather than proof of identity, so review the context before using the URL in another lookup. The [Python profile-finding guide](/how-to/find-linkedin-profiles-python-api) shows the complete integration.\n\n### Pricing {#pricing-1}\nEach searched name uses 2.5 credits, estimated at $0.0025 at the base rate, whether or not a profile is found. Rows without a usable name are not searched.\n\n## LinkedIn Profile Scraper API {#linkedin-profile-scraper-api}\nThe [LinkedIn Profile Scraper API](/apis/linkedin-profile-scraper) takes a standard public LinkedIn URL or Sales Navigator lead URL and returns structured profile data when available. This can include identity, headline, location, current role and company, experience, education, skills, languages, and connections. It can also normalize a Sales Navigator URL before a personal-email or phone lookup. Cached records may omit optional fields, and an unsuccessful lookup may still use credits. The [Python profile-scraping guide](/how-to/scrape-linkedin-profiles-python-api) shows the complete integration.\n\n### Pricing {#pricing-2}\nAn accepted cached profile starts at 20 credits, estimated at $0.02. A fresh profile starts at 25 credits, estimated at $0.025.\n\n## Waterfall Email Finder API {#waterfall-email-finder-api}\nThe [Waterfall Email Finder API](/apis/waterfall-email-finder) takes either a person's name plus company or domain, or a standard public LinkedIn profile URL. It returns a work email with status and provider details when found. A known domain gives the search stronger company context than a bare company name. Review the email status separately from the address before outreach. The [Python work-email guide](/how-to/find-work-emails-python-api) covers both input routes.\n\n### Pricing {#pricing-3}\nA found work email uses 25 credits, estimated at $0.025 at the base rate. No-result rows are not charged under the managed-credit route.\n\n## Waterfall Personal Email Finder API {#waterfall-personal-email-finder-api}\nThe [Waterfall Personal Email Finder API](/apis/waterfall-personal-email-finder) takes a standard public LinkedIn person-profile URL and returns a personal email when found. Sales Navigator URLs must first be normalized with the separately billed profile scraper. Use this contact channel only when it fits the intended, consent-aware workflow. The [Python personal-email guide](/how-to/find-personal-emails-linkedin-python-api) shows the complete integration.\n\n### Pricing {#pricing-4}\nA found personal email uses 75 credits, estimated at $0.075 at the base rate. Profiles without a result are not charged.\n\n## Waterfall Phone Finder API {#waterfall-phone-finder-api}\nThe [Waterfall Phone Finder API](/apis/waterfall-phone-finder) takes a standard public LinkedIn person-profile URL and returns a phone number, country, and provider when found. Sales Navigator URLs need normalization first. At 500 credits per found number, this endpoint fits reviewed contacts with a defined reason to call. The [Python phone-finding guide](/how-to/find-phone-numbers-linkedin-python-api) shows the complete integration.\n\n### Pricing {#pricing-5}\nA found phone number uses 500 credits, estimated at $0.50 at the base rate. No-result searches and accepted cached results are not charged under the documented route.\n\n## Lead generation workflow examples for AI agents {#lead-generation-workflow-examples-for-ai-agents}\nPick a workflow and add your CSV path to the prompt. The agent looks at the list and suggests which columns to use, how many rows to test, and where to save a new CSV. It gives you a credit estimate and asks about any decisions that need your input before you confirm the run.\n\nTo write your own workflow prompt, see these [AI agent prompt rules](/how-to/rules-writing-prompts-ai-agents).\n\n### You have LinkedIn profiles and want work email addresses {#you-have-linkedin-profiles-and-want-work-email-addresses}\nStart with a CSV containing a stable ID and a standard public LinkedIn profile URL. Ask the agent to run Waterfall Email Finder and append the work email, email status, provider, credits used, and error. Rows without a result should remain unresolved. The agent should not switch to personal-email or phone lookup.\n\n<div format=\"template\" title=\"Find work emails from LinkedIn profiles\" copy=\"true\">\n<p>Use the Datablist API skill to find work emails for the LinkedIn profiles in this list. Ask before spending credits.</p>\n<p><strong># List to process</strong><br />[Local CSV path]</p>\n</div>\n\n### You have names and companies and want LinkedIn profiles {#you-have-names-and-companies-and-want-linkedin-profiles}\nUse LinkedIn Profile Finder when the list contains names plus company, school, city, or another useful matching clue. The agent can append the candidate URL, page title, snippet, confidence, credits used, and any error. Flag weak or conflicting matches for review.\n\n<div format=\"template\" title=\"Find LinkedIn profiles for named contacts\" copy=\"true\">\n<p>Use the Datablist API skill to find LinkedIn profiles for the people in this list. Use the company or other context in the file and flag uncertain matches. Ask before spending credits.</p>\n<p><strong># List to process</strong><br />[Local CSV path]</p>\n</div>\n\n### You have company names and contacts and want work emails {#you-have-company-names-and-contacts-and-want-work-emails}\nUse Company Name to Domain for rows with a missing domain. Review the proposed domains, website URLs, and confidence before sending accepted matches and named contacts to Waterfall Email Finder. Rejected and unresolved rows stop there. The final CSV can include the work email, email status, and provider, with credits used and any errors from both steps.\n\n<div format=\"template\" title=\"Resolve company domains and find work emails\" copy=\"true\">\n<p>Use the Datablist API skill to find work emails for this list. Resolve missing company domains first and let me review those matches before the email lookup. Ask before each paid step.</p>\n<p><strong># List to process</strong><br />[Local CSV path]</p>\n</div>\n\n### You have Sales Navigator URLs and want selected phone numbers or personal emails {#you-have-sales-navigator-urls-and-want-selected-phone-numbers-or-personal-emails}\nPersonal Email Finder and Phone Finder require standard public LinkedIn URLs. Use LinkedIn Profile Scraper to get those URLs and any available profile details, then review the matches. Choose the rows to continue with and one contact channel. The agent can add the result and provider where available to the new CSV, with credits used and any errors for each step.\n\n<div format=\"template\" title=\"Normalize Sales Navigator URLs for selected contact lookups\" copy=\"true\">\n<p>Use the Datablist API skill to normalize the Sales Navigator URLs in this list. After I review the matches, ask which rows to use and whether to find personal emails or phone numbers. Ask before each paid step.</p>\n<p><strong># List to process</strong><br />[Local CSV path]</p>\n</div>\n\nFor a spreadsheet interface instead of an agent-driven API workflow, compare these [bulk enrichment methods](/how-to/bulk-enrichment-methods).\n\n## Estimate the cash budget before a run {#estimate-the-cash-budget-before-a-run}\nThe base comparison uses `$1 ÷ 1,000 credits = $0.001 per credit`. Multiplying the documented credit rate by $0.001 gives the estimated consumption value shown below.\n\n<div class=\"preview-table\">\n<div class=\"table-wrapper\">\n<table>\n<thead>\n<tr>\n<th>API route</th>\n<th>Credits</th>\n<th>Base estimate</th>\n<th>What 1,000<br /> credits can fund</th>\n<th>Charge on miss?</th>\n</tr>\n</thead>\n<tbody>\n<tr><td>Company domain, dataset</td><td>1 per successful match</td><td>$0.001</td><td>Up to 1,000 charged matches</td><td>No charge without a dataset success</td></tr>\n<tr><td>Company domain, Google</td><td>2.5 per name searched</td><td>$0.0025</td><td>400 searches</td><td>Yes</td></tr>\n<tr><td>LinkedIn profile finder</td><td>2.5 per name searched</td><td>$0.0025</td><td>400 searches</td><td>Yes</td></tr>\n<tr><td>LinkedIn profile scraper</td><td>20 per accepted cached profile or 25 per fresh lookup</td><td>$0.02 or $0.025</td><td>50 cached or 40 fresh</td><td>Possible</td></tr>\n<tr><td>Work email finder</td><td>25 per email found</td><td>$0.025</td><td>40 found emails</td><td>No on the managed-credit route</td></tr>\n<tr><td>Personal email finder</td><td>75 per email found</td><td>$0.075</td><td>13 found emails, with 25 credits left</td><td>No</td></tr>\n<tr><td>Phone finder</td><td>500 per number found</td><td>$0.50</td><td>2 found numbers</td><td>No; accepted cache is also uncharged on the documented route</td></tr>\n</tbody>\n</table>\n</div>\n</div>\n\nThese totals are deterministic calculations from the documented credit rates. They are not coverage, accuracy, or runtime benchmarks. A found-result API might need more than 40 inputs to produce 40 found work emails, while a lookup-based route can consume credits even when no result is returned.\n\nCash purchase and credit consumption are separate. The one-time [API Pay-As-You-Go](/pricing#api-offer-heading) entry purchase costs $1 or €1 and includes 1,000 trial credits. It is not a renewable 1,000-credit package. Later API-only top-ups start at 100,000 credits for $100 or €90. Purchased top-up credits do not expire, and larger packs can lower the unit cost.\n\nFor example, 40 found work emails consume 1,000 credits at 25 credits each. That is a $1 consumption estimate at the base rate. After the entry pack, the next cash purchase is still the applicable top-up package rather than a $1 bundle for another 40 results.\n\n## Failure cases, limits, and validation checklist {#failure-cases-limits-and-validation-checklist}\nMost expensive mistakes are routing mistakes rather than code errors. Give the agent an explicit rule for each case:\n\n- **Missing required input:** Keep the row unsearched and record which field is missing.\n- **Ambiguous company or person:** Add country, company, school, city, snippet, or confidence review. Do not accept the first URL automatically.\n- **Sales Navigator URL used for personal email or phone:** Normalize it with Profile Scraper first and account for that separate charge.\n- **Work email returned without a useful status:** Keep `emailFound` and `emailStatus` separate. Route uncertain addresses to review.\n- **Unexpected output key appears:** Preserve the complete output object. A parser should tolerate additional fields instead of dropping the result.\n- **Lookup returns no result:** Retain the row's status, credit usage, and error. Do not invent a reason for the missing result.\n\n> ⚠️ **Do not resubmit after a timeout**\n>\n> Recover with the saved task ID and continue polling that task. A second POST can create duplicate paid work.\n\nBefore the agent updates a CRM, export, or outreach file, check the following:\n\n- Every source row has a stable and unique `inputId`.\n- The request uses a supported URL type and enough company or name context.\n- The task reached a terminal state, and every result page was fetched.\n- Per-input `status`, confidence, or email status was reviewed when present.\n- `creditsUsed` agrees with the selected route and billing condition.\n- `error` remains attached to failed rows.\n- Duplicate domains, profile URLs, emails, and phone numbers were reviewed.\n- The selected contact channel and consent expectations fit the downstream action.\n\nThis guide uses verified documentation, public schemas and examples, and explicit cost formulas. It does not claim a first-person run, measured coverage, or observed accuracy.\n\n## How the shared Datablist API workflow runs {#how-the-shared-datablist-api-workflow-runs}\nThe installed skill handles the API steps after you confirm the run. The agent creates the task, saves its task ID, waits for completion, and fetches every result page. It joins each result to its source row using a stable ID.\n\nReview the returned value with its `status`, `creditsUsed`, and `error` before sending it to the next step. If a request times out, ask the agent to resume the saved task. Submitting the same paid work again can create a duplicate task.\n\nInstall the official [Datablist API skill](https://github.com/datablist/agent-skills), choose one workflow above, and test it on a small input file with a clear credit limit.\n"
}