Overview
The Per-Call Credit Usage feature lets you see exactly how many credits a request consumed, returned inline with that request’s response. This gives you call-level visibility into consumption so you can track, attribute, and optimize your usage in real time, without making a separate call to the Credit Consumption Aggregation endpoint. The feature is opt-in. It is enabled per request via a request header and has no effect on existing integrations that don’t send the header. Why is this useful?- Real-time cost attribution — Know the cost of each call as it happens, without polling an aggregation endpoint.
- Usage optimization — Compare the credit cost of different filters, modes, and page sizes to tune your queries.
- Accurate downstream reporting — Tooling and integrations (such as MCP-based agents) can report precise resource usage back to the caller.
Enabling this feature does not consume additional credits. It only reports the credits already deducted for the request you made.
Enabling Per-Call Credit Usage
Opt in by sending the following request header:true, the response includes an additional credit_usage object alongside the standard payload. When the header is omitted or set to any other value, the response is returned unchanged.
Request Header
Set to
true to include the credit_usage object in the response.Any other value, or omitting the header entirely, leaves the response unchanged. The header is case-insensitive in its value (true / True).Response
When opted in, the standard response payload is returned with one additional top-level field:Credit consumption details for this specific API call. Present only when the request includes
credit-usage: true.credit_usage.total_results reports the number of records returned and billed in this call, which is not the same as the top-level total_results field that some endpoints return. The top-level total_results reflects the total number of records that match your filters across all pages, while credit_usage.total_results reflects only what this single response returned.Examples
Request
Response
Behavior
| Header value | Response behavior |
|---|---|
credit-usage: true | Standard payload plus the credit_usage object. |
| Any other value | Standard payload, unchanged. No credit_usage object. |
| Header omitted | Standard payload, unchanged. No credit_usage object. |
Supported Endpoints
Thecredit-usage header is supported across the credit-consuming partner service endpoints, including:
- Businesses — Fetch Businesses, Match Businesses, Fetch Businesses Statistics, Business Enrichments, and Business Events.
- Prospects — Fetch Prospects, Match Prospects, Prospect Enrichments, and Prospect Events.
Related
- Tracking Your Credits — Monitor overall usage in the Admin Portal.
- Get Credit Consumption Aggregation — Retrieve aggregated consumption across time ranges or endpoints.