{"openapi":"3.1.0","info":{"title":"Apizie","version":"2.0.0","description":"One API key, one envelope, many public data sources."},"servers":[{"url":"https://zieapi.vercel.app"}],"security":[{"ApiKeyAuth":[]}],"paths":{"/v1/finance:fx/latest":{"get":{"operationId":"finance_fx_latest","summary":"Kurs Terbaru","description":"Kurs terbaru (atau pada tanggal tertentu) dari mata uang dasar ke mata uang lain.","tags":["finance"],"parameters":[{"name":"base","in":"query","required":false,"description":"Mata uang dasar (ISO 4217)","schema":{"type":"string","default":"USD","description":"Mata uang dasar (ISO 4217)"}},{"name":"symbols","in":"query","required":false,"description":"Mata uang tujuan, pisahkan dengan koma","schema":{"type":"string","description":"Mata uang tujuan, pisahkan dengan koma"},"example":"IDR,SGD,EUR"},{"name":"date","in":"query","required":false,"description":"Tanggal kurs (YYYY-MM-DD), kosong = terbaru","schema":{"type":"string","description":"Tanggal kurs (YYYY-MM-DD), kosong = terbaru"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/finance:fx/convert":{"get":{"operationId":"finance_fx_convert","summary":"Konversi","description":"Konversi nominal antar mata uang, mis. USD ke IDR.","tags":["finance"],"parameters":[{"name":"amount","in":"query","required":true,"description":"Nominal","schema":{"type":"number","minimum":0,"description":"Nominal"},"example":100},{"name":"from","in":"query","required":true,"schema":{"type":"string"},"example":"USD"},{"name":"to","in":"query","required":true,"schema":{"type":"string"},"example":"IDR"},{"name":"date","in":"query","required":false,"description":"Tanggal kurs (YYYY-MM-DD)","schema":{"type":"string","description":"Tanggal kurs (YYYY-MM-DD)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":3600,"x-apizie-min-plan":null,"x-apizie-bulk":true,"x-apizie-status":"live"}},"/v1/finance:fx/history":{"get":{"operationId":"finance_fx_history","summary":"Riwayat Kurs","description":"Deret waktu kurs harian antara dua tanggal.","tags":["finance"],"parameters":[{"name":"start","in":"query","required":true,"description":"Tanggal awal (YYYY-MM-DD)","schema":{"type":"string","description":"Tanggal awal (YYYY-MM-DD)"},"example":"2026-01-01"},{"name":"end","in":"query","required":false,"description":"Tanggal akhir (YYYY-MM-DD), kosong = hari ini","schema":{"type":"string","description":"Tanggal akhir (YYYY-MM-DD), kosong = hari ini"}},{"name":"base","in":"query","required":false,"schema":{"type":"string","default":"USD"}},{"name":"symbols","in":"query","required":false,"description":"Mata uang tujuan, pisahkan dengan koma","schema":{"type":"string","default":"IDR","description":"Mata uang tujuan, pisahkan dengan koma"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":21600,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}},"/v1/finance:fx/currencies":{"get":{"operationId":"finance_fx_currencies","summary":"Daftar Mata Uang","description":"Semua kode mata uang yang didukung beserta namanya.","tags":["finance"],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEnvelope"}}}},"4XX":{"$ref":"#/components/responses/Error"},"5XX":{"$ref":"#/components/responses/Error"}},"x-apizie-cache-ttl":86400,"x-apizie-min-plan":null,"x-apizie-bulk":false,"x-apizie-status":"live"}}},"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key"}},"schemas":{"RunEnvelope":{"type":"object","required":["project","data","timestamp"],"properties":{"project":{"type":"string","example":"dev-tools:hash"},"data":{},"timestamp":{"type":"string","format":"date-time"}}},"ErrorEnvelope":{"type":"object","properties":{"content":{},"message":{"type":"string"},"errors":{"type":"array","items":{}},"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}},"responses":{"Error":{"description":"Invalid key, plan gate, rate limit or upstream failure","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}}}}