Build with Advanced Vedic Astrology

Integrate real-time Kundli analysis, Dasha calculations, and Gochar transits directly into your application via REST API.

Authentication Key Live Mode

Use this secret key to authenticate your requests. Include it in the x-api-key header. Do not share this key publicly or expose it in client-side browser code.

••••••••••••••••••••••••••••••••
Compromised key? Generating a new one immediately invalidates the old one.
Current Billing Cycle

0

Requests made this month
Plan Limit 0
0% used Upgrade Plan
Developer Documentation & Playground
Analyze Kundli
POST https://yagyamitra.com/api/v1/kundli-analysis

Generates a comprehensive, highly-structured 5-part Vedic Kundli analysis (D1, D9, Dasha, Transit) in Hindi. Uses Gemini 3.1 Pro backend.

Request Headers
  • x-api-key *
    Your secret API key
  • Content-Type *
    application/json
JSON Body Parameters
  • query string *

    The specific question (e.g., "When will I get a job?")

  • dob string *

    Date of Birth format YYYY-MM-DD

  • tob string *

    Time of Birth format HH:MM (24-hour)

  • pob string *

    Place of Birth (City, State, Country)

Bash
curl -X POST https://yagyamitra.com/api/v1/kundli-analysis \
  -H "x-api-key: YOUR_SECRET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "query": "Is there a government job yoga?",
    "dob": "1990-12-05",
    "tob": "08:15",
    "pob": "Varanasi, UP"
  }'
JavaScript (Fetch)
const response = await fetch('https://yagyamitra.com/api/v1/kundli-analysis', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_SECRET_API_KEY',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    query: 'Is there a government job yoga?',
    dob: '1990-12-05',
    tob: '08:15',
    pob: 'Varanasi, UP'
  })
});

const data = await response.json();
console.log(data.data.analysis);
Python (Requests)
import requests
import json

url = "https://yagyamitra.com/api/v1/kundli-analysis"

payload = json.dumps({
  "query": "Is there a government job yoga?",
  "dob": "1990-12-05",
  "tob": "08:15",
  "pob": "Varanasi, UP"
})
headers = {
  'x-api-key': 'YOUR_SECRET_API_KEY',
  'Content-Type': 'application/json'
}

response = requests.request("POST", url, headers=headers, data=payload)
print(response.json()["data"]["analysis"])
Live API Tester
Response JSON 200 OK
...
Recent API Logs Last 24 Hours
Timestamp Endpoint Method Status Latency
Today, 14:32:05 /v1/kundli-analysis POST 200 OK 3,420 ms
Today, 10:15:12 /v1/kundli-analysis POST 200 OK 4,105 ms
Yesterday, 19:40:00 /v1/kundli-analysis POST 401 Auth 120 ms

Transparent B2B Pricing

Scale your astrological applications

Starter API
₹5,000/mo

Perfect for side projects

  • 1,000 requests / month
  • Standard D1, D9, Dasha
  • Rate Limit: 1 req/sec
  • Email Support
Business Pro
₹25,000/mo

For growing astrology platforms

  • 10,000 requests / month
  • Gemini 3.1 Pro backend
  • Rate Limit: 10 req/sec
  • Priority Slack Support
Enterprise
Custom

For high-volume portals

  • Unlimited requests
  • Custom AI fine-tuning
  • Dedicated Server Nodes
  • 24/7 SLA Support