Skip to content
COVID-19 GraphQL API
TypeScript
Branch: master
Clone or download

Latest commit

1
Latest commit 3187fda Apr 1, 2020

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
api added cors Mar 18, 2020
resolvers added cors Mar 18, 2020
.gitignore initial commit Mar 16, 2020
LICENSE Create LICENSE Mar 16, 2020
README.md shrug Apr 1, 2020
codegen.yml initial commit Mar 16, 2020
now.json added cors Mar 18, 2020
package.json added cors Mar 18, 2020
schema.ts change schema Mar 18, 2020
server.ts added cors Mar 18, 2020
tsconfig.json initial commit Mar 16, 2020
yarn.lock added cors Mar 18, 2020

README.md

Covid19 GraphQL API

https://covid19-graphql.now.sh

Deploy with ZEIT Now

Data is pulled directly from https://github.com/pomber/covid19, which is a JSON representation of https://github.com/CSSEGISandData/COVID-19. All data is up to date.

Example query

query {
  # time series data
  results (countries: ["US", "Canada"], date: { lt: "3/10/2020" }) {
    country {
      name
    }
    date
    confirmed
    deaths
    recovered
    growthRate
  }

  # by country
  country(name: "US") {
    name
    mostRecent {
      date(format: "yyyy-MM-dd")
      confirmed
    }
  }
}

Zeit verified open source: https://covid19-graphql.now.sh/_src

Projects using this API

  • I am Covid -19 🦠 (repo) - Visualization of the covid-19 dataset using Nuxtjs(vuejs), Graphql and valuable information about geeting through the Covid-19 pandemic.
  • covid19-bot (repo) - Chat bot for showing information about the Covid-19 pandemic.

Add yours +

License

MIT Licensed. PRs welcome! :)

You can’t perform that action at this time.