AstroWay/api v2.173.1 · it
tutti i sistemi sono operativi
// astrology api · POST /v1/chinese/feng-shui/flying-star

Flying star (Xuan Kong) feng shui API

A facing direction and a construction period produce the full nine-palace flying-star chart: the period star, the mountain star and the facing star in each of the nine sectors, with the element, the nature and the meaning of every one.

Endpoint
POST /v1/chinese/feng-shui/flying-star
Cost
10 credits
Latency
~70 ms
Tier
Tier 1
// 01 / What it computes

Flying star (Xuan Kong) feng shui API

The bearing is resolved to one of the 24 mountains, which is the resolution the system actually works at: 15 degrees each, three per sector, and the polarity of the mountain decides the direction the stars fly. From the period number the endpoint places the period star into the centre and flies the remaining eight through the palaces in Luo Shu order. The sitting and facing mountains then give the mountain star and the facing star, each flown forward or backward according to the polarity of the mountain it starts on, which is the rule most implementations get subtly wrong. Every palace comes back with all three stars, their elements, whether each is timely or hostile in the period, and the pair reading that practitioners actually work from.

// 02 / Live request

POST/v1/chinese/feng-shui/flying-star

curl -X POST https://api.astroway.info/v1/chinese/feng-shui/flying-star \
  -H "X-Api-Key: aw_live_..." \
  -H "Content-Type: application/json" \
  -d '{
    "facing": 180,
    "period": 8
  }'
Response (excerpt)
{
  "ok": true,
  "data": {
    "period": { "number": 8, "source": "given" },
    "facing": { "degrees": 180, "mountain": "S2", "chinese": "午", "sector": "S", "polarity": "yin" },
    "sitting": { "mountain": "N2", "chinese": "子", "sector": "N", "degrees": 0 },
    "palaces": [
      {
        "palace": "N",
        "degrees": "337.5-22.5",
        "mountainStar": { "star": 9, "name": "Purple Fire", "element": "Fire", "nature": "auspicious" },
        "periodStar": { "star": 4, "name": "Green Wood", "element": "Wood", "nature": "mixed" },
        "facingStar": { "star": 7, "name": "Red Metal", "element": "Metal", "nature": "inauspicious" },
        "pair": "9-7"
      }
    ]
  }
}
// 03 / Parameters

Parameters

nametypeRequired
facing number (degrees) yes Compass bearing the building faces, clockwise from true north. Or send facingMountain as one of the 24 mountains.
period number (1-9) yes Construction period. Not defaulted to the current one: a building occupied in 1998 belongs to period 7, and answering with 9 would be a confident chart for the wrong building.
occupiedDate string (YYYY-MM-DD) no Alternative to period. The period is derived from the date of occupation.
language string no Any of 21 codes for the element names.
// 04 / When to use it

When to use it

Use it behind a consultation tool, a property listing feature, an interior-design workflow or an app that annotates a floor plan. The response is pure structure, so you can render it as a nine-square grid, overlay it on a plan, or feed it to an interpretation layer. Pair it with the annual stars endpoint when you need the current year laid over the natal chart of the building, and with the Kua number when the reading has to account for the occupant rather than the building alone.

// 05 / Notes

Notes

The period is required rather than defaulted, deliberately: silently assuming the current period produces a confident chart for a building that does not exist. The flight direction follows the polarity of the starting mountain, and the tables are pinned against published almanac charts. Star names carry their Chinese characters alongside the English gloss.

Try the Flying star feng shui API

Grab a key and make your first call in under a minute.

99.9% SLA · piani a pagamento · 30d stato →