Cricket Database
0 of 50 calls today
Get a free API key Sign in Dashboard Upgrade

Errors

One error shape, nine codes, and what to do about each.

Every error has the same shape:

{"error": {"code": "upgrade_required", "message": "...", "plan": "archive", "docs": "https://cricketdatabase.com/documentation/guides/plans"}}

Decide what to do from code, which does not change; message is for people and may be reworded.

StatusCodeWhat to do
400bad_requestFix the value the message names; a key in the address, or a method other than GET, also answers this
401unauthorizedSend a current key; the message says whether it was missing, unknown or revoked
403upgrade_requiredplan names the plan that opens it
404not_foundCheck the address; search finds the right one
404no_ball_by_ballThe match is held with its scorecard but not its balls (coverage scorecard): the scorecard call answers it, the deliveries, overs and partnerships calls do not; not counted against your day
404no_scorecardThe match is held without its scorecard (coverage totals or result_only): ask for the match itself, which answers with its innings totals or its result; not counted against your day
422unknown_parameterDrop or correct the parameter named; allowed lists the ones this endpoint takes
429rate_limitedToo fast: wait for Retry-After, a few seconds
429quota_exceededThe day's calls are used: wait for midnight UTC, or move to a larger plan
500server_errorTry again later; it has been logged