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

Plans

Trial

Free

50 calls/day
7-day evaluation

Pro

Contact Us

5,000 calls/day
Priority support

Request an API Key →