Skip to content
Dievio/API/Lead Generation API

A lead generation API for repeatable B2B prospect workflows

Build API-backed lead search, list creation, enrichment, and routing workflows after validating the ICP with Dievio dashboard filters and preview counts.

Page through a bounded lead list

Send this JSON to POST https://dievio.com/api/public/search with your Dievio key in the X-API-Key header. This example asks for up to three sales leaders at stripe.com across pages of two.

First page request body

{
  "company_websites": ["stripe.com"],
  "job_titles": ["Head of Sales", "VP of Sales", "Sales Director", "Director of Sales"],
  "_include_raw": false,
  "_page": 1,
  "_per_page": 2,
  "max_results": 3
}
  • When has_more is true, use next_page as the next _page. Keep the filters, _per_page and max_results fixed. With at least three matches, this example returns two rows on page one and one row on page two. Stop when has_more is false.
  • Generate and save a different Idempotency-Key for each page before sending it. Retry that same request body with the same key within one hour. If HTTP 409 includes Retry-After, wait as directed before retrying. A replay uses no additional API credits.
  • In your n8n workspace, use HTTP Request to run the search and Split Out to turn preview_data into individual items. Track completed writes separately so an API retry does not append the same rows twice.

Build the right list for this audience

A lead generation API is useful when prospect list creation needs to run inside an internal tool, agency workflow, product feature, CRM process, or scheduled job. Dievio supports API access with separate API credit top-ups so repeatable lead workflows can be managed independently from dashboard usage.

  • Agencies generating recurring lead lists for many clients.
  • RevOps teams building internal prospecting and routing tools.
  • Products that need lead generation inside customer workflows.
  • Developers turning validated ICP filters into repeatable API calls.
People filters
Title, seniority, department, geography
Company filters
Industry, employee size, revenue, domain
Result controls
Email status, phone status, LinkedIn URL, caps

From filters to a useful list

01

Validate the ICP manually

Use dashboard filters and preview counts to confirm the segment before writing API logic around it.

02

Build repeatable search inputs

Turn role, company, region, data-status, and result-limit rules into controlled API request patterns.

03

Route lead records downstream

Send returned records to CRM import, campaign queues, client exports, scoring systems, or product workflows.

Lead generation API checklist

Move stable search patterns into API workflows after the list logic has been tested.

  • Start with a saved ICP template and known field requirements.
  • Set result caps and dedupe rules before syncing downstream.
  • Track credit usage, returned records, misses, and rejected records per workflow.

API is for repeatability, not guesswork

The strongest API workflows start after a team already understands the buyer persona, field requirements, and acceptable result volume.

Separate API credits help with automation control

Automated lead generation can consume data quickly. Dievio keeps API credits separate from dashboard subscription credits so usage can be forecast and monitored.

How credits work

Search uses one API credit per returned contact. A successful replay within the idempotency window uses no additional credits. API and workspace balances are separate.

Questions about this workflow

Does Dievio provide a lead generation API?

Yes. Dievio provides API access with separate API credit top-ups for B2B lead search and data workflows.

Can I use the API for recurring lead lists?

Yes. Recurring agency lists, CRM enrichment jobs, product lead lookup, and internal prospecting tools are common API workflow patterns.

Should I use dashboard search or API first?

Use dashboard search and preview counts first when the ICP is uncertain. Move to API once the segment and output requirements are stable.

Content reviewed: November 2026

The pagination example uses the public Dievio Search API and its per-page retry rules.

Dievio API overviewDievio find leadsDievio pricing

Connect your automated lead search

Create an API key and review the API credits available for your scheduled or n8n workflow.

Open API settings