“API: Errors and Troubleshooting”

This guide explains the Ranki API error format and how to fix the most common problems.

Error format

When a request can’t be processed, the API returns an object with a descriptive message:

{
  "error": "Mensaje descriptivo del error"
}

If you’re out of credits, the response may also include credits_remaining.

HTTP codes

Code Common cause Fix
400 Bad Request Missing parameters or invalid format. Check the endpoint parameters.
401 Unauthorized The key wasn’t sent, is incorrect or was revoked. Check or create a key at app.ranki.co/api/.
402 Payment Required Insufficient API credit balance. Wait for your plan’s monthly quota to renew, or upgrade your plan for more credits each month.
403 Forbidden The feature isn’t included in your plan. Check your subscription features.
404 Not Found The resource doesn’t exist in your account. Call the matching list endpoint first.
500 Internal Error Temporary server error. Retry the request.

Common problems

401 Unauthorized or Invalid credentials

Insufficient API credits

  • Check your balance with api_credit_balance.
  • If it’s at zero, your balance resets to your plan’s quota at the next monthly renewal. If you need more credits each month, upgrade your plan on Pricing.

Site Audit returns an empty list

First run an OnPage crawl in Ranki for the domain you want to query.


OAuth connection issues with Cursor or Claude are covered on the separate MCP Server.