{"id":18643406,"url":"https://github.com/avencera/covid","last_synced_at":"2025-04-11T11:31:58.038Z","repository":{"id":43978501,"uuid":"246569058","full_name":"avencera/covid","owner":"avencera","description":"Tracking covid, data visualization and API for COVID-19 (novel corona virus)","archived":false,"fork":false,"pushed_at":"2023-01-05T09:43:56.000Z","size":1707,"stargazers_count":7,"open_issues_count":14,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T13:39:21.001Z","etag":null,"topics":["countries","covid","data","graphql","johns-hopkins-university","restapi"],"latest_commit_sha":null,"homepage":"https://trackingcovid.com","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/avencera.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-03-11T12:47:10.000Z","updated_at":"2021-05-30T21:07:23.000Z","dependencies_parsed_at":"2023-02-03T23:32:11.761Z","dependency_job_id":null,"html_url":"https://github.com/avencera/covid","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avencera%2Fcovid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avencera%2Fcovid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avencera%2Fcovid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/avencera%2Fcovid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/avencera","download_url":"https://codeload.github.com/avencera/covid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248384012,"owners_count":21094657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["countries","covid","data","graphql","johns-hopkins-university","restapi"],"created_at":"2024-11-07T06:06:57.967Z","updated_at":"2025-04-11T11:31:56.817Z","avatar_url":"https://github.com/avencera.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Covid API\n\n## GraphQL\n\n- **ENDPOINT** `https://api.trackingcovid.com/api/`\n- **PLAYGROUND** https://api.trackingcovid.com/api/graphiql\n- Root nodes: `[country, countries, region, regions]`\n- Example:\n\n```graphql\n{\n  regions(names: [\"Ontario\", \"Georgia\"]) {\n    name\n    days {\n      cases\n      date\n      day\n      predicted\n    }\n  }\n  countries(names: [\"Canada\", \"US\", \"Korea, South\"]) {\n    population\n    name\n    days {\n      cases\n      date\n      day\n      predicted\n    }\n  }\n}\n```\n\n## REST API\n\n### Countries\n\n- **METHOD**: GET\n- **URL**: `https://api.trackingcovid.com/api/countries`\n- **RESPONSE**:\n\n```json\n{\"Georgia\": {\"regions\": [], population: xxxxxx},\n\"Latvia\": {\"regions\": [], population: xxxxxx},\n\"Jamaica\": {\"regions\": [], population: xxxxx},\n\"Poland\": {\"regions\": [], population: xxxxxxx},\n\"Canada\": {\n  \"population\": 37590000\n  \"regions\": [\n    \"British Columbia\",\n    \"Ontario\",\n    \"Alberta\",\n    \"Quebec\",\n    \"New Brunswick\",\n    \"Manitoba\",\n    \"Saskatchewan\",\n    \"Grand Princess\"\n  ],\n ...\n }\n```\n\n### By Country\n\n- **METHOD**: GET\n- **URL**: `https://api.rackingcovid.com/api/confirmed/\u003ccountry\u003e`\n  - ex: https://api.trackingcovid.com/api/confirmed/Canada\n- **RESPONSE**\n\n```json\n{\n  \"country\": \"Canada\",\n  \"cases\": [0, 0, 1,...],\n  \"predictions\": [0.6292397306678004, 0.6990728897808295, ...],\n  \"prediction_type\": \"weighted_exponential\",\n  \"start\": \"2020-01-22\"\n}\n```\n\n### By Countries\n\n- **METHOD**: GET\n- **URL**: `https://api.trackingcovid.com/api/confirmed/?countries=\u003ccountries\u003e`\n  - ex: https://api.trackingcovid.com/api/confirmed?countries=Canada,US\n- **RESPONSE**\n\n```json\n{\n  \"regions\": {},\n  \"countries\": {\n    \"Canada\": {\n      \"cases\": [\n        0,\n        0,\n        1,\n        ...\n      ],\n      \"predictions\": [\n        0.6292397306678004,\n        0.6990728897808295,\n        ...\n      ],\n      \"prediction_type\": \"weighted_exponential\",\n      \"country\": \"Canada\",\n      \"start\": \"2020-01-22\"\n    },\n    \"US\": {\n      \"country\": \"US\",\n      \"cases\": [\n        0,\n        0,\n        1,\n        ...\n      ],\n      \"predictions\": [\n        0.1602764754993061,\n        0.19285269106150466,\n        ...\n      ],\n      \"prediction_type\": \"weighted_exponential\",\n      \"start\": \"2020-01-22\"\n    }\n  }\n}\n```\n\n### By Regions\n\n- **METHOD**: GET\n- **URL**: `https://api.trackingcovid.com/api/confirmed/?regions=\u003cregions\u003e`\n- ex: https://api.trackingcovid.com/api/confirmed?regions=Georgia,Ontario\n- **RESPONSE**\n\n```json\n{\"regions\":\n  {\"Ontario\": {\n    \"cases\": [0, 0, 1,...],\n    \"predictions\": [0.6292397306678004, 0.6990728897808295, ...],\n    \"prediction_type\": \"weighted_exponential\",\n    \"region\": \"Ontario\",\n    \"start\": \"2020-01-22\"\n   },\n  \"Georgia\": {\n    \"region\": \"Georgia\",\n    \"cases\": [0, 0, 1,...],\n    \"predictions\": [0.1602764754993061, 0.19285269106150466, ...],\n    \"prediction_type\": \"weighted_exponential\",\n    \"start\": \"2020-01-22\"\n   },\n  },\n  \"countries\": {}\n}\n```\n\n### By Countries \u0026 Regions\n\n- **METHOD**: GET\n- **URL**: `https://api.trackingcovid.com/api/confirmed/?countries=\u003ccountries\u003e\u0026regions=\u003cregions\u003e`\n- ex: https://api.trackingcovid.com/api/confirmed?regions=Georgia,Ontario\u0026countries=US,Canada,Japan\n- **RESPONSE**\n\n```json\n{\n  \"regions\": {\n    \"Ontario\": {\n      \"cases\": [\n        0,\n        0,\n        1,\n        ...\n      ],\n      \"predictions\": [\n        0.6292397306678004,\n        0.6990728897808295,\n        ...\n      ],\n      \"prediction_type\": \"weighted_exponential\",\n      \"region\": \"Ontario\",\n      \"start\": \"2020-01-22\"\n    },\n    \"Georgia\": {\n      \"region\": \"Georgia\",\n      \"cases\": [\n        0,\n        0,\n        1,\n        ...\n      ],\n      \"predictions\": [\n        0.1602764754993061,\n        0.19285269106150466,\n        ...\n      ],\n      \"prediction_type\": \"weighted_exponential\",\n      \"start\": \"2020-01-22\"\n    }\n  },\n  \"countries\": {\n    \"Canada\": {\n      \"cases\": [\n        0,\n        0,\n        1,\n        ...\n      ],\n      \"predictions\": [\n        0.6292397306678004,\n        0.6990728897808295,\n        ...\n      ],\n      \"prediction_type\": \"weighted_exponential\",\n      \"country\": \"Canada\",\n      \"start\": \"2020-01-22\"\n    },\n    \"US\": {\n      \"country\": \"US\",\n      \"cases\": [\n        0,\n        0,\n        1,\n        ...\n      ],\n      \"predictions\": [\n        0.1602764754993061,\n        0.19285269106150466,\n        ...\n      ],\n      \"prediction_type\": \"weighted_exponential\",\n      \"start\": \"2020-01-22\"\n    },\n    ...\n  }\n}\n```\n\n## Sources\n\nAll data from: [Johns Hopkins CSSE](https://github.com/CSSEGISandData/COVID-19)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favencera%2Fcovid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Favencera%2Fcovid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Favencera%2Fcovid/lists"}