Rankd for Developers
Checking API…

API

Health check

GET/v1/health
No API keyRate-limited

Whether the API is up and can reach its database. This site’s status indicator uses it. It counts toward your rate limit like any other request.

Try it#

Sends a real request to the production API through this site. No credentials are used, so you see exactly what anyone would.

Request#

curl "https://api.rankdmusic.app/v1/health"

Response#

A successful response is { "data": …, "meta": … }. data is a Health, and meta is a Meta.

FieldTypeDescription
databasealwaysstringWhether the API could query its database.
One of: ok, error

Responses#

200The API answered. database says whether it could query its data.

Captured from production: GET /v1/health

200 response
{
  "data": {
    "database": "ok"
  },
  "meta": {
    "apiVersion": 1,
    "migrationPhase": 3,
    "sourceOfTruth": "per_account"
  }
}
429Too many requests this minute. Wait Retry-After seconds, then try again.

Headers: Retry-After Seconds to wait. Always 60.

429 response
{
  "error": "rate limited"
}
503The API is running without its database.
503 response
{
  "error": {
    "code": "database_unavailable",
    "message": "The Rankd database is not bound to this deployment."
  }
}
↑ ↓ to move↵ to open/ or ⌘K to search