Account
Get credit balance
Get the workspace's spendable credits, split into monthly plan credits and purchased credits.
GET
https://api.rankparse.com/v1/creditsFreeAPI keyReturns the credit balance of the key's workspace. It is the cheapest way to check before an expensive call. Subscribers also see how much of the total is the monthly plan quota, which expires, and how much is purchased credits, which never expire. See Two credit buckets.
Response
creditsintegerTotal you can spend now: plan_credits + purchased_credits.
plan_creditsintegerCredits left from the current Pro or Agency plan grant. Spent first. 0 without a subscription or once the grant has expired.
purchased_creditsintegerCredits from credit packs and the lifetime deal. They never expire.
plan_credits_expire_atinteger | nullWhen the plan credits expire, Unix milliseconds. null when there are no live plan credits.
Errors
| HTTP | Code | When |
|---|---|---|
| 401 | invalid_api_key | Missing, invalid or revoked API key. |
| 403 | capability_missing | Client roles may not view credits. |
Related
MCP tool: check_credits (no arguments).