Memulai Menggunakan API Faskes Vaksinasi web Covid19.go.id

    API Endpoint

    https://kipi.covid19.go.id/api
                

Data API Faskes Vaksinasi yang digunakan pada web Covid19.go.id didapat dari Control Tower KPCPEN yang diupdate secara berkala (tidak realtime) kunjungi https://covid19.go.id/faskesvaksin untuk mengetahui lebih lanjut

Mendapatkan List Provinsi


# Here is a curl example
curl \
-X POST https://kipi.covid19.go.id/api/get-province
                

Untuk mendapatkan list provinsi, dapat mengakses url dengan method POST :
https://kipi.covid19.go.id/api/get-province



Result example :

{
    "curr_val": "Provinsi",
    "message": "",
    "results": [
        {
            "key": "ACEH",
            "value": "ACEH"
        },
        {
            "key": "BALI",
            "value": "BALI"
        },
        {
            "key": "BANTEN",
            "value": "BANTEN"
        },
        {
            "key": "BENGKULU",
            "value": "BENGKULU"
        },
        {
            "key": "DKI JAKARTA",
            "value": "DKI JAKARTA"
        }
    ]
}
                

Mendapatkan List Kota


# Here is a curl example
curl \
-X POST https://kipi.covid19.go.id/api/get-city
-F 'start_id=BALI'
                

Untuk mendapatkan list kota / kabupaten, dapat mengakses url dengan method POST :
https://kipi.covid19.go.id/api/get-city



Result example :

{
    "curr_val": "Pilih Kabupaten / Kota",
    "message": "",
    "results": [
        {
            "key": "KAB. TABANAN",
            "value": "KAB. TABANAN"
        },
        {
            "key": "KAB. GIANYAR",
            "value": "KAB. GIANYAR"
        },
        {
            "key": "KAB. BADUNG",
            "value": "KAB. BADUNG"
        },
        {
            "key": "KOTA DENPASAR",
            "value": "KOTA DENPASAR"
        }
    ]
}
                

QUERY PARAMETERS

Field Type Description
start_id String (mandatory) Key from Province

Mendapatkan Faskes Vaksin


# Here is a curl example
curl \
-X POST https://kipi.covid19.go.id/api/get-faskes-vaksinasi?skip=0&province=JAWA+BARAT&city=KAB.+BOGOR
                

Untuk mendapatkan list faskes vaksinasi, dapat mengakses url dengan method GET :
https://kipi.covid19.go.id/api/get-faskes-vaksinasi



Result example :

{
    "success": true,
    "message": "Success",
    "count_total": 1691,
    "data": [
      {
        "id": 4570,
        "kode": "10040305",
        "nama": "CIGOMBONG",
        "kota": "KAB. BOGOR",
        "provinsi": "JAWA BARAT",
        "alamat": "Jl. Mayjen H.R. Edi Sukma No.75, Watesjaya, Cigombong, Bogor, Jawa Barat 16740, Indonesia",
        "latitude": "-6.7441501",
        "longitude": "106.803131",
        "telp": "(0251) 8221047",
        "jenis_faskes": "PUSKESMAS",
        "kelas_rs": "",
        "status": "Siap Vaksinasi",
        "detail": [
          {
            "id": 10954,
            "kode": "10040305",
            "batch": "PETUGAS PUBLIK",
            "divaksin": 2787,
            "divaksin_1": 1641,
            "divaksin_2": 1146,
            "batal_vaksin": 0,
            "batal_vaksin_1": 0,
            "batal_vaksin_2": 0,
            "pending_vaksin": 0,
            "pending_vaksin_1": 0,
            "pending_vaksin_2": 0,
            "tanggal": "2021-07-07"
          },
          {
            "id": 11280,
            "kode": "10040305",
            "batch": "LANSIA",
            "divaksin": 387,
            "divaksin_1": 219,
            "divaksin_2": 168,
            "batal_vaksin": 0,
            "batal_vaksin_1": 0,
            "batal_vaksin_2": 0,
            "pending_vaksin": 0,
            "pending_vaksin_1": 0,
            "pending_vaksin_2": 0,
            "tanggal": "2021-07-07"
          },
          {
            "id": 11706,
            "kode": "10040305",
            "batch": "SDM KESEHATAN",
            "divaksin": 212,
            "divaksin_1": 110,
            "divaksin_2": 102,
            "batal_vaksin": 1,
            "batal_vaksin_1": 1,
            "batal_vaksin_2": 0,
            "pending_vaksin": 0,
            "pending_vaksin_1": 0,
            "pending_vaksin_2": 0,
            "tanggal": "2021-07-07"
          },
          {
            "id": 12993,
            "kode": "10040305",
            "batch": "TAHAP 3",
            "divaksin": 2374,
            "divaksin_1": 1637,
            "divaksin_2": 737,
            "batal_vaksin": 0,
            "batal_vaksin_1": 0,
            "batal_vaksin_2": 0,
            "pending_vaksin": 0,
            "pending_vaksin_1": 0,
            "pending_vaksin_2": 0,
            "tanggal": "2021-07-07"
          }
        ],
        "source_data": "Control Tower KPCPEN"
      }
    ]
}
                

QUERY PARAMETERS

Field Type Description
skip Integer (mandatory) Skip count for pagination, maximum data that can be loaded is 100, so if skip = 0 it will be loading data from 0 - 100, if skip = 1 it will be loading data from 100 - 200 and so on.
province String (optional if using parameter city, mandatory if doesn't have parameter city) Key from list Province.
city String (optional if using parameter province, mandatory if doesn't have parameter province) Key from list City.