“API: api_credit_balance”
Checks the authenticated Ranki user’s remaining API credit balance for the month.
- Cost: 0 credits (free balance check).
- Module: Keyword Tools
- REST endpoint:
GET https://api.ranki.co/v1/credits/balance
What it’s for
This tool lets you see at any time how many API credits are available in your account for on-demand keyword research operations (such as keyword suggestions, domain metrics, SERP Explorer or Keyword Gap).
If your credits reach zero, any call to a tool that requires a balance returns an error 402 Payment Required. You can check this balance before launching automated workflows to make sure you have enough quota. Your balance resets to your plan’s quota every month.
API parameters
- Operation:
api_credit_balance - Parameters: None.
Endpoint
Call the endpoint directly with your API key:
GET https://api.ranki.co/v1/credits/balance
Authorization: Bearer rk_TU_CLAVE_AQUI
Example with curl
curl -s -X GET
-H "Authorization: Bearer rk_TU_CLAVE_AQUI"
"https://api.ranki.co/v1/credits/balance"
Sample response
{
"credits_remaining": 250,
"cost_per_call": 1
}
Response fields
| Field | Type | Description |
|---|---|---|
credits_remaining | integer | Number of API credits available in the current month. |
cost_per_call | integer | Standard base cost per request for most keyword tools (1 credit). |
Monthly credit quota
API credits are a monthly quota in your plan: Essential 2,000, Advanced 5,000, Scale 12,000 and Enterprise 30,000. They renew every month and unused credits don’t roll over. If you need more credits each month, see the Ranki plans.