← Back to Jingming
中文EN

FengShuiSeek Spatial Analysis API v1

A deterministic spatial-analysis API for developers. Everything is computed by a fixed
Two-Eight Periods (orthodox Xuan Kong) engine — not generated by a language model.
The same input always returns the same output, so you can verify any result on the spot.

Basics

ItemValue
Base URLhttps://fengshuiseek.aicreditsapi.com/v1
AuthRequest header X-API-Key: <your key>
Content typeapplication/json; charset=utf-8
Metering1 credit deducted per call (see the quota field)

Authentication

Every /v1/* endpoint requires the header:

X-API-Key: jm_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Keys are issued offline in the form jm_ followed by 48 hex characters. A key is bound to an email address and is provisioned automatically by the payment webhook after purchase.

Error response (missing or invalid key):

{ "detail": "缺少 X-API-Key 请求头" }

HTTP status: 401


English input is accepted everywhere

You do not have to send Chinese strings. level, system, direction keys, and terrain values all accept English names, common abbreviations, and the compass shorthand N / NE / E / SE / S / SW / W / NW.

{
  "level": "home",
  "system": "orthodox",
  "terrain_map": {
    "N":  "water",
    "E":  "road",
    "SW": "mountain"
  }
}
FieldAccepted EnglishCanonical value returned
levelhome house residential apartment家居
office workplace办公
shop store retail commercial商铺
city urban城市
personal individual个人
systemorthodox two-eight 2-8 er_yuan二元八运
xuankong three-nine 3-9 san_yuan三元九运
directionsN S E W NE NW SE SW C / north south … center正北 正南 正东 正西 东北 西北 东南 西南 中宫
terrainwater river lake sea pool水
road street highway道路
mountain hill building山 / 建筑
sunken depression basement低洼
flat plain ground平地

The engine normalizes all of these into three primitives — solid (山), moving (水), and flat (平) — before it computes. Response bodies keep the canonical Chinese enum values so that results stay comparable across clients.


Endpoints

GET /v1/products — plan list

No auth required. Returns the credit packs currently on sale.

curl https://fengshuiseek.aicreditsapi.com/v1/products

Response:

{
  "success": true,
  "products": {
    "5":  { "id": "prod_xxx", "calls": 5,  "name": "5 次风水分析",  "name_en": "5 analyses",  "price": 300 },
    "20": { "id": "prod_yyy", "calls": 20, "name": "20 次风水分析", "name_en": "20 analyses", "price": 900 },
    "50": { "id": "prod_zzz", "calls": 50, "name": "50 次风水分析", "name_en": "50 analyses", "price": 1900 }
  }
}

price is in cents (300 = $3.00). Use name or name_en for display — both are provided so you can localize your storefront without a translation table.


GET /v1/me — key status and remaining credits

curl https://fengshuiseek.aicreditsapi.com/v1/me \
  -H "X-API-Key: jm_xxx"

Response:

{
  "key": "jm_xxx",
  "name": "Example User",
  "tier": "paid",
  "quota": 45,
  "used": 5,
  "enabled": true,
  "email": "you@example.com"
}

POST /v1/analyze — full spatial analysis (core endpoint)

Runs the complete engine on a given space and returns a structured verdict plus an action list.

Body:

FieldTypeRequiredDescription
levelstringnoAnalysis scope: 家居 home (default) / 个人 personal / 商铺 shop / 城市 city / 国家 country
yearintnoYear to compute for. Defaults to the current year
systemstringnoPeriod system: 二元八运 Two-Eight (default) / 三元九运 Three-Nine
terrain_mapobjectnoActual terrain per direction — see below
birth_yearintnoOccupant birth year (personal scope only)
langstringnozh (default) or en. With en, the JSON gains an en block containing an English report
formatstringnojson (default) or text. With text, returns a plain-text report you can hand to a client directly

terrain_map shape — a flat object. Keys are directions, values are terrain strings. Do not wrap it in directions:

{
  "正北": "水",
  "正东": "平地",
  "西南": "山"
}

The engine reduces every terrain value to one of three primitives before computing — moving qi (水, 道路, 低洼, 广场), solid (山, 建筑, 高岗), or neutral (平地, 空地). A road in front of a door counts as moving qi, not as flat ground.

resonance is an output field. The engine derives it from the terrain — it is never an input.
Older versions of this document listed it as a parameter; that was wrong.

Example:

curl -X POST https://fengshuiseek.aicreditsapi.com/v1/analyze \
  -H "X-API-Key: jm_xxx" \
  -H "Content-Type: application/json" \
  -d '{
    "level": "home",
    "year": 2026,
    "system": "orthodox",
    "lang": "en",
    "terrain_map": {
      "N":  "water",
      "E":  "road",
      "SW": "mountain"
    }
  }'

Response:

{
  "success": true,
  "result": {
    "summary": "【立极分析报告】家居(户型几何中心) | 2026年 | 二元八运\n当前乾九运,五黄金龙在坎一宫(正北,水气)。最旺方位:正北…",
    "suggestion": "行动优先级:1) 确认坎一宫(正北)是否具备活水条件…",
    "golden_dragon": {
      "palace": "坎一宫",
      "direction": "正北",
      "element": "水",
      "yun_name": "乾九运"
    },
    "palaces": [ /* per-palace detail */ ],
    "provenance": {
      "engine": "liji",
      "system": "二元八运",
      "year": 2026,
      "elapsed_ms": 42
    }
  },
  "quota": { "remaining": 44 }
}

summary and suggestion are the canonical Chinese fields. They are always present, whatever lang you pass, so existing integrations keep working. Palace names (坎一宫), directions (正北), and elements (水) are stable identifiers, not display strings — map them on your side when you need another language. The en block below is the ready-made English rendering.

When lang is en, the response also carries:

{
  "en": {
    "verdict": "…",
    "why": ["…"],
    "priorities": [{ "room": "Bedroom", "palace": "Kan-1", "reason": "…", "suggestion": "…" }],
    "doctrine": "…"
  }
}

provenance is included so that every number can be traced back to a specific engine, year, and period system.

Errors:

StatusCause
401Missing, invalid, or disabled key
402Credits exhausted (details in detail)
422Invalid field value — the message lists the allowed values
500Engine failure

POST /v1/luopan — nine-palace geometry only

Skips the prose report and returns just the palace grid and where the golden dragon sits. Use this when you want to draw the compass yourself.

Body: same as /v1/analyze (level / year / system / terrain_map)

Response:

{
  "success": true,
  "year": 2026,
  "system": "二元八运",
  "golden_dragon": {
    "palace": "坎一宫",
    "direction": "正北",
    "element": "水",
    "yun_name": "乾九运"
  },
  "palaces": [
    {
      "palace": "坎一宫",
      "direction": "正北",
      "digital": 1,
      "element": "水",
      "is_golden_dragon": true,
      "terrain": null,
      "resonance": null,
      "reason": "五黄金龙所落之位,当运最旺",
      "suggestion": "宜做核心功能区、宜动、宜见水"
    }
  ],
  "summary": "…",
  "suggestion": "…"
}

GET /v1/timeline — period transitions

Returns when each period starts and ends within a year range.

Query parameters:

ParamDefaultDescription
start2020Start year
end2050End year
system二元八运Period system — English aliases accepted
curl "https://fengshuiseek.aicreditsapi.com/v1/timeline?start=2020&end=2050&system=orthodox" \
  -H "X-API-Key: jm_xxx"

Response:

{
  "success": true,
  "system": "二元八运",
  "events": [
    { "year_start": 2024, "year_end": 2033, "yun_name": "乾九运", "palace": "坎一宫", "direction": "正北", "element": "水" }
  ]
}

How the engine works

Two-Eight Periods — orthodox Xuan Kong

One *yuan* spans 180 years, split into alternating 9-year yang and 6-year yin segments. From 2024 the active period is Qian 9, and the golden dragon (五黄金龙) falls in Kan-1 palace — due north.

PeriodYearsDragon palaceDirection
Qian 92024–2033Kan-1 (坎一宫)Due north
Dui 72034–2039Kun-2 (坤二宫)Southwest
Qian 82040–2049Gen-8 (艮八宫)Northeast
Qian 9 (next cycle)2050–2059Li-9 (离九宫)Due south

Why this differs from Three-Nine Periods

The widely marketed "Period 9 / fire / dragon due south" model belongs to Three-Nine Periods (Xuan Kong), a separate system. The two are not interchangeable and must never be mixed in one reading. This is why system is an explicit, required-in-practice field rather than something the server guesses.

Determinism

No language model sits in the calculation path. provenance.elapsed_ms reports actual engine time. Call the same endpoint twice with the same body and the numbers will match; only the prose wording may vary when lang=en, and even that is template-driven.


Pricing and purchase

PackPriceCredits
5 calls$35
20 calls$920
50 calls$1950

Checkout is hosted by Creem. After payment, the webhook provisions credits for your email and issues the key automatically.

Create a checkout session (no auth required):

curl -X POST https://fengshuiseek.aicreditsapi.com/v1/checkout \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com", "plan": 5}'

Response:

{ "checkoutUrl": "https://www.creem.io/checkout/prod_xxx/ch_yyy" }

plan is 5, 20, or 50 (integer). Redirect the user to checkoutUrl to complete payment.


Disclaimer

Output describes the conditional geometry of a space. It is not a prediction about a person's life, health, or fate. The same space is re-evaluated under a different year or period system and will produce different results — that is by design, and it is what makes the output checkable. Keep this notice visible in any product built on this API.

Health-related questions must be directed to a medical professional. This API is a spatial layout tool, not a diagnostic one.


Contact