Skip to main content

Per-event pricing

Jobs are billed per event in credits (1 credit = 1 USD). The table below lists the default unit prices. Your account’s active pricing rules at run time are authoritative — the estimate endpoint returns the exact unit_prices used for a given job. Charges are computed on the data actually stored. A website_filter drops non-matching businesses before they are written, so it also removes their place_scraped, contact_details, review, and image charges — you pay only for matching leads plus the 0.001 per-match filter fee.

GET /api/v1/credits/balance

Return the authenticated user’s current credit balance.

Example response

Credit values are returned as decimal strings (e.g., "25.123456") to preserve precision. Parse them as decimals, not as floating-point numbers.

GET /api/v1/credits/history

Return paginated credit transaction history.

Query parameters

Common transaction types:
  • purchase
  • consumption
  • bonus
  • refund
  • adjustment
In some edge cases you may also see refund_deficit or deficit_paydown in the response history.

Example response

POST /api/v1/credits/checkout-session

Create a Stripe Checkout session to buy credits.

Request body

Rules:
  • credits must be a whole positive integer
  • Maximum credits per checkout session is 10000
  • currency currently supports USD only

Success response

Redirect the user to url to complete the purchase.

POST /api/v1/credits/reconcile

Confirm a completed checkout session against the authenticated user.

Request body

Returns 204 No Content on success. Use this after the user returns from Stripe if you want to refresh credits immediately instead of waiting for normal background settlement.