Apna AI Pandit Report API
Vedic astrology reports for your app, website or business
Send birth details, get a complete Kundli, yearly forecast or topic report as JSON or a ready-to-send PDF in your own brand — your logo, colours, contact. Pay per report from your Apna AI Pandit wallet. No subscription.
Already use the Apna AI Pandit app? Log in with the same mobile number — same account, same wallet.
POST https://apnaaipandit.com/api/v1/public/reports/complete_kundli
x-api-key: ajk_…
{ "birth": { "date": "1990-01-15", "time": "10:30",
"timezone": "Asia/Kolkata",
"latitude": 28.6139, "longitude": 77.209 },
"language": "hi", "format": "pdf",
"branding": { "brandName": "Your Brand" } }
→ 200 { requestId, charged: ₹99, pdfUrl, pdfPages: 26 }How it works
Four steps, a few minutes.
- Log in with your mobile number (same as the app).
- Open an API account and create a key on the APIs page.
- Recharge your wallet — the same wallet as chat in the app.
- Call the API — each successful report is charged; failed calls are refunded automatically.
Reports & pricing
Request fields| Report | reportType | Languages | Pages | Price / report | Sample |
|---|---|---|---|---|---|
| Complete Kundli Full birth-chart report (~26 dense A4 pages): basic details, avakahada chakra, D1/D9 charts (North + South), planetary positions with planet images, all 16 divisional charts, planetary friendship, aspects, KP planet lords, ascendant, main areas of life, Moon sign & nakshatra, birth panchang, planets in houses and in signs, house results, yogas, doshas, Vimshottari maha / antar / pratyantar with mahadasha predictions, Yogini and Chara dasha, Sade Sati, Ashtakavarga, Shadbala, Lal Kitab with 35-year dasha, remedies. | complete_kundli | hi, en | ~26 | ₹99 | |
| Kundli (basic) Short birth-chart report: basic details, charts, planetary positions, ascendant, Moon sign & nakshatra, yogas, doshas, Vimshottari dasha. | kundli_basic | hi, en | ~6 | ₹29 | |
| Yearly forecast Forecast for the next 12 months from today: running antardashas with dates, Saturn / Jupiter / Rahu transits from the Moon sign, Sade Sati / Dhaiya, remedies. | yearly | hi, en | ~5 | ₹79 | |
| Career report 10th and 6th houses and their lords, planets there, significators (Sun, Saturn, Mercury), career yogas, dasha timeline, remedies. | topic_career | hi, en | ~6 | ₹49 | |
| Marriage report 7th and 2nd houses, Venus and Jupiter, navamsa chart, Manglik and related yogas, dasha timeline, remedies. | topic_marriage | hi, en | ~6 | ₹49 | |
| Finance report 2nd and 11th houses, Jupiter and Venus, dhana yogas, dasha timeline, remedies. Not investment advice. | topic_finance | hi, en | ~6 | ₹49 | |
| Health report Ascendant and 6th house, Sun and Moon, vitality-related yogas, dasha timeline, remedies. Not medical advice. | topic_health | hi, en | ~6 | ₹49 | |
| Education report 4th and 5th houses, Mercury and Jupiter, learning yogas, dasha timeline, remedies. | topic_education | hi, en | ~6 | ₹49 |
Prices in INR per successful report (JSON or PDF). Every report is calculated by our own engine (Swiss-Ephemeris-grade positions, Lahiri ayanamsa) and written from a Pandit-reviewed knowledge base — no AI-generated text.
Sample PDFs
Samples use a fictional person.
Chat API · coming soon
Chat API referenceBuilding a complete astrology app? Show our pandits in your app and let your users chat with them — the same chat engine as the Apna AI Pandit app reads each user's real birth chart, remembers the conversation and answers in their language (Hindi, English, Hinglish, Bengali, Tamil, Telugu, Marathi). No astrology backend of your own: GET /public/pandits, POST /public/chat/sessions, POST …/messages. Billed per minute at the pandit's rate from the same wallet.
Quick start
Full referencecurl -X POST "https://apnaaipandit.com/api/v1/public/reports/complete_kundli" \
-H "Content-Type: application/json" \
-H "x-api-key: $API_KEY" \
-H "Idempotency-Key: order-1001" \
-d '{"birth":{"date":"1990-01-15","time":"10:30","timezone":"Asia/Kolkata","latitude":28.6139,"longitude":77.209},"language":"en","format":"pdf","branding":{"brandName":"Your Brand"}}' \
| jq -r '.data.pdfUrl' | xargs curl -s -o report.pdf # signed link, valid 7 days<?php
$body = [
'birth' => ['date' => '1990-01-15', 'time' => '10:30', 'timezone' => 'Asia/Kolkata', 'latitude' => 28.6139, 'longitude' => 77.209],
'language' => 'en', 'format' => 'pdf',
'branding' => ['brandName' => 'Your Brand', 'primaryColor' => '#0b5394'],
];
$ch = curl_init('https://apnaaipandit.com/api/v1/public/reports/complete_kundli');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Content-Type: application/json', 'x-api-key: ' . getenv('API_KEY'), 'Idempotency-Key: order-1001'],
CURLOPT_POSTFIELDS => json_encode($body),
CURLOPT_TIMEOUT => 120,
]);
$res = json_decode(curl_exec($ch), true);
$code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
if ($code !== 200) { throw new Exception($res['error']['code'] . ': ' . $res['error']['message']); }
// PDF is generated on our server — download it (or give $res['data']['pdfUrl'] to your customer; valid 7 days)
file_put_contents('report.pdf', file_get_contents($res['data']['pdfUrl']));
echo 'Charged ₹' . $res['data']['charged'] . ', balance ₹' . $res['data']['walletBalance'];import base64, os, requests
body = {
"birth": {"date": "1990-01-15", "time": "10:30", "timezone": "Asia/Kolkata", "latitude": 28.6139, "longitude": 77.209},
"language": "en", "format": "pdf",
"branding": {"brandName": "Your Brand", "primaryColor": "#0b5394"},
}
r = requests.post(
"https://apnaaipandit.com/api/v1/public/reports/complete_kundli",
json=body,
headers={"x-api-key": os.environ["API_KEY"], "Idempotency-Key": "order-1001"},
timeout=120,
)
res = r.json()
if r.status_code != 200:
raise RuntimeError(f"{res['error']['code']}: {res['error']['message']}")
# PDF is generated on our server: download it, or hand res["data"]["pdfUrl"] to your customer (signed, valid 7 days)
open("report.pdf", "wb").write(requests.get(res["data"]["pdfUrl"], timeout=60).content)
print("charged", res["data"]["charged"], "balance", res["data"]["walletBalance"])// Node 18+ (built-in fetch)
import { writeFile } from 'node:fs/promises';
const r = await fetch('https://apnaaipandit.com/api/v1/public/reports/complete_kundli', {
method: 'POST',
headers: { 'Content-Type': 'application/json', 'x-api-key': process.env.API_KEY, 'Idempotency-Key': 'order-1001' },
body: JSON.stringify({
birth: { date: '1990-01-15', time: '10:30', timezone: 'Asia/Kolkata', latitude: 28.6139, longitude: 77.209 },
language: 'en',
format: 'pdf',
branding: { brandName: 'Your Brand', primaryColor: '#0b5394' },
}),
});
const res = await r.json();
if (!r.ok) throw new Error(`${res.error.code}: ${res.error.message}`);
// PDF is generated on our server: download it, or give res.data.pdfUrl to your customer (signed, valid 7 days)
await writeFile('report.pdf', Buffer.from(await (await fetch(res.data.pdfUrl)).arrayBuffer()));
console.log('charged', res.data.charged, 'balance', res.data.walletBalance);