{"id":13514968,"url":"https://github.com/zastrixarundell/CovidParser","last_synced_at":"2025-03-31T04:36:07.679Z","repository":{"id":42912523,"uuid":"249769159","full_name":"zastrixarundell/CovidParser","owner":"zastrixarundell","description":"A relay server for queries and blazing fast response about the situation of Covid19.","archived":false,"fork":false,"pushed_at":"2023-01-05T16:59:23.000Z","size":1703,"stargazers_count":0,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T05:26:27.281Z","etag":null,"topics":["covd-19","fast","filters","json","phoenix","query","relay-server","restful-api"],"latest_commit_sha":null,"homepage":null,"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/zastrixarundell.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-24T17:09:47.000Z","updated_at":"2020-04-24T21:15:54.000Z","dependencies_parsed_at":"2023-02-04T08:01:58.019Z","dependency_job_id":null,"html_url":"https://github.com/zastrixarundell/CovidParser","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/zastrixarundell%2FCovidParser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zastrixarundell%2FCovidParser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zastrixarundell%2FCovidParser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zastrixarundell%2FCovidParser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zastrixarundell","download_url":"https://codeload.github.com/zastrixarundell/CovidParser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246418658,"owners_count":20773934,"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":["covd-19","fast","filters","json","phoenix","query","relay-server","restful-api"],"created_at":"2024-08-01T05:01:04.675Z","updated_at":"2025-03-31T04:36:07.234Z","avatar_url":"https://github.com/zastrixarundell.png","language":"Elixir","funding_links":[],"categories":["Elixir"],"sub_categories":[],"readme":"# CovidParser \nA relay server for queries and blazing fast response about the situation of Covid19. \n\n![Covid19](https://raw.githubusercontent.com/ZastrixArundell/CovidParser/master/assets/static/images/covid-19.png \"Covid19\")\n\n## How does this work?\nCovidParses gets the data from [john_hopkins_csse_data](https://wuflu.banic.stream/john_hopkins_csse_data.json) or any site specified with `COVID_DATA_URL` (**The structure of the JSON response needs to be the same as csse_data!**) and stores in the ETS for fast response. \n\nIt as wells allows for the end user to user parameters in the URL for specified filters on the data.\n\n## General usage via REST and filters.\nIf you go to `/api` you will get all of the whole bulky JSON message. If you want to use as less processing on the client side you can then use the 2 parameters in the query, `date` and `country`.\n\n* `/api?country=sweden` will respond with every data which corresponds to Sweden.\n* `/api?country=china` will repsond with every data which corresponds to China and every province/state in it. This only does 0(1) filtering.\n* `/api?date=2020-03-24` will respond with every data which corresponds to the data 24th March 2020. (This checks the data in the format `YYYY-MM-DD HH-mm GMT` for highest precision).\n* `/api?country=serbia\u0026date=2020-03-24%2014` will respond with every data corresponding to Serbia and with the time of `2020-03-04 14` (14 hours).\n\n## In which format should I expect the data?\nYou can except data in this format:\n```json\n{\n  \"latest_fetch\": \"2020-03-24 15:16 UTC\",\n  \"timestamped_data\": [\n    {\n      \"date\": \"2020-03-24 14:30 UTC\",\n      \"areas\": [\n        {\n          \"name\": \"China\",\n          \"real_name\": \"China\",\n          \"stats\": {\n            \"confirmed\": 81588,\n            \"deaths\": 3281,\n            \"recoveries\": 73279\n          }\n        },\n        {\n          \"name\": \"Netherlands\",\n          \"real_name\": \"Netherlands\",\n          \"stats\": {\n            \"confirmed\": 5578,\n            \"deaths\": 277,\n            \"recoveries\": 3\n          }\n        }\n      ]\n    }\n  ]\n}\n```\n* `latest_fetch` is the added JSON param which shows the time of when the server performed the latest check.\n* ***Just to note:*** *some areas have sub-areas*.\n\n\n## To start your Phoenix server:\n\n  * Install dependencies with `mix deps.get`\n  * Install Node.js dependencies with `cd assets \u0026\u0026 npm install`\n  * Start Phoenix endpoint with `mix phx.server`\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\nReady to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).\n\n## Learn more\n\n  * Official website: https://www.phoenixframework.org/\n  * Guides: https://hexdocs.pm/phoenix/overview.html\n  * Docs: https://hexdocs.pm/phoenix\n  * Forum: https://elixirforum.com/c/phoenix-forum\n  * Source: https://github.com/phoenixframework/phoenix\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzastrixarundell%2FCovidParser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzastrixarundell%2FCovidParser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzastrixarundell%2FCovidParser/lists"}