API Integration
Our HTTPS GET API is very easy to integrate. With the help of our super free fast and cheapest MTN Nigeria SME DATA API , GLO CG DATA & AIRTEL CG DATA Reseller API documentation below, you can safely write your codes, believing that it will work and it will work as long as it’s about our simple yet robust API.
Apply for API ACCESS
API BASE URL
The Live API BASE URL: https://smedata.ng/wp-json/api/v1/
Authentication
The API uses Basic Authentication. You need to always pass your token as part of the URL parameters.
Request Methods
All requests methods are GET.
Response
All responses from the API are returned in the JSON format.
Available Products and Services on the API include:
MTN SME DATA API, GLO CG DATA API, AIRTEL CG DATA API
How to Purchase Data (MTN, GLO, AIRTEL) via HTTP API
Airtime Endpoint URL: https://smedata.ng/wp-json/api/v1/data
Request Method: GET
Parameters
Field Name | Example Value | Description |
---|---|---|
token | 9d4f89904352767e2f980705 | Unique API Token generated in the Reseller Dashboard |
phone | 07045461790 | The phone number that will receive the airtime |
network | mtn | The network is used to make each network unique. They include mtn, glo, airtel. Notice that they are all in small letters. |
size | 1GB | The available data size on the platform MTN DATA 500MB = MTN Data 500MB (SME) – 30 Days GLO CG DATA 500MB = GLO Data 500MB (SME) – 30 Days AIRTEL CG DATA 500MB = AIRTEL Data 500MB (SME) – 30 Days
|
Example [Purchasing Data]
https://smedata.ng/wp-json/api/v1/data?token=9d4f89904352767e2f980705&network=MTN&phone=08056708975&size=1GB
Sample Response on Success
{"code":"success","message":"Data successfully delivered","data":{"network":"mtn","data_plan":"1gb","phone":"08056708975","amount":"NGN245","order_id":236}}
Sample Response on Failure
{"code":"failure","message":"Insufficient Balance"}