Error Codes

All error responses use the standard envelope with error, code, and status fields.

CodeHTTP StatusMeaning
INVALID_COUNTRY400Country code is not supported. Use GH, NG, KE, ZA, or RW.
INVALID_COUNT400Count is out of range. Must be between 1 and 100.
RATE_LIMITED429Too many requests. Slow down or use an API key for higher limits.
INVALID_API_KEY401API key is missing or invalid.
DATASET_REQUIRES_KEY403The /v1/dataset endpoint requires a valid API key.
INTERNAL_ERROR500Something went wrong on the server. Please try again.