Recharge plan API for Indian prepaid operators
Give your customers the right plans the moment they type a number: operator, circle, live prepaid packs and personal R-Offers from one login.
A recharge plan API returns the plans an operator currently sells, not the recharge itself. With A1 Plan API you send a 10-digit mobile number, get the operator and circle back, then request the live plan list for that pair. It covers Airtel, Jio, Vi (Vodafone Idea) and BSNL, and answers in JSON.
What you can call
Operator & Circle Fetch
Resolve any mobile number to its current operator and telecom circle. Handles numbers that have been ported.
Prepaid Plan Fetch
Live packs grouped into categories such as Recommended, Data and Unlimited, with price, validity and description.
R-Offer Check
Personalised offers available for one specific number, for the "best offer for you" row.
Operator & Circle code lists
Free reference lists so your dropdowns and mappings never rely on hard-coded values.
Usage status
Plan name, days left and hits used today, so you can show quota on your own dashboard.
IP whitelist & e-KYC
Access is limited to your approved server IPs after account e-KYC.
Step one: find the operator and circle
The same request in four languages. Replace the placeholders with your username and password from the dashboard.
curl -s "https://a1planapi.com/planapi/operatorCircleFetch?username=YOUR_USERNAME&pwd=YOUR_PASSWORD&mobileno=9876543210"<?php
$url = 'https://a1planapi.com/planapi/operatorCircleFetch?' . http_build_query(array(
'username' => 'YOUR_USERNAME',
'pwd' => 'YOUR_PASSWORD',
'mobileno' => '9876543210',
));
$ch = curl_init($url);
curl_setopt_array($ch, array(CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 15));
$body = curl_exec($ch);
curl_close($ch);
$data = json_decode($body, true);
if (isset($data['ERROR']) && $data['ERROR'] === '0') {
print_r($data);
} else {
echo $data['Message'] ?? 'Request failed';
}import requests
params = {
'username': 'YOUR_USERNAME',
'pwd': 'YOUR_PASSWORD',
'mobileno': '9876543210',
}
r = requests.get('https://a1planapi.com/planapi/operatorCircleFetch', params=params, timeout=15)
data = r.json()
if data.get('ERROR') == '0':
print(data)
else:
print(data.get('Message', 'Request failed'))const params = new URLSearchParams({
username: 'YOUR_USERNAME',
pwd: 'YOUR_PASSWORD',
mobileno: '9876543210',
});
const res = await fetch('https://a1planapi.com/planapi/operatorCircleFetch?' + params, { signal: AbortSignal.timeout(15000) });
const data = await res.json();
if (data.ERROR === '0') {
console.log(data);
} else {
console.log(data.Message || 'Request failed');
}A successful response looks like this (sample values):
{
"ERROR": "0",
"STATUS": "1",
"Mobile": "9876543210",
"Operator": "AIRTEL",
"OpCode": "A",
"Circle": "Andhra Pradesh",
"CircleCode": "49",
"Message": "Successfully"
}From signup to first response
Resolve the number
Call Operator & Circle Fetch with the customer's mobile number. Keep the returned OpCode and CircleCode.
Fetch the plans
Pass those two values to Plan Fetch. Render each category in RDATA as a tab.
Add offers
Optionally call R-Offer Check for the same number to show personal offers on top.
Questions developers ask
What is a recharge plan API?
It is a data service that returns the prepaid plans, validity and offers an operator currently sells for a given circle. It does not perform the recharge or move money; your own recharge system does that.
Which operators does the recharge plan API cover?
Prepaid plan lookup covers Airtel, Jio, Vi (Vodafone Idea) and BSNL. Operator codes are in the free operator code list.
How do I know which circle a number belongs to?
Call Operator & Circle Fetch with the 10-digit number. The response includes the OpCode and the CircleCode to use on Plan Fetch.
Can I show personalised offers for a number?
Yes. R-Offer Check returns the offers available for a specific mobile number, with price and offer text.
Do I need a separate login per endpoint?
No. One username and password works on every endpoint. Your subscription sets how many hits you get per day.
Ship plan browsing this week
Create an account, finish e-KYC, whitelist your server and make your first call.
