Integration guide

Every capability of CYBER ORACLE has an endpoint: charts, reading overviews, creating and reading reports, products and samples. Two ways to call the same service — a standard HTTP API, or MCP, which lets an AI assistant such as Claude use it directly as a tool.

What you can do

These are the endpoints an integration uses. The worked examples below show what to send and what comes back.

  • POST/api/v1/chartCast a chartPublic
  • POST/api/v1/chart/flowFlow chart: luck pillar, year, month and day beside the four natal pillars, the choices for each level, clashes and combinationsPublic
  • POST/api/v1/chart/overviewReading overview: which readings this chart can havePublic
  • POST/api/v1/readingsGenerate a reading from a planNeeds readings:write
  • GET/api/v1/readings/{id}Fetch one reportNeeds readings:read
  • GET/api/v1/readingsList your own reportsNeeds readings:read
  • GET/api/v1/catalogProducts and pricesPublic
  • GET/api/v1/samples/{slug}One sample report (fixed content)Public

The overview and reading a sample make no AI model call at all. Generating a report is asynchronous: submit, then poll the report endpoint for progress.

Option 1: the HTTP API

To create API keys you first need developer access: sign in, open the Developer page in your account and apply. Once approved, you create keys yourself and send one in a request header. The full key is shown only once, at the moment it is created, so save it then. If it is lost, revoke it on the same page and create another.

Authorization
Authorization: Bearer ok_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

That string is a placeholder; substitute your own key. Never commit a real key to a repository.

The six scopes

  • chartCharts
  • overviewReading overview
  • catalogProducts and prices
  • samplesSample reports
  • readings:readRead and list reports
  • readings:writeGenerate reports

Each key may make 60 calls a minute; beyond that you get a 429 with Retry-After. An unknown key, a revoked key and a key without the scope all answer with the same 403 and the same sentence — a client only needs to tell “slow down” apart from “this key no longer works”.

Option 2: MCP

MCP is the open protocol AI assistants use to call outside tools. Once it is configured, an assistant like Claude casts the chart and fetches the reading by itself, with nothing extra to code. The server is named cyber-oracle and lives at /mcp on the site.

Claude Code
claude mcp add --transport http cyber-oracle \
  https://<this-site>/mcp \
  --header "Authorization: Bearer ok_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
claude_desktop_config.json
{
  "mcpServers": {
    "cyber-oracle": {
      "type": "http",
      "url": "https://<this-site>/mcp",
      "headers": {
        "Authorization": "Bearer ok_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
      }
    }
  }
}

These tools take exactly the same inputs and give exactly the same outputs as the matching HTTP endpoints:

  • bazi_chart
  • bazi_chart_flow
  • reading_overview
  • reading_create
  • reading_get
  • reading_list
  • catalog_list
  • sample_get

Worked examples

The birth details in every example belong to a fictional chart (1984-03-21 07:40, Beijing), not to a real person.

Cast a chart

POST /api/v1/chart
{
  "name": "Sample",
  "birth": { "year": 1984, "month": 3, "day": 21, "hour": 7, "minute": 40 },
  "gender": "female",
  "place": {
    "lng": 116.397, "lat": 39.908,
    "tz": "Asia/Shanghai", "coord_system": "GCJ-02", "label": "Beijing"
  },
  "policy": "default",
  "locale": "en"
}

If the birth time is unknown, send "birth": {"year": 1984, "month": 3, "day": 21, "time_unknown": true} — the chart is still cast, with the hour-dependent parts left out. Readings do not accept such a chart.

Flow chart

The eight-column table on the chart page: the day, month, year and luck pillars beside the four natal pillars, each with its ten god, hidden stems, twelve stage, self-seat, void, nayin and symbolic stars; plus the ten years of the luck pillar, the twelve months of the year, every day of the month, and every clash and combination among the chosen pillars, with the pillars each character sits in.

POST /api/v1/chart/flow
{
  "chart": { "…": "same birth details as above" },
  "flow": { "date": "2026-11-25" }
}

Pass flow.date to open one day (the year, month and luck pillar follow it), or flow.year with an optional flow.month (1 is the Yin month, 12 the Chou month). Years change on the day of Lichun and months on the day of each solar term; term times are Beijing time. The MCP tool is bazi_chart_flow.

Reading overview

Same body as a chart, but it must not carry options. For each reading on sale it says whether this chart can have it: true, or null when there is not enough to write. No counts.

POST /api/v1/chart/overview
{"available": true, "as_of": {"year": 2026, "month": 8},
 "strength_manual_review": false,
 "products": {"personality": true, "marriage": null}}

Generate a report

Send an Idempotency-Key header. The report is anchored on the moment you submit it, so do not send a year. plan is {"version": 2}. dimensions picks what to write: 性格 (personality), 财运 (wealth), 婚姻 (marriage), 事业 (career), 健康 (health). All five give the full reading sold on the website, in seven parts; with fewer, the report covers only what relates to them.

POST /api/v1/readings
{
  "…": "same birth details as above",
  "dimensions": ["性格", "财运", "婚姻", "事业", "健康"],
  "plan": { "version": 2 }
}

202 means it is queued; poll the report endpoint afterwards. 200 means this chart did not give enough to write, and nothing was queued. The same Idempotency-Key with the same body returns the same report; with a different body it answers 409.

Read a report

Poll this endpoint after submitting: each part's status goes from queued to succeeded, and once the report's own status is succeeded it is finished. The text is structured: every part has a fixed key, and its content is a list of subsections (a heading and paragraphs), ready to lay out on your own pages or to hand to an AI assistant.

GET /api/v1/readings/{id}
{
  "reading_id": "…",
  "status": "succeeded",
  "cover": { "sizhu": { … }, "day_master": { … }, "dayun": [ … ] },
  "sections": [
    {
      "key": "f_self", "kind": "fused", "position": 100,
      "status": "succeeded",
      "content": [
        { "title": "…", "paragraphs": [ { "text": "…" } ] }
      ]
    },
    …
  ]
}
  • f_selfPersonality and character
  • f_careerCareer and studies
  • f_wealthWealth
  • f_loveLove and marriage
  • f_healthHealth
  • f_yearsFortune in the coming years
  • f_adviceAdvice and next steps

These seven keys stay the same throughout the v1 API: anything added later comes under new keys, and the existing ones are never renamed or moved.

Errors

error
{"code": "validation_error", "message": "…", "request_id": "…", "fields": {"…": "…"}}

Every error has this shape, with message already localized to the request's locale. Authentication failures are the one exception: the body has a different shape, so handle them by status code.

Pricing

Custom development is available too. If you want to talk through the integration or the cost first, email us; the address is at the bottom of the page.

Contact

For access, pricing and custom development, email us at 954607206@qq.com

You can also look at the sample reports and the privacy policy first to see what the service does and how data is handled.