Code Operator Indonesia & Prefix Code Country (World)

API sederhana untuk mengecek:


📌 Routes

🔍 Cek Operator Seluler Indonesia

GET /v1/operator/{nomor_telepon}

Contoh:

/v1/operator/081234567890

Response:

{
  "message": "success",
  "data": {
    "default_product_id": 2227,
    "image": "/telkomsel.png",
    "name": "Telkomsel",
    "description": "",
    "__typename": "OperatorAttributes"
  }
}

🌍 Cek Prefix Negara Dunia

GET /code-country

Response:

{
  "message": "success",
  "data": {
    "image": "https://flagcdn.com/{size}/{country-code}.png",
    "listCountry": [
      {
        "name": "Afghanistan",
        "code": "93",
        "code_iso": "af / afg"
      },
      ...
    ]
  }
}

🚀 How to Run Locally

  1. Clone repository ini:
git clone https://github.com/hendras1722/your-repo-name.git
  1. Install dependencies:
npm install
  1. Jalankan server:
npm run dev

📦 Tech Stack


🧑‍💻 Author

Muh Syahendra Anindyantoro
GitHub: https://github.com/hendras1722