Skip to main content
GET
Credit Analytics summarises your workspace’s credit spend over the last days: by product area, by origin, by lookup, and per day. Top-ups, refunds, and bonuses aren’t counted.

Authentication

Send your API key as Authorization: Bearer enc_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.

Request

integer
default:"30"
The trailing window, from 1 to 365 days.

Example request

Example response

This route returns the analytics object directly, without the {success, result, message} envelope. This example is shortened: lookups and daily list every lookup and every day.

Response

integer
Credits spent in the window.
object[]
Spend by product area, each with key, label, and value.
object[]
Spend by origin: dashboard, bulk, api, ai_chat, and automations.
object[]
Spend by lookup, each with key, label, and value: email_validity, email_identity, email_breaches, email_gender, password_breaches, phone, and other. Malware scans are counted in other.
object[]
One entry per day, oldest to newest, each with date and used. Days with no spend are included with used: 0.