Skip to content

B2B Leads API Credit Consumption and Cost Control: Budgeting Programmatic Lead Extraction at Scale

Budget Dievio API usage by the operation that is billed.

Dievio Team · Growth Systems · October 21, 2026 · 4 min read

Violet screenprint of a hand turning a green valve: slips labeled FORECAST spray out while a thin stream feeds a stack labeled AUDIT; text reads CONTROL THE CREDIT BURN.

Key points

  • Budget public search at one API credit per returned record.
  • Keep API balance separate from workspace search and saved-list downloads.
  • Measure accepted output and explain repeated retrieval.

Forecast API credit consumption from the operation that is actually billed. For Dievio public lead search, the relevant event is a returned record, not a generic request, an exported file or a selected CRM field.

Keep API usage separate from workspace search and saved-list downloads. A workflow can include several operations with different rules; treating all of them as “exports” makes both forecasts and incident reviews unreliable.

Start with the correct cost events

Dievio operations that should remain separate in a forecast
OperationRule to usePlanning implication
Count previewFree count of matching contact recordsExplore segment size before retrieving contacts
New workspace retrievalUses the applicable workspace search creditsBudget it in the workspace balance
Public API searchOne API credit per record returned by a new searchUse the separate API balance and bound the job
Replay a completed Public Search pageNo additional API credits with the same key and parameters inside the replay windowSave one Idempotency-Key per logical page
Saved-list downloadNo additional search-credit chargeReuse the accepted saved list when another download is all that is needed
Other documented operationsCheck that operation's current billing rulesDo not invent a lookup premium or field-specific surcharge

Consult the API documentation and current pricing for the operation you will use. A workspace subscription balance and API credit balance are separate.

Calculate retrieval credits without inventing savings

Illustrative calculation: if a public-search job returns 120 records across its completed calls, the search retrieval uses 120 API credits. If another request retrieves 30 overlapping records, those returned records can consume another 30 credits.

If a response is lost, retry with the page’s original Idempotency-Key and parameters within one hour of completion. A response with Idempotency-Replayed: true uses no additional credits. Destination deduplication can prevent repeat writes. Credit usage follows the API operation recorded in your balance. Read the Search API retry rules.

Set a bounded scope before the run

  1. Define the audience. Keep supported filters and required research separate.
  2. Preview matching coverage. Use the count to assess scope, not to certify fit or deliverability.
  3. Choose a retrieval cap. Request the amount the team can review and use.
  4. Record the approved budget. Include the balance, owner and pause condition.
  5. Plan recovery. Persist successful responses so a later CRM failure need not trigger another search.

Public search uses _page, _per_page and max_results. The result cap bounds a job; it is not a replacement for monitoring actual returned records and repeat attempts. See the pagination guide for checkpoint handling.

Track usage at a useful level

Store a job reference, client or campaign context, request scope, returned row count and destination outcome. Keep unsuccessful and uncertain source attempts visible rather than silently dropping them from the report.

Where balance or transaction evidence is available, reconcile it with the job record. Your calculated usage and an observed account balance answer different questions; discrepancies need investigation rather than a guessed charge.

  • Separate new source retrieval from transformation and delivery.
  • Explain repeated searches and overlapping audiences.
  • Record who approved a live diagnostic request or a repeat after uncertainty.
  • Keep credentials and unnecessary contact fields out of usage logs.

Measure accepted output as well as raw rows

For a defined completed job, divide its observed retrieval credits by the unique records that meet the stated acceptance criteria. Label the result “credits per accepted record”; do not present it as cost per opportunity or revenue ROI.

If no records are accepted, the ratio is undefined, not zero. Report the spend and the failed acceptance outcome directly. To calculate monetary cost, use the actual purchase and allocation method, including any relevant discounts or unused balance, rather than inventing a universal credit price.

Fix the source of avoidable repeat work

PatternControl
CRM failure restarts retrievalRecover delivery from stored results
Overlapping jobs run unnoticedReview audience overlap and the intended refresh purpose
Exploration becomes a large paid pullPreview first and set an explicit result cap
Retries continue after a credit errorPause for account and scope review
Operators only need another copy of a saved listUse the saved-list download operation

For agency reporting, connect this record to client credit management and billing transparency. Make provider usage, preparation and delivery work visible as separate parts of the service.

Keep reading

Build your first list.

100 free credits. No credit card required.

Start free