Lewati ke isi

Gambar SVG Bagan Kelahiran

Endpoint Gambar SVG Bagan Kelahiran mengembalikan output SVG roda kelahiran dari mesin internal dengan dukungan penuh untuk opsi roda/render.

Bahasa: Semua 26 Bahasa

Dukungan bahasa: Semua 26 bahasa didukung. Respons non-Bahasa Inggris diterjemahkan secara langsung oleh helper penerjemah (default LibreTranslate; DeepL BYOK, MyMemory, atau Google dapat dipilih per permintaan).

Endpoint

Metode Jalur
POST https://api.numerologyapi.com/api/v1/birth-chart/svg

Badan Permintaan

Bidang Tingkat Atas| Nama | Diperlukan | Tipe | Contoh | Deskripsi |

|---|---|---|---|---| | sign | Tidak | string | CANCER | Tanda zodiak. Pilihan: ARIES, TAURUS, GEMINI, CANCER, LEO, VIRGO, LIBRA, SCORPIO, SAGITTARIUS, CAPRICORN, AQUARIUS, PISCES. | | target_date | Tidak | string | 2026-04-08 | Tanggal cadangan publik/sign (YYYY-MM-DD). | | birth | Tidak | objek | {...} | Blok kelahiran mesin (lihat tabel bersarang). | | sections | Tidak | array[string] | ["general"] | Bagian yang diminta. | | zodiac_system | Tidak | string | tropical | Pilihan: sidereal, tropical. | | ayanamsa | Tidak | string | lahiri | Pilihan: lahiri, fagan_bradley, krishnamurti, raman, yukteswar. | | house_system | Tidak | string | placidus | Pilihan: placidus, whole_sign, equal, koch. | | node_type | Tidak | string | true | Pilihan: true, mean. | | tenant_id | Tidak | string | docs-smoke | Override namespace penyewa/cache (opsional). | | user_name | Tidak | string | Docs Smoke User | Label pengguna untuk pembuatan grafik. | | output_mode | Tidak | string | wheel_only | Pilihan: full, report_only, wheel_only. |--- REVISED TRANSLATION --- | include_wheel_svg | Tidak | boolean | true | Sertakan artefak SVG roda dalam jalur render. | | split | Tidak | boolean | false | false: respons SVG biner. true: gabungkan bundel SVG JSON saat didukung. | | round_wheel_only | Tidak | boolean | true | Hanya render roda berbentuk lingkaran. | | transparent_background | Tidak | boolean | true | Mode latar belakang transparan. | | svg_compression | Tidak | string | none | Diizinkan: none, gzip. | | language | Tidak | string | en | Kunci bahasa mesin (2-16 karakter). | | locale | Tidak | string | en-US | Kunci lokal mesin (2-20 karakter). | | wheel | Tidak | object | {...} | Opsi render roda (lihat tabel bersarang). | | theme | Tidak | string | classic | Kunci kompatibilitas lama yang dipetakan ke wheel.theme (classic->paper, light->day, dark->night, dark-high-contrast->obsidian). | | lang | Tidak | string | en | Kunci kompatibilitas lama yang dipetakan ke language. | | name | Tidak | string | User | Alias lama untuk user_name. | | year | Tidak | integer | 1992 | Tahun kelahiran yang telah diratakan secara warisan (gunakan dengan month dan day). | | month | Tidak | integer | 7 | Bulan kelahiran yang telah diratakan secara warisan. || day | Tidak | integer | 16 | Tanggal kelahiran (versi lama). | | hour | Tidak | integer | 13 | Jam kelahiran (versi lama). | | minute | Tidak | integer | 45 | Menit kelahiran (versi lama). | | lat | Tidak | angka | 40.7128 | Garis lintang (versi lama) (harus dipasangkan dengan lng). | | lng | Tidak | angka | -74.0060 | Garis bujur (versi lama) (harus dipasangkan dengan lat). | | tz_str | Tidak | string | America/New_York | Alias zona waktu (versi lama). | | city | Tidak | string | New York | Bidang kompatibilitas (versi lama). | | country | Tidak | string | US | Bidang kompatibilitas (versi lama). |

birth Bidang Objek| Nama | Wajib | Tipe | Contoh | Deskripsi |

|------|----------|------|---------|-------------| | birth.date | Ya (jika birth disediakan) | string | 1992-07-16 | Tanggal lahir (YYYY-MM-DD). | | birth.time | Tidak | string | 13:45 | Waktu kelahiran (HH:MM, dalam format 24 jam). | | birth.coordinates | Tidak | objek | { "latitude": 40.7128, "longitude": -74.006 } | Blok koordinat. | | birth.coordinates.latitude | Tidak | angka | 40.7128 | Rentang: -90 hingga 90. | | birth.coordinates.longitude | Tidak | angka | -74.0060 | Rentang: -180 hingga 180. | | birth.timezone | Tidak | string | America/New_York | Zona waktu IANA. |

Bidang Objek `wheel````markdown

Nama Diperlukan Tipe Contoh Deskripsi
wheel.preset_id Tidak string minimal_app Diizinkan: minimal_app, editorial_full, print_clean.
wheel.preset_override_mode Tidak string merge Diizinkan: merge, preset_only.
wheel.size Tidak integer 720 Rentang: 720 hingga 2400.
wheel.theme Tidak string custom Diizinkan: night, day, aurora, paper, obsidian, sunset, zenith, mono, custom. Gunakan custom bersama wheel.theme_palette untuk kontrol warna penuh.
wheel.panel_layout Tidak string bottom Diizinkan: right, bottom.
wheel.accent_color Tidak string #3ddd77 Warna heksadesimal.
wheel.background_gradient Tidak array[string] ["#0b1020", "#111b3b", "#1b2f6d"] Override gradien 3 warna opsional.
wheel.panel_opacity Tidak number 0.78 Rentang: 0.2 hingga 1.0.
wheel.theme_palette Tidak object { "center_fill": "#0d1832", "panel_opacity": 0.78 } Override palet tema kustom opsional (lihat Tema Roda Kustom). Override parsial diizinkan pada tema apa pun; wajib saat theme adalah custom.
wheel.aspect_line_opacity Tidak number 0.58 Rentang: 0.1 hingga 1.0.
wheel.show_aspect_lines Tidak boolean true Tampilkan garis aspek.
wheel.show_house_cusps Tidak boolean true Tampilkan penanda cusp rumah.
wheel.show_house_numbers Tidak boolean true Tampilkan nomor rumah.
wheel.show_sign_symbols Tidak boolean true Tampilkan simbol zodiak.
wheel.show_sign_names Tidak boolean true Tampilkan label zodiak.
```--- REVISED TRANSLATION ---
wheel.show_degree_ticks Tidak boolean true Tampilkan tanda derajat.
wheel.show_degree_labels Tidak boolean true Tampilkan label derajat.
wheel.degree_tick_interval Tidak integer 5 Rentang: 1 hingga 30.
wheel.show_planet_symbols Tidak boolean true Tampilkan glyph planet.
wheel.planet_symbol_size Tidak number 15.0 Rentang: 10.0 hingga 30.0.
wheel.planet_marker_size Tidak number 6.3 Rentang: 3.0 hingga 12.0.
wheel.show_planet_table Tidak boolean true Tampilkan panel tabel planet.
wheel.show_aspect_table Tidak boolean true Tampilkan panel tabel aspek.
wheel.show_sign_legend Tidak boolean true Tampilkan legenda tanda.
wheel.show_element_balance Tidak boolean true Tampilkan panel keseimbangan elemen.
wheel.show_metadata Tidak boolean true Tampilkan panel metadata.
wheel.show_title Tidak boolean true Tampilkan judul/subjudul.
wheel.show_angle_markers Tidak boolean true Tampilkan penanda ASC/MC.
wheel.show_center_signature Tidak boolean true Tampilkan teks tanda pusat.
wheel.title Tidak string Docs SVG Judul roda opsional.
wheel.subtitle Tidak string Expanded parity example Subjudul roda opsional.
wheel.custom_planet_colors Tidak object { "Sun": "#ffbb33" } Peta pemetaan nama planet ke warna heksadesimal.

Tema Roda Kustom (theme: "custom" + theme_palette)

Warna dan transparansi roda sepenuhnya dapat disesuaikan: atur wheel.theme menjadi custom dan berikan objek theme_palette. Hanya kunci yang Anda berikan yang akan ditimpa — sisanya kembali ke palet dasar night yang gelap.

{
  "wheel": {
    "theme": "custom",
    "accent_color": "#3ddd77",
    "theme_palette": {
      "bg_0": "#0b1730",
      "bg_1": "#101d38",
      "bg_2": "#0a1326",
      "panel_fill": "#0c1730",
      "panel_opacity": 0.78,
      "sign_line": "#2b3f63",
      "ring_inner": "#34486a",
      "center_fill": "#0d1832",
      "center_stroke": "#1e2f4a",
      "divider": "#2a3f64",
      "subtitle": "#8fa2c2",
      "text": "#dbe7f8",
      "soft_text": "#9fb0cd"
    }
  }
}

Kunci theme_palette

Kunci Tipe Yang dikontrol
bg_0 / bg_1 / bg_2 hex (#rrggbb) Titik berhenti gradien latar belakang
panel_fill hex Isi panel planet/legenda
panel_opacity float 0–1 Transparansi panel
sign_line hex Garis batas zodiak
ring_inner hex Goresan cincin roda bagian dalam
center_fill hex Isi pusat roda (cakram tanda pusat)
center_stroke hex Goresan pusat roda
divider hex Pembatas / batas kartu
subtitle / text / soft_text hex Warna tipografi

Aturan

  • Override parsial — hanya kunci yang Anda berikan yang diterapkan; sisanya kembali ke palet dasar tema (custom menggunakan dasar night gelap).
  • Nilai warna harus berupa hex 7 karakter (#rrggbb); panel_opacity harus berupa float dalam [0, 1]. Kunci yang tidak dikenal atau nilai tidak valid → kesalahan validasi 422.
  • theme_palette wajib saat theme adalah "custom".
  • Pada tema bernama (mis. paper), theme_palette berfungsi sebagai override parsial.
  • Hanya visual roda yang berubah — perhitungan bagan, posisi, dan aspek tidak pernah terpengaruh.

Contoh tema kustom

curl --request POST \
  --url "https://api.numerologyapi.com/api/v1/birth-chart/svg" \
  --header "X-API-Key: YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "birth": {
    "date": "1992-07-16",
    "time": "13:45",
    "coordinates": { "latitude": 40.7128, "longitude": -74.006 },
    "timezone": "America/New_York"
  },
  "wheel": {
    "theme": "custom",
    "accent_color": "#3ddd77",
    "theme_palette": {
      "bg_0": "#0b1730",
      "bg_1": "#101d38",
      "bg_2": "#0a1326",
      "panel_fill": "#0c1730",
      "panel_opacity": 0.78,
      "sign_line": "#2b3f63",
      "ring_inner": "#34486a",
      "center_fill": "#0d1832",
      "center_stroke": "#1e2f4a",
      "divider": "#2a3f64",
      "subtitle": "#8fa2c2",
      "text": "#dbe7f8",
      "soft_text": "#9fb0cd"
    }
  }
}'

Prioritas theme lama pada endpoint ini

Bidang theme tingkat atas yang lama masih didukung:

  1. theme tingkat atas eksplisit (mis. "theme": "dark") menang.
  2. Jika tidak, wheel.theme (mis. "custom" + theme_palette) digunakan.
  3. Jika tidak, default historis classic (→ paper) berlaku.

Alias lama: classic → paper, light → day, dark → night, dark-high-contrast → obsidian.

Contoh Mode Personalisasi (Direkomendasikan)

curl --request POST \
  --url "https://api.numerologyapi.com/api/v1/birth-chart/svg" \
  --header "X-API-Key: YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "sign": "CANCER",
  "target_date": "2026-04-08",
  "zodiac_system": "tropical",
  "ayanamsa": "lahiri",
  "house_system": "placidus",
  "node_type": "true",
  "tenant_id": "docs-smoke",
  "user_name": "Docs Smoke User",
  "output_mode": "wheel_only",
  "include_wheel_svg": true,
  "split": false,
  "round_wheel_only": true,
  "transparent_background": true,
  "svg_compression": "none",
  "language": "en",
  "locale": "en-US",
  "birth": {
    "date": "1992-07-16",
    "time": "13:45",
    "coordinates": { "latitude": 40.7128, "longitude": -74.006 },
    "timezone": "America/New_York"
  },
  "wheel": {
    "preset_id": "minimal_app",
    "theme": "paper",
    "panel_layout": "bottom",
    "size": 720
  }
}'

Contoh Mode Publik (Berdasarkan Tanda)

curl --request POST \
  --url "https://api.numerologyapi.com/api/v1/birth-chart/svg" \
  --header "X-API-Key: YOUR_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "sign": "CANCER",
  "target_date": "2026-04-08",
  "output_mode": "wheel_only",
  "split": false,
  "round_wheel_only": true,
  "language": "en",
  "locale": "en-US",
  "wheel": { "preset_id": "minimal_app", "theme": "paper", "size": 720 }
}'

Contoh Respons

Example birth chart SVG response

Contoh SVG yang Dirender

Pengaturan Cetak (Gabungkan Override) Dengan Garis Aspek Diaktifkan

Print preset with aspect lines

Contoh Tropical Zenith

Tropical zenith example

Contoh Sidereal Obsidian

Sidereal obsidian example