Gambar SVG Bagan Kelahiran¶
Endpoint Gambar SVG Bagan Kelahiran mengembalikan output SVG roda kelahiran dari mesin internal dengan dukungan penuh untuk opsi roda/render.
Dukungan bahasa: Endpoint
/api/v1/birth-chart/svgyang didukung mesin ini saat ini hanya mendukung Bahasa Inggris (lang=en).
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 | paper | Diizinkan: night, day, aurora, paper, obsidian, sunset, zenith, mono. |
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.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. |
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¶
{
"content_type": "image/svg+xml",
"content_length": 31774,
"preview": "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"538\" height=\"538\" viewBox=\"0 0 538 538\"><g transform=\"translate(-111.25 -13.97)\"><circle cx=\"380.00\" cy=\"282.72\" r=\"214.32\" fill=\"none\" stroke=\"#3ddd77\" stroke-width=\"3.1\" /><circle cx=\"380.00\" cy=\"282.72\" r=\"144.40\" fill=\"none\" stroke=\"#ad9478\" stroke-width=\"2.3\" /><circle cx=\"380.00\" cy=\"282.72\" r=\"90.97\" fill=\"#f0e7d8\" stroke=\"#c4ad92\" stroke-width=\"1.0\" opacity=\"0.95\" /><line x1=\"380.00\" y1=\"65.19\" x2=\"380.00\" y2=\"55.11\" stroke=\"#c7b399\" stroke-width=\"1.4\" opacity=\"0.86\" /><text x=\"380.00\" y=\"49.11\" text-anchor=\"middle\" dominant-baseline=\"middle\" font-size=\"10.0\" font-family=\"'Menlo','Consolas','SFMono-Regular','DejaVu Sans Mono','Liberation Mono',monospace\" fill=\"#745f47\">0\u00b0</text><line x1=\"398.77\" y1=\"68.15\" x2=\"399.33\" y2=\"61.74\" stroke"
}