For Developers & Astrologers

Kua Number API

Add accurate, verified Kua Number and lucky-direction calculations to your own astrology or Vastu website in minutes — one simple REST call, JSON response, no astronomy library needed on your end.

Quick Start

Make a GET request with your API key and the person's birth year and gender:

GET https://www.searchyourastrologer.com/api/v1/kua-number.php
    ?key=YOUR_API_KEY
    &year=1990
    &gender=male
    &month=6
    &day=15

Example (cURL)

curl "https://www.searchyourastrologer.com/api/v1/kua-number.php?key=YOUR_API_KEY&year=1990&gender=male"

Example (JavaScript fetch)

fetch("https://www.searchyourastrologer.com/api/v1/kua-number.php?key=YOUR_API_KEY&year=1990&gender=male")
  .then(res => res.json())
  .then(data => console.log(data));

Request Parameters

ParamRequiredDescription
keyYesYour API key
yearYesBirth year, e.g. 1990
genderYesmale or female
monthNoBirth month (1-12) — improves accuracy for Jan/early-Feb births
dayNoBirth date (1-31)

Example Response

{
  "success": true,
  "input": { "year": 1990, "gender": "male" },
  "result": {
    "kua_number": 1,
    "group": "East",
    "lucky_directions": {
      "sheng_chi": { "direction": "Southeast", "meaning": "Success & Wealth" },
      "tien_yi":   { "direction": "East", "meaning": "Health" },
      "nien_yen":  { "direction": "South", "meaning": "Love & Relationships" },
      "fu_wei":    { "direction": "North", "meaning": "Personal Growth" }
    },
    "unlucky_directions": {
      "ho_hai":     { "direction": "West", "meaning": "Obstacles" },
      "wu_kwei":    { "direction": "Northeast", "meaning": "Problems" },
      "lui_sha":    { "direction": "Northwest", "meaning": "Conflict" },
      "chueh_ming": { "direction": "Southwest", "meaning": "Total Loss" }
    }
  },
  "usage": { "calls_today": 3, "daily_limit": 500, "plan": "basic" }
}

Error Responses

HTTP StatusMeaning
401Missing or invalid API key
403Key deactivated or expired
429Daily rate limit reached — upgrade your plan
400Invalid year/gender parameter

Pitridosh Report API

A separate subscription — its own dedicated API key. Detects 8 classical Pitru Dosha indicators from a full birth chart using real planetary positions.

GET https://www.searchyourastrologer.com/api/v1/pitridosh.php
    ?key=YOUR_API_KEY
    &year=1990&month=6&day=15&hour=14&minute=30
    &tz=5.5&lat=28.6139&lon=77.2090
ParamRequiredDescription
keyYesYour Pitridosh Report API key
year, month, dayYesBirth date
hour, minuteYes / NoBirth time, 24-hour format (minute defaults to 0)
tzYesTimezone offset from UTC, e.g. 5.5 for IST
lat, lonYesBirth location coordinates
{
  "success": true,
  "result": {
    "pitru_dosha_present": true,
    "severity": "Halka (Mild)",
    "indicators_matched": 1,
    "indicators_checked": 8,
    "indicators": [
      { "name": "Surya-Rahu Yuti (Sun-Rahu conjunction)", "present": false, "note": "..." },
      { "name": "9th Lord in Dusthana (6th/8th/12th house)", "present": true, "note": "..." }
    ]
  }
}

Kua Number API — Plans

Pro

₹2,999/30 din

5,000 calls/day
Priority support

Pitridosh Report API — Plans

Pro

₹1,999/30 din

3,000 calls/day
Priority support

Subscribe & Get API Key →