Credits
Xquik credit balance, API usage & billing data
Retrieve the available API credit balance, lifetime purchased and used totals, and automatic top-up settings for an Xquik account. The call is free to run.
- 200
- 401
- 429
GET
Xquik credit balance, API usage & billing data
When to read credits
This route is read-only. It returns current balance, lifetime totals, and automatic top-up settings. Use purchase and status routes only after deciding to add credits.Check credits before tweets, followers, or monitors
Read the current balance before starting a large tweet search, follower export, reply export, active monitor, or X write. Compare the balance with the route’s documented credit cost. Reduce the requested result count when the available balance cannot cover the full job. Keepbalance, lifetime_purchased, and lifetime_used as strings. These
values can exceed JavaScript’s safe integer range. Convert them with a bigint
library only when the client supports exact arithmetic.
Review automatic top-up fields separately. auto_topup_enabled reports whether
automatic funding is active. The threshold and dollar amount describe when and
how much the account adds. auto_topup_stopped is true when declined charges
stopped it. Ask the user to update the card in the dashboard to restart it.
This endpoint never charges a payment method. Use standard top-up for a hosted
checkout. Use quick top-up only after the account has a saved payment method.
Poll standard checkout status with the checkout session ID.
Free. This endpoint does not consume credits.
Headers
string
required
Your API key. Session cookie authentication is also supported.
Response
200 OK
number
Dollar amount charged when automatic top-up runs.
boolean
Whether automatic top-up is enabled.
boolean
Whether declined charges stopped automatic top-up while it is enabled. It stops after 3 declines
in a row on one card. A paid top-up, a paid plan renewal, or the next automatic top-up on a new
card clears it.
string
Credit balance threshold that triggers automatic top-up when enabled (Bigint string).
string
Current credit balance (Bigint string to preserve precision above Number.MAX_SAFE_INTEGER).
string
Total credits purchased (Bigint string).
string
Total credits consumed (Bigint string).
401 Unauthenticated
429 Rate limited
Retry-After header before retrying.
Related. Top Up Credits · Get Top-Up Status · Quick Top-Up · Billing Guide