API Cek NomorDokumentasi
Buka web

API Cek Nomor Kopken

Cek nomor Kopken terdaftar atau fresh dari script, bot, atau aplikasi kamu sendiri.

Mulai

Tiap akun punya API key sendiri. Akun = akun Telegram kamu. Tiap nomor yang dicek lewat API motong kredit akun itu sendiri, kredit yang sama kayak di bot.

  1. Buka web cek nomor, masuk pake kode dari bot Telegram (kirim /login).
  2. Di kartu API, pencet Bikin API key. Simpen key-nya, cuma muncul sekali.
  3. Isi kredit lewat bot: /topup (Rp100 per kredit).
  4. Panggil API pake key itu.
Base URL: {{BASE}}

Autentikasi

Kirim API key di header, pilih salah satu:

x-api-key: kc_xxxxxxxx
Authorization: Bearer kc_xxxxxxxx

Jaga key kamu. Siapa pun yang pegang key bisa ngabisin kredit kamu. Jangan taruh di kode frontend atau aplikasi yang bisa dibongkar orang, jangan dibagi. Kebocoran? Pencet Ganti key di web, key lama langsung mati.

Kredit

Endpoint

GET/api/v1/me

Saldo kredit + jumlah nomor yang udah kamu cek.

{
  "ok": true,
  "id": 123456789,
  "credits": 250,
  "checked": 1200,
  "price": 100
}
GET/api/v1/check/{nomor}

Cek 1 nomor. Paling gampang buat dipanggil berkali-kali (boleh barengan sampe 10 per akun).

GET /api/v1/check/081234567890

{
  "ok": true,
  "phone": "081234567890",
  "status": "fresh",
  "credits": 249
}
POST/api/v1/check

Cek banyak nomor sekali jalan, maks 100 per request. phones boleh array, boleh juga teks (dipisah enter, koma, atau spasi). Nomor dobel otomatis dibuang.

Body
{ "phones": ["081234567890", "6285700000000", "+6281311112222"] }
Respon
{
  "ok": true,
  "results": [
    { "phone": "081234567890", "status": "fresh" },
    { "phone": "085700000000", "status": "registered" },
    { "phone": "081311112222", "status": "error" }
  ],
  "summary": { "registered": 1, "fresh": 1, "other": 0, "error": 1, "charged": 1 },
  "credits": 249
}

Field tambahan kalau ada: "stopped": true (kredit abis di tengah, sisanya skipped) dan "invalid": [...] (teks yang bukan nomor).

Isi tiap hasil

FieldArti
phoneNomor, selalu format 08…
statusHasil cek, liat Status. Yang fresh motong 1 kredit

Format nomor yang diterima: 08…, 628…, +628…, atau 8…. Spasi dan strip boleh.

Status nomor

StatusArtiKredit
freshBelum terdaftar di Kopken−1
registeredUdah terdaftargratis
otherGa bisa dipastiin terdaftar atau freshgratis
errorGagal ngecek. Coba lagigratis
skippedGa dicek karena kredit abis di tengah batchgratis

Error

Kalau gagal, respon pake kode HTTP di bawah dan body {"ok": false, "error": "pesan"}.

KodeKapan
400Body salah, ga ada nomor valid, atau format nomor salah
401API key ga dikirim atau salah
402Kredit habis, top up dulu di bot
409Masih ada cek banyak kamu yang jalan (API atau bot). Tunggu kelar
413Lebih dari 100 nomor dalam 1 request
429Kebanyakan cek barengan (maks 10 per akun)
5xxGagal ngecek atau server lagi gangguan, coba lagi bentar (kredit ga kepotong)

Batas

Contoh

# saldo
curl -H "x-api-key: KEY_KAMU" {{BASE}}/api/v1/me

# cek 1 nomor
curl -H "x-api-key: KEY_KAMU" {{BASE}}/api/v1/check/081234567890

# cek banyak (maks 100)
curl -X POST {{BASE}}/api/v1/check \
  -H "x-api-key: KEY_KAMU" -H "content-type: application/json" \
  -d '{"phones":["081234567890","085700000000"]}'