Contoh Lengkap
Salin dan jalankan contoh cURL ini — ganti YOUR_KEY_HERE dan parameter.
Lihat saldo
Section titled “Lihat saldo”curl -X GET "https://api.zelnum.com/api/v1/balance" \ -H "X-API-Key: YOUR_KEY_HERE"Kirim pemeriksaan
Section titled “Kirim pemeriksaan”curl -X POST "https://api.zelnum.com/api/v1/detect" \ -H "X-API-Key: YOUR_KEY_HERE" \ -H "Content-Type: application/json" \ -d '{ "product": "YOUR_PRODUCT_SLUG", "country": "CN", "phones": ["+8613800138000", "+8613900139000"] }'Unggah berkas
Section titled “Unggah berkas”curl -X POST "https://api.zelnum.com/api/v1/detect/file" \ -H "X-API-Key: YOUR_KEY_HERE" \ -F "product=YOUR_PRODUCT_SLUG" \ -F "country=CN" \ -F "file=@/path/to/numbers.txt"Cek status tugas
Section titled “Cek status tugas”curl -X GET "https://api.zelnum.com/api/v1/tasks/xKj9aP3qLm7v" \ -H "X-API-Key: YOUR_KEY_HERE"Ambil URL unduhan
Section titled “Ambil URL unduhan”curl -X GET "https://api.zelnum.com/api/v1/tasks/xKj9aP3qLm7v/result" \ -H "X-API-Key: YOUR_KEY_HERE"