laeyoung / covid-19-api Goto Github PK
View Code? Open in Web Editor NEWAPI Service for tracking the COVID-19
Home Page: https://ainize.ai/laeyoung/covid-19-api
License: MIT License
API Service for tracking the COVID-19
Home Page: https://ainize.ai/laeyoung/covid-19-api
License: MIT License
Hi @Laeyoung
Bad news is, the Wordpress plugin team has shut my plugin down, they send me a email I quote:
A legal issue with the service you're using was brought to our attention.
Your plugin uses https://github.com/Laeyoung/COVID-19-API which has no published information regarding the license and terms of use for the service. It has them for the source code, which is great, but as a service they're obligated to protect you (and your users) with at the very least a terms of use or privacy policy.
We cannot reopen your plugin with this issue.
So is there any possible you can include a “term of use” or “privacy policy” in your README?
I promise the plugin will never go commercial and will always be free, I can find the ainiza.ai terms and policy goes here:
https://ainize.ai/terms
And the terms of use of “
Novel Coronavirus (COVID-19) Cases, provided by JHU CSSE” here:
https://github.com/CSSEGISandData/COVID-19/blob/master/README.md
I think you could claim your API respect the MIT license and give users freedom to use in none-commercial use including showing data on their website etc.
Thank you and best regards.
Duke Yin
South Korea
Switzerland
USA and Spain
You're using dynamic dates for the names of the {confirmed,deaths,recovered} objects in a timeseries array.
The timeseries array should really have objects of type {date, confirmed, deaths, recovered}. To consume this in mobile, you'd have to pre-define all the possible dates and have them nullable or parse the timeseries as a string and split up the values.
There is no lastupdate filed in response.
curl -X GET "https://wuhan-coronavirus-api.laeyoung.endpoint.ainize.ai/jhu-edu/brief" -H "accept: application/json"
{"confirmed":0,"deaths":0,"recovered":0}%
api/jhu-edu.js
✅ Commit 1e9d63f
• Review the file and identify areas that can be improved or refactored. • Extract common logic into separate functions or modules. • Improve the structure and readability of the code.Sandbox Execution Logs
trunk init
1/3 ✓⡿ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ⣷ Downloading Trunk 1.16.0... ✔ Downloading Trunk 1.16.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 10 linters were enabled (.trunk/trunk.yaml) checkov 2.4.9 (1 docker, 7 json, 2 yaml files) git-diff-check (16 files) hadolint 2.12.0 (1 docker file) (created .hadolint.yaml) markdownlint 0.37.0 (1 markdown file) (created .markdownlint.yaml) osv-scanner 1.4.0 (1 lockfile file) prettier 3.0.3 (3 javascript, 6 json, 1 markdown, 2 yaml files) terrascan 1.18.3 (1 docker file) trivy 0.45.1 (1 docker, 1 lockfile, 2 yaml files) trufflehog 3.56.1 (17 files) yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt api/jhu-edu.js
2/3 ✓✔ Formatted api/jhu-edu.js Re-checking autofixed files... Checked 1 file ✔ No issues
trunk check --fix api/jhu-edu.js
3/3 ✓Checked 1 file ✔ No issues
api/korea-kcdc.js
✅ Commit 3e9f448
• Review the file and identify areas that can be improved or refactored. • Extract common logic into separate functions or modules. • Improve the structure and readability of the code.Sandbox Execution Logs
trunk init
1/3 ✓⡿ Downloading Trunk 1.16.0... ⡿ Downloading Trunk 1.16.0... ⢿ Downloading Trunk 1.16.0... ⣻ Downloading Trunk 1.16.0... ⣽ Downloading Trunk 1.16.0... ⣾ Downloading Trunk 1.16.0... ⣷ Downloading Trunk 1.16.0... ✔ Downloading Trunk 1.16.0... done ⡿ Verifying Trunk sha256... ✔ Verifying Trunk sha256... done ⡿ Unpacking Trunk... ✔ Unpacking Trunk... done ✔ 10 linters were enabled (.trunk/trunk.yaml) checkov 2.4.9 (1 docker, 7 json, 2 yaml files) git-diff-check (16 files) hadolint 2.12.0 (1 docker file) (created .hadolint.yaml) markdownlint 0.37.0 (1 markdown file) (created .markdownlint.yaml) osv-scanner 1.4.0 (1 lockfile file) prettier 3.0.3 (3 javascript, 6 json, 1 markdown, 2 yaml files) terrascan 1.18.3 (1 docker file) trivy 0.45.1 (1 docker, 1 lockfile, 2 yaml files) trufflehog 3.56.1 (17 files) yamllint 1.32.0 (2 yaml files) (created .yamllint.yaml) Next Steps 1. Read documentation Our documentation can be found at https://docs.trunk.io 2. Get help and give feedback Join the Trunk community at https://slack.trunk.io
trunk fmt api/korea-kcdc.js
2/3 ✓✔ Formatted api/korea-kcdc.js Re-checking autofixed files... Checked 1 file ✔ No issues
trunk check --fix api/korea-kcdc.js
3/3 ✓Checked 1 file ✔ No issues
-1 day
Does the API have cors? I tried to make a request but got a cors blocking error, I downloaded an extension, but I still have that question. I think a few days ago it did not give me those messages on the console
Hi Laeyoung, this is NOT an issue
I am Duke Yin from China,
I made a WordPress plugin with your COVID-19 API (https://github.com/Laeyoung/COVID-19-API),
It called "Corona virus data", shows numbers of Cofirmed, deaths and recovers.
The plugin page:https://wordpress.org/plugins/corona-virus-data/
Thank you for providing this API, if anything inappropriate with this plugin, please let me know, I will try to fix it.
I tried to send you email, but seems your mail box is full, so I open this just to let you know. Good job!
returns an empty city and take the time to add to the country
Hello,
I have use the WP plugin but i see a error.
The API server may be down, please check your firewall settings and try again later.
Would it be possible to add an filter to the API when querying /latest to get only the data of a specific country?
Something like /latest?iso2=US or /latest?iso3=USA to get only the US-records.
Hi there, thanks for providing such a cool solution.
I'm currently playing around with your API trying to implement map visualization via https://www.react-simple-maps.io/.
The problem I'm facing right now is that I can't match some of the countries.
It would be mad cool if you could add ISO property to the country's object for such cases as well as unification in general.
Best wishes ✌️
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.