Skip to content

APIs and SDKs

The 221 API and its SDKs at a glance. Find a route, get a key, make a first call, then pick an SDK.

The 221 API publishes reference data to build in Senegal: geography down to the commune, public holidays, banks, operator prefixes, the API directory and regulatory procedures, plus a few tools (business days, amounts in FCFA). It answers in JSON, can be called without a key within a daily limit, and with a free key beyond that.

Where to start

Base URL

https://apps.orvlabs.com

The complete OpenAPI 3.1 document is served by the API at /v1/openapi.json.

API reference

Each route: parameters, body, example JSON responses, errors, call examples in cURL, JavaScript, Python, PHP, Go, Dart, Java and C#, and a "Try" button.

Quotas

CallDaily quotaCounted per
Without a key100 callsIP address
With a key1,000 callskey

The counter resets at midnight GMT (Senegal time). Each counted response carries the RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers.

Errors

All errors share the same shape: a stable code to test in your code (not the HTTP status), a readable message, a request_id (also in the X-Request-Id header), fields when parameters are rejected, and the members specific to the code at the same level.

400 response
{
  "code": "INVALID_REQUEST",
  "message": "Invalid parameters.",
  "request_id": "2f6c9a0e-5b1d-4e7f-8c3a-9d0b1e2f3a4c",
  "fields": { "year": "…" }
}
StatusCodeWhat to do
400INVALID_REQUESTFix the parameters listed in fields.
401INVALID_API_KEYCheck the key, or call without a key.
404NOT_FOUNDCheck the identifier or the path.
429QUOTA_EXCEEDEDWait Retry-After seconds, or use a key.
503DATASET_UNAVAILABLEThe dataset is not published on the API yet.

The full list of codes is in Errors.