Wenbu Bazi API

The Bazi API from Wenbu, for bazi.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 1

POST /api/v1/bazi Calculate or draw bazi symbols #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/wenbu-app:wenbu-app-bazi-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

wenbu-app-bazi-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Wenbu · 问卜 Bazi API
  version: 1.5.0
  description: Free, transparent cultural calculation tools. No predictive validity claims.
  license:
    name: MIT
    identifier: MIT
servers:
- url: https://wenbu.app
tags:
- name: Bazi
paths:
  /api/v1/bazi:
    post:
      operationId: calculate_bazi
      summary: Calculate or draw bazi symbols
      description: No authentication. Cultural reflection, not established prediction. JSON body capped at 8192 bytes. Rate limits apply.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                date:
                  type: string
                  pattern: ^\d{4}-\d{2}-\d{2}$
                  description: Gregorian date, 1901–2099
                time:
                  anyOf:
                  - type: string
                    pattern: ^([01]\d|2[0-3]):[0-5]\d$
                  - type: 'null'
                  default: null
                timezone:
                  type: string
                  default: Asia/Shanghai
                  maxLength: 80
                dayBoundary:
                  type: string
                  enum:
                  - midnight
                  - zi
                  default: midnight
                solarTime:
                  type: boolean
                  default: false
                longitude:
                  type: number
                  minimum: -180
                  maximum: 180
                locale:
                  type: string
                  enum:
                  - zh
                  - en
                  default: zh
              required:
              - date
      responses:
        '200':
          description: Structured result including method and conventions
          content:
            application/json:
              schema:
                type: object
                required:
                - kind
                - version
                - method
                properties:
                  kind:
                    const: bazi
                  version:
                    type: string
                  method:
                    type: object
        '400':
          description: Invalid JSON
        '403':
          description: Browser origin rejected
        '413':
          description: Request too large
        '415':
          description: JSON content type required
        '422':
          description: Invalid input or ambiguous date/time
        '429':
          description: Request limit reached
      tags:
      - Bazi