Developer portal
One simple API. Drop in your key, point at the base URL, and you're done.
Your API key
Create an account to get your live API key.
Overview
The odata.ng API lets you buy data, airtime, electricity, cable TV and education pins — and check transaction status — from any backend.
Authentication
Send your API key in the Authorization header on every request.
Authorization: Token YOUR_API_KEYContent-Type: application/json
Both Token <key> and Bearer <key> styles are accepted.
Base URL
https://www.odata.ng/api
Every endpoint sits under this prefix — e.g. https://www.odata.ng/api/user/, https://www.odata.ng/api/data/.
Quickstart
Buying 5GB of MTN data for 08012345678:
curl -X POST https://www.odata.ng/api/data/ \
-H "Authorization: Token YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"network": 1,
"mobile_number": "08012345678",
"plan": 105,
"Ported_number": true
}'
You'll get back a JSON envelope with the transaction id, status and updated wallet balance.
Live plan catalog
Plan IDs you pass as the plan field. Pulled live from our database — these are always the correct IDs.
MTN
| Plan ID | Type | Size | Validity | Price (₦) |
|---|---|---|---|---|
| Loading… | ||||
GLO
| Plan ID | Type | Size | Validity | Price (₦) |
|---|---|---|---|---|
| Loading… | ||||
Airtel
| Plan ID | Type | Size | Validity | Price (₦) |
|---|---|---|---|---|
| Loading… | ||||