Skip to content

SorataBaka/CovidGraphQL

Repository files navigation

Indonesian COVID-19 GraphQL API Data

What is this for?

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.

Notes

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.

Libries Used

  • express
  • express-graphql
  • axios

Root Endpoint

All endpoints starts with the following root url:

https://covidgql.harjuno.xyz/

Followed by the version of the API

v1

Example:

https://covidgql.harjuno.xyz/v1/

Notable Endpoints

  • /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

Notable Resources:

Releases

No releases published

Packages

No packages published