{"id":13571090,"url":"https://github.com/Laeyoung/COVID-19-API","last_synced_at":"2025-04-04T07:32:59.102Z","repository":{"id":42297267,"uuid":"236986055","full_name":"Laeyoung/COVID-19-API","owner":"Laeyoung","description":"API Service for tracking the COVID-19","archived":false,"fork":false,"pushed_at":"2024-03-28T02:09:04.000Z","size":985,"stargazers_count":121,"open_issues_count":10,"forks_count":32,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-05T03:37:07.430Z","etag":null,"topics":["ainize","api-server","corona","covid-19","swagger","swagger-api"],"latest_commit_sha":null,"homepage":"https://ainize.ai/laeyoung/covid-19-api","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Laeyoung.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-29T13:16:57.000Z","updated_at":"2024-08-12T19:57:09.000Z","dependencies_parsed_at":"2024-11-05T03:32:24.509Z","dependency_job_id":"58add824-08ab-490f-b564-db01cdd32f0c","html_url":"https://github.com/Laeyoung/COVID-19-API","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laeyoung%2FCOVID-19-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laeyoung%2FCOVID-19-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laeyoung%2FCOVID-19-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Laeyoung%2FCOVID-19-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Laeyoung","download_url":"https://codeload.github.com/Laeyoung/COVID-19-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247139541,"owners_count":20890251,"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":["ainize","api-server","corona","covid-19","swagger","swagger-api"],"created_at":"2024-08-01T14:00:58.326Z","updated_at":"2025-04-04T07:32:54.074Z","avatar_url":"https://github.com/Laeyoung.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# COVID-19-API [![Docker Pulls](https://img.shields.io/docker/pulls/laeyoung/wuhan-coronavirus-api?style=plastic)](https://hub.docker.com/r/laeyoung/wuhan-coronavirus-api/) [![Total alerts](https://img.shields.io/lgtm/alerts/g/Laeyoung/COVID-19-API.svg?logo=lgtm\u0026logoWidth=18)](https://lgtm.com/projects/g/Laeyoung/COVID-19-API/alerts/)\n\n\nAPI Service for tracking the COVID-19\n\n## Try it\n[![Run on Ainize](https://ainize.ai/images/run_on_ainize_button.svg)](https://ainize.web.app/redirect?git_repo=https://github.com/laeyoung/covid-19-api)\n\n## API Document\n\n\u003eRecovered data from JHU CCSE will not be updated after March 23th. Check [this issue](https://github.com/Laeyoung/COVID-19-API/issues/16).\n\n### Endpoint\nhttps://master-covid-19-api-laeyoung.endpoint.ainize.ai/\n\n### Brief\n\n**Request:**\n```json\nGET /jhu-edu/brief\n```\n**Successful Response:**\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n{\n\t\"confirmed\": 7783,\n\t\"deaths\": 170,\n\t\"recovered\": 133\n}\n```\n\n**Curl:**\n```sh\ncurl -X GET \"https://master-covid-19-api-laeyoung.endpoint.ainize.ai/jhu-edu/brief\" -H \"accept: application/json\"\n```\n\n**Browser:**\nhttps://master-covid-19-api-laeyoung.endpoint.ainize.ai/jhu-edu/brief\n\n### Latest\n\n**Request:**\n```json\nGET /jhu-edu/latest\n```\n\nOptions\n- Filter by country's iso2 or iso3 code\n```json\nGET /jhu-edu/latest?iso2=US\n```\n- Make the sum of all the cities or the states in those countries\n```json\nGET /jhu-edu/latest?onlyCountries=true\n```\nYou can uses both options together.\n\n**Successful Response:**\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n[\n  {\n    \"provincestate\": \"Anhui\",\n    \"countryregion\": \"Mainland China\",\n    \"lastupdate\": \"2020-02-29T07:21:21.001Z\",\n    \"confirmed\": 990,\n    \"deaths\": 6,\n    \"recovered\": 821,\n    \"location\": {\n      \"lat\": 31.8257,\n      \"lng\": 117.2264\n    },\n    \"countrycode\": {\n      \"iso2\": \"CN\",\n      \"iso3\": \"CHN\"\n    }\n  }, {\n    \"provincestate\": \"Beijing\",\n    \"countryregion\": \"Mainland China\",\n    \"lastupdate\": \"2020-02-29T07:21:21.001Z\",\n    \"confirmed\": 410,\n    \"deaths\": 7,\n    \"recovered\": 257,\n    \"location\": {\n      \"lat\": 40.1824,\n      \"lng\": 116.4142\n    },\n    \"countrycode\": {\n      \"iso2\": \"CN\",\n      \"iso3\": \"CHN\"\n    }\n  }, ...\n]\n```\n\n**Curl:**\n```sh\ncurl -X GET \"https://master-covid-19-api-laeyoung.endpoint.ainize.ai/jhu-edu/latest\" -H \"accept: application/json\"\n```\n\n**Browser:**\n- https://master-covid-19-api-laeyoung.endpoint.ainize.ai/jhu-edu/latest\n- https://master-covid-19-api-laeyoung.endpoint.ainize.ai/jhu-edu/latest?iso2=US\u0026onlyCountries=true\n\n\n### Timeseries\n\n**Request:**\n```json\nGET /jhu-edu/timeseries\n```\n\nOptions\n- Filter by country's iso2 or iso3 code\n```json\nGET /jhu-edu/timeseries?iso2=US\n```\n- Make the sum of all the cities or the states in those countries\n```json\nGET /jhu-edu/timeseries?onlyCountries=true\n```\nYou can uses both options together.\n\n**Successful Response:**\n```json\nHTTP/1.1 200 OK\nContent-Type: application/json\n\n[\n  {\n    \"provincestate\": \"Anhui\",\n    \"countryregion\": \"Mainland China\",\n    \"lastupdate\": \"2020-02-29T08:15:03.208Z\",\n    \"location\": {\n      \"lat\": 31.8257,\n      \"lng\": 117.2264\n    },\n    \"countrycode\": {\n      \"iso2\": \"CN\",\n      \"iso3\": \"CHN\"\n    },\n    \"timeseries\": {\n      \"1/22/20\": {\n        \"confirmed\": 1,\n        \"deaths\": 0,\n        \"recovered\": 0\n      },\n      \"1/23/20\": {\n        \"confirmed\": 9,\n        \"deaths\": 0,\n        \"recovered\": 0\n      }, ...\n    }\n  }, {\n    \"provincestate\": \"Beijing\",\n    \"countryregion\": \"Mainland China\",\n    \"lastupdate\": \"2020-02-29T08:15:03.208Z\",\n    \"location\": {\n      \"lat\": 40.1824,\n      \"lng\": 116.4142\n    },\n    \"countrycode\": {\n      \"iso2\": \"CN\",\n      \"iso3\": \"CHN\"\n    },    \n    \"timeseries\": {\n      \"1/22/20\": {\n        \"confirmed\": 14,\n        \"deaths\": 0,\n        \"recovered\": 0\n      },\n      \"1/23/20\": {\n        \"confirmed\": 22,\n        \"deaths\": 0,\n        \"recovered\": 0\n      }, ...\n    }\n  }, ...\n]\n```\n\n**Curl:**\n```sh\ncurl -X GET \"https://master-covid-19-api-laeyoung.endpoint.ainize.ai/jhu-edu/timeseries\" -H \"accept: application/json\"\n```\n\n**Browser:**\n- https://master-covid-19-api-laeyoung.endpoint.ainize.ai/jhu-edu/timeseries\n- https://master-covid-19-api-laeyoung.endpoint.ainize.ai/jhu-edu/timeseries?iso2=US\u0026onlyCountries=true\n\n### Services using COVID-19-API\n- https://corona-board.soaple.endpoint.ainize.ai/\n- https://wordpress.org/plugins/corona-virus-data/ (WordPress plugin)\n- https://corona-three.now.sh/\n\n### Original data source\n- [Novel Coronavirus (COVID-19) Cases](https://github.com/CSSEGISandData/COVID-19), provided by JHU CSSE\n- [Live Corona Detector](https://github.com/LiveCoronaDetector/livecod), provided by KCDC(South Korea)\n\n## License\nThis project is released under the [MIT License](http://opensource.org/licenses/MIT). See LICENSE for details.\n\n## Terms of Use\nYou can uses this Repo and API service freely, even commercial uses. But this term of use rely on data sources. You have to check each terms of use of data sources ([JHU CSSE](https://github.com/CSSEGISandData/COVID-19/blob/master/README.md), [livecod(kor)](https://github.com/LiveCoronaDetector/livecod/blob/master/README.md)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLaeyoung%2FCOVID-19-API","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLaeyoung%2FCOVID-19-API","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLaeyoung%2FCOVID-19-API/lists"}