Ejemplos
Copia y ejecuta los ejemplos cURL reemplazando YOUR_KEY_HERE.
Consultar saldo
Sección titulada «Consultar saldo»curl -X GET "https://api.zelnum.com/api/v1/balance" \ -H "X-API-Key: YOUR_KEY_HERE"Enviar detección
Sección titulada «Enviar detección»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"] }'Subir archivo
Sección titulada «Subir archivo»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"Consultar estado de tarea
Sección titulada «Consultar estado de tarea»curl -X GET "https://api.zelnum.com/api/v1/tasks/xKj9aP3qLm7v" \ -H "X-API-Key: YOUR_KEY_HERE"Obtener URL de descarga
Sección titulada «Obtener URL de descarga»curl -X GET "https://api.zelnum.com/api/v1/tasks/xKj9aP3qLm7v/result" \ -H "X-API-Key: YOUR_KEY_HERE"