Skip to content
Dievio/API/B2B Leads API

A B2B leads API for search, enrichment, and outbound workflows

Dievio API access lets teams build lead search and enrichment workflows with separate API credit top-ups, structured filters, and B2B contact data for custom systems.

Run a one-record search

Set DIEVIO_API_KEY to your API key in your shell. This request searches for a founder at stripe.com and caps the response at one contact.

Request

curl -X POST https://dievio.com/api/public/search \
  -H "Authorization: Bearer $DIEVIO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "company_websites": ["stripe.com"],
    "job_titles": ["Founder"],
    "_include_raw": false,
    "_page": 1,
    "_per_page": 1,
    "max_results": 1
  }'

Illustrative response excerpt

{
  "success": true,
  "count": 1,
  "preview_data": [{ "job_title": "Founder", "work_email": null }],
  "has_more": false,
  "next_page": null
}
  • Read the returned rows from preview_data. Contact fields can be null. A successful response with one record uses one API credit. A successful response with zero records uses zero credits.
  • To check the size of an audience before paying for contact rows, run a count preview in the dashboard.
  • HTTP 401 means the API key is missing or invalid. HTTP 402 means the account needs more API credits.

Build the right list for this audience

A B2B leads API is useful when lead search, enrichment, or list generation needs to happen inside a product, CRM workflow, internal tool, or recurring data process. Dievio keeps API usage separate from dashboard subscription credits.

  • Developers building internal lead search tools.
  • Agencies automating recurring list generation.
  • RevOps teams connecting B2B lead data to custom workflows.
  • Products that need structured contact data as part of a workflow.
People filters
Title, seniority, department, location
Company filters
Industry, employee size, revenue, domain
Data filters
Email status, phone status, LinkedIn URL

From filters to a useful list

01

Define search inputs

Use filters such as role, seniority, location, company size, industry, domain, email status, and phone status.

02

Run API searches with credit control

API credits are separate from dashboard subscription credits, which keeps automated usage easier to monitor.

03

Route results into your system

Use returned lead data for enrichment, scoring, routing, prospect list creation, or outbound workflow handoffs.

API implementation guardrails

Treat the API as a production data workflow with limits and monitoring, not just a button that exports more leads.

  • Define required fields and fallback behavior before writing the integration.
  • Set caps per company, segment, or customer so automated usage stays predictable.
  • Log returned records, credit usage, dedupe decisions, and downstream sync status.

Use the dashboard for exploration, API for repeatability

Teams can test segments manually in the dashboard, then move repeatable workflows into API calls once the filters and output requirements are clear.

Keep API usage separate from subscription credits

Dievio API credit top-ups are separate from dashboard subscription credits. That separation helps teams control automated usage and forecast cost.

How credits work

Search uses one API credit per returned contact. Count previews use zero credits and return no contact rows. API and workspace balances are separate.

Questions about this workflow

Does Dievio offer API access for B2B leads?

Yes. Dievio offers API access with separate API credit top-ups for teams that want to build B2B lead search and data workflows.

Are API credits separate from dashboard credits?

Yes. Subscription credits are used in the dashboard, while API credits are used through API keys.

What can a B2B leads API be used for?

Common use cases include lead search, enrichment workflows, CRM completion, scoring, routing, recurring list generation, and custom outbound tools.

Content reviewed: November 2026

The search example uses the public Dievio Search API. API usage is billed separately from dashboard searches.

Dievio API overviewDievio pricing

Run an authenticated lead search

Create an API key and check your separate API credit balance before sending a request.

Open API settings