API Kode Negara

Akses data kode negara yang komprehensif untuk aplikasi Anda

Base URL

https://country-code.com/api

Endpoint yang Tersedia

GET

Dapatkan Semua Negara

/api/countries

Ambil daftar lengkap semua negara dengan kode panggilan mereka.

Respons termasuk:

  • Nama negara dan ID
  • Kode panggilan internasional
  • Kode negara ISO2 dan ISO3
  • Informasi mata uang
  • Zona waktu dan wilayah
GET

Dapatkan Detail Negara

/api/countries/:id

Dapatkan informasi detail untuk negara tertentu.

Termasuk semua di atas ditambah:

  • Petunjuk panggilan langkah demi langkah
  • Kode area kota
  • Contoh panggilan internasional
  • URL gambar bendera

Contoh Respons API

{
  "id": "united-states",
  "name": "United States",
  "code": "+1",
  "iso": "US",
  "iso3": "USA",
  "region": "North America",
  "timezone": "UTC-5 to UTC-12",
  "currency": {
    "code": "USD",
    "name": "US Dollar",
    "symbol": "$"
  },
  "flag": "/flags/us.png",
  "example": "+1 212 555 1234",
  "dialingInstructions": {
    "international": "+1 XXX XXX XXXX",
    "steps": [
      "Dial your country's international access code",
      "Dial the US country code: 1",
      "Dial the area code and phone number"
    ]
  },
  "cityCodes": [
    { "city": "New York", "code": "+1 212" },
    { "city": "Los Angeles", "code": "+1 213" }
  ]
}

Segera Hadir di Platform API Kami

Fitur-fitur kuat ini sedang dalam pengembangan

Real-time Data

Live timezone information, current local time, and dynamic country data updates.

API Authentication

Secure API keys, rate limiting, and usage analytics for production applications.

Advanced Filtering

Filter countries by region, timezone, currency, or calling code patterns.

Mobile SDK

Native iOS and Android SDKs for seamless mobile app integration.

Webhooks

Real-time notifications for country data changes and updates.

GraphQL Support

Flexible GraphQL API for custom queries and efficient data fetching.

🚀 Full API Platform Coming Soon

Our comprehensive API platform with authentication, rate limiting, and advanced features is currently in development. The current endpoints are free to use for testing and development.

Pedoman Penggunaan Saat Ini

Pembatasan Tingkat

Saat ini tidak ada batasan tingkat yang diberlakukan.

Kesegaran Data

Data negara diperbarui secara berkala.

Dukungan CORS

CORS diaktifkan untuk aplikasi web.

Dukungan

Untuk pertanyaan tentang API, hubungi kami melalui situs web kami.