COVID-19 API


Gunakan:

q = (corona, covid19, covid)

output = (json, xml, csv, txt, html, image, map)

image = ganti background image pada output image sesuai kebutuhan

mode = (mobile = portrait image summary)

page = membuka halaman ke berapa (default 0)

limit = membatasi jumlah data yang ditampilkan

sort = urut berdasarkan A > Z (pilih salah satu: country, state, city, district, village, otg, odp, pdp, confirm, active, recovery, fatal)

search = mencari berdasarkan semua data yang sesuai

Paremeter:

country = negara yang ingin ditampilkan

province = states atau province

city = kota atau kabupaten

district = kecamatan

village = kelurahan atau desa


Contoh:

JSON

https://host.okane.id/covid/api/?q=covid&output=json

https://host.okane.id/covid/api/?q=covid&output=json&country=indonesia&search=bali

XML

https://host.okane.id/covid/api/?q=covid&output=xml&search=bandung

CSV

https://host.okane.id/covid/api/?q=covid&output=csv&country=indonesia

HTML

https://host.okane.id/covid/api/?q=covid&output=html&village=tanah baru

https://host.okane.id/covid/api/?q=covid&output=html&search=island

IMAGE

https://host.okane.id/covid/api/?q=covid&output=image&country=bangladesh

https://host.okane.id/covid/api/?q=covid&output=image&limit=1

https://host.okane.id/covid/api/?q=covid&output=image&limit=1&image=https://i.pinimg.com/originals/5e/b0/eb/5eb0eb4aeb3185b5a40923eb5b74084b.jpg

MAP

https://host.okane.id/covid/api/?q=covid&output=map