Konverter Basis Angka
Ubah angka antara biner, oktal, desimal, heksadesimal, dan basis 36.
POST /api/v1/base-convert- Versi API
- v1
- Skema output
- 1
Path endpoint selalu /v1. Angka skema di bawah menandai bentuk output tool ini dan berubah terpisah.
Bikin akun gratis →Parameter
| Parameter | Tipe | Wajib | Default |
|---|---|---|---|
| value | text | ya | — |
| from | 2 | 8 | 10 | 16 | 36 | tidak | 10 |
Request
curl -X POST https://sinikoding.dev/api/v1/base-convert \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"value":"…","from":"10"}'
Mengembalikan
"output": { "kind": "table", "columns": ["…"], "rows": [["…"]] }
Memanggil endpoint sandbox same-origin, bukan /api/v1. Tanpa key, dibatasi 15 request per menit.
Request
curl -X POST https://sinikoding.dev/api/v1/base-convert \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"value":"","from":"10"}'
Response
Kirim request untuk melihat response-nya.