disease-sh / API

API for Current cases and more stuff about COVID-19 and Influenza
https://disease.sh
GNU General Public License v3.0
2.46k stars 639 forks source link

[Feature Req] Variant tracking #1019

Open ebwinters opened 3 years ago

ebwinters commented 3 years ago

Would love to be able to see how many new cases/hsopitalizations/deaths are coming from each variant on a given day. This would allow for plotting of interesting trend lines

yosoycentli commented 2 years ago

Hi there, I would like to work on this issue, if everyone is ok with that I'll be working on this. :)

ebwinters commented 2 years ago

@yosoycentli totally. Where are you planning to get the data?

yosoycentli commented 2 years ago

Hi, @ebwinters, I was thinking of getting information from this site (https://covid.cdc.gov/covid-data-tracker/#variant-proportions), apparently, they update it every week, I intend to continue looking for more sources of information but for now, I would start here.

I would like to know if the issue can be divided into two, I would like to take care of the scrapper part of the information, but I wouldn't like to deal with the integration of this with the API dashboard, maybe anyone else can do that task.

Is this possible?

ebwinters commented 2 years ago

I was thinking of getting information from this site (https://covid.cdc.gov/covid-data-tracker/#variant-proportions), apparently, they update it every week, I intend to continue looking for more sources of information but for now, I would start here. Sound good. Keep in mind their use of agency matrial policy summarized below:

1) Attribution to the agency that developed the material must be provided in your use of the materials. Such attribution should clearly state the materials were developed by CDC ATSDR and/or HHS (e.g., “Source: CDC”; “Materials developed by CDC”);

2) You must utilize a disclaimer which clearly indicates that your use of the material, including any links to the materials on the CDC, ATSDR or HHS websites, does not imply endorsement by CDC, ATSDR, HHS or the United States Government of you, your company, product, facility, service or enterprise. All such disclaimers must be prominently and unambiguously displayed (e.g., “Reference to specific commercial products, manufacturers, companies, or trademarks does not constitute its endorsement or recommendation by the U.S. Government, Department of Health and Human Services, or Centers for Disease Control and Prevention;

3) You may not change the substantive content of the materials; and

4) You must state that the material is otherwise available on the agency website for no charge.

I would like to know if the issue can be divided into two, I would like to take care of the scrapper part of the information, but I wouldn't like to deal with the integration of this with the API dashboard, maybe anyone else can do that task. Feel free to close this issue and create two new ones. However, the scraper is one piece, and the API controller portion and swagger docs is another. There is no dashboard unless you want to add it to our home page.

yosoycentli commented 2 years ago

Hi @ebwinters

I just did a PR, I'm still working on some details like the swagger documentation, the scraper test, and the removal of a dependency that I added, but the feature can be reviewed.

Stay tuned for any comments.

😃

https://github.com/disease-sh/API/pull/1030