Home
Solutions
Pricing
Developers
Blog
Company
+91 91610 19161 WhatsApp
Create account Login
  1. Home
  2. Solutions
  3. Recharge Plan API

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.

Example

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"
}
How it works

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.

FAQ

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.