aregee / covid-tracker-news-graphql

Covid-19 live data api

Home Page:https://covid-tracker-news-graphql.now.sh/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CovidTracker GraphQL API

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
    }
  }
}

Run Locally

  npx micro local.js

Projects using this API

Corona India Live Add yours +

License

MIT Licensed. PRs welcome! :)

About

Covid-19 live data api

https://covid-tracker-news-graphql.now.sh/

License:MIT License


Languages

Language:TypeScript 99.8%Language:JavaScript 0.2%