Credit balance
GET/api/v1/creditsMCP get_credit_balanceFree
Remaining credits on the account that owns the API key. Never costs a credit.
Parameters
This endpoint takes no parameters.
Request
curl "https://seo-api.org/api/v1/credits" \
-H "Authorization: Bearer YOUR_API_KEY"Response
Returns { creditsRemaining }. The CLI's login uses it to check a key.
{ "ok": true, "data": { "creditsRemaining": 99 } }Errors
SEO_API.MISSING_API_KEY
HTTP401
MeaningNo Authorization header or x-api-key header.
SEO_API.INVALID_API_KEY
HTTP401
MeaningThe key does not exist or was revoked.
SEO_API.INVALID_DOMAIN
HTTP400
MeaningThe domain parameter is missing or is not a domain (IPs are rejected).
BILLING.INSUFFICIENT_CREDITS
HTTP402
MeaningThe account has no credits left. Repeat lookups within 24 hours still work.
SYSTEM.INTERNAL_SERVER_ERROR
HTTP500
MeaningSomething failed on our side. Retry with backoff.
Call it over MCP
Tool get_credit_balance. Arguments and result match the REST call.
{
"name": "get_credit_balance",
"arguments": {}
}Call it from the CLI
npx @seo-api/cli credits