DTH info API for Airtel, Tata Play, Dish TV, Sun Direct and d2h
Show a DTH customer their balance, details and packs before they pay, and detect the operator from the number when they do not know it.
A DTH info API tells you who a DTH connection belongs to and what is on it before you recharge it. A1 Plan API supports Airtel Digital TV, Tata Play, Dish TV, Sun Direct and Videocon d2h with basic info, full info, info with last recharge, plan fetch and operator check endpoints.
What you can call
DTH Basic Info
Name and registered mobile for a VC / subscriber number.
DTH Info Check
Fuller details including current balance and PIN code.
Info with last recharge
Adds the most recent recharge so customers can repeat it.
DTH Plan Fetch
Packs and combos by language for an operator.
DTH Operator Check
Detect the operator from a DTH number.
Usage status
Track daily hits against your plan.
Look up a DTH connection
The same request in four languages. Replace the placeholders with your username and password from the dashboard.
curl -s "https://a1planapi.com/planapi/dthInfoCheck?username=YOUR_USERNAME&pwd=YOUR_PASSWORD&mobileno=3012763522&operatorcode=TTV"<?php
$url = 'https://a1planapi.com/planapi/dthInfoCheck?' . http_build_query(array(
'username' => 'YOUR_USERNAME',
'pwd' => 'YOUR_PASSWORD',
'mobileno' => '3012763522',
'operatorcode' => 'TTV',
));
$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': '3012763522',
'operatorcode': 'TTV',
}
r = requests.get('https://a1planapi.com/planapi/dthInfoCheck', 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: '3012763522',
operatorcode: 'TTV',
});
const res = await fetch('https://a1planapi.com/planapi/dthInfoCheck?' + 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",
"DATA": {
"VC": "3012763522",
"Name": "MR Milind .",
"Balance": "310.28",
"PIN Code": "422009"
},
"Message": "Offer Successfully Checked"
}From signup to first response
Pick the operator code
Use ATV (Airtel Digital TV), TTV (Tata Play), DTV (Dish TV), STV (Sun Direct) or VTV (Videocon d2h). Not sure? Call DTH Operator Check first.
Fetch details
Call Info Check with the VC or subscriber number and the operator code.
Show packs
Call DTH Plan Fetch for the operator and render the combos by language.
Questions developers ask
Which DTH operators are supported?
Airtel Digital TV (ATV), Tata Play (TTV), Dish TV (DTV), Sun Direct (STV) and Videocon d2h (VTV).
What is a VC number?
VC stands for viewing card. It is the subscriber ID printed on the set-top box or shown in the operator app, and it is what you pass as the number for most DTH calls.
What if the customer does not know the operator?
Call DTH Operator Check with the DTH number and use the operator it returns.
Is the response key ERROR or error?
On the DTH info endpoints the key is lower-case error, while most other endpoints use ERROR. Read it case-insensitively in your client.
Does this API perform the DTH recharge?
No. It returns information and plans. The recharge itself is done by your own recharge platform.
Related guides
Make DTH recharges feel effortless
Details, balance and packs in one call, ready to show before payment.
