This is an GraphQL API Wrapper for the Indonesian Government's Covid-19 API Endpoint. (Reference below for resources used)
The resources provided by the Indonesian government are notably tedious, inconsistent, and hard to read and understand. As such, this API is created to provide much cleaner and easier to use data for the public to use; while at the same time integrating GraphQL for cleaner usage.
This API is a work in progress. You are free to use as is or contribute to the progress.
Feel free to request a feature or extra data that you think are important to be included in an endpoint! I'll be more than happy to work on it.
- express
- express-graphql
- axios
All endpoints starts with the following root url:
Followed by the version of the API
v1
Example:
https://covidgql.harjuno.xyz/v1/
-
/indonesia/graphql
Endpoint for the GraphQL API
Use query parameter: query to send the query for the data you want to retrieve.
Example:/indonesia/graphql?query=%7B%0A%20%20IndonesianData%7B%0A%20%20%20%20Total%7B%0A%20%20%20%20%20%20JumlahPositif%0A%20%20%20%20%20%20JumlahDirawat%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D
-
/indonesia/graphiql
Endpoint for the GraphiQl Interface -
/indonesia/
Endpoint for the REST -
/province/graphql
Endpoint for the GraphQL API
Use query parameter: query to send the query for the data you want to retrieve.
Example:/province/graphql?query=%7B%0A%20%20IndonesianData%7B%0A%20%20%20%20Total%7B%0A%20%20%20%20%20%20JumlahPositif%0A%20%20%20%20%20%20JumlahDirawat%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D
-
/province/graphiql
Endpoint for the GraphiQl Interface -
/province/
Endpoint for the REST
- https://data.covid19.go.id/public/api/update.json (Seluruh Indonesia)
- Jumlah penambahan harian sejak awal pandemi
- Jumlah penambahan terbaru
- Total kasus sejak awal pandemi
- https://data.covid19.go.id/public/api/prov.json (Per Provinsi)
- Total kasus sejak awal pandemi berdasarkan provinsi
- Jumlah penambahan terbaru berdasarkan provinsi
- https://data.covid19.go.id/public/api/prov_time.json
- Penambahan harian seluruh indonesia sejak awal pandemi
- Penambahan harian berdasarkan provinsi sejak awal pandemi
- Total kasus per hari berdasarkan provinsi sejak awal pandemi