•  


GitHub - M-Media-Group/Covid-19-API: This is the code running in AWS Lambda powering covid-api.mmediagroup.fr/v1. The API provides realtime and historical data on Coronavirus COVID-19 confirmed cases, deaths, and recovered cases. This API has now been called over 40 million times, thank you!
Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

This is the code running in AWS Lambda powering covid-api.mmediagroup.fr/v1. The API provides realtime and historical data on Coronavirus COVID-19 confirmed cases, deaths, and recovered cases. This API has now been called over 40 million times, thank you!

License

Notifications You must be signed in to change notification settings

M-Media-Group/Covid-19-API

Repository files navigation

Covid-19-API

This API deprecated on the 31st of October, 2022.

This is the code running in AWS Lambda powering covid-api.mmediagroup.fr/v1

In our bid to do our part, we've created a free public API for others to build apps upon. The API returns live cases and historical data.

This API has now been called over 30 million times now!

The API has endpoints to handle historical as well as near realtime data (updated once every hour). The average API response time is between 70 and 250 ms but may take up to 3 seconds, depending if the request is in the cache or not.

You can see a human-friendly webpage that uses the API here https://mmediagroup.fr/covid-19 .

What the API is for

The API is intended for developers, machines, programs, and other websites to be able to quickly fetch up to date information on the COVID-19 epidemic.

It can be used to build tools and systems that are used for data analysis all the way to websites that act as public dashboards and charts.

Using the API

If you're a developer, you can use the API right now. Please be nice to us and cache the data locally so we don't pay too much :)!

API base:
https://covid-api.mmediagroup.fr/v1

Live cases data

Request:
GET /cases

Optional query parameters

  • country
    • Any country name (case sensitive)
  • ab
    • Any country ISO abbreviation (example: FR) (takes precedence over "country" parameter)
  • continent
    • Any world continent (example: Europe) (takes precedence over "country" parameter)

Example request:

GET /cases?country
=
France

Example response:

{
  
"All"
: {
    
"confirmed"
: 
2604595
,
    
"recovered"
: 
195365
,
    
"deaths"
: 
62548
,
    
"country"
: 
"
France
"
,
    
"population"
: 
64979548
,
    
"sq_km_area"
: 
551500
,
    
"life_expectancy"
: 
"
78.8
"
,
    
"elevation_in_meters"
: 
375
,
    
"continent"
: 
"
Europe
"
,
    
"abbreviation"
: 
"
FR
"
,
    
"location"
: 
"
Western Europe
"
,
    
"iso"
: 
250
,
    
"capital_city"
: 
"
Paris
"
,
    
"lat"
: 
"
46.2276
"
,
    
"long"
: 
"
2.2137
"
,
    
"updated"
: 
"
2020/12/26 12:21:56+00
"

  },
  
"French Guiana"
: {
    
"lat"
: 
"
4
"
,
    
"long"
: 
"
-53
"
,
    
"confirmed"
: 
12685
,
    
"recovered"
: 
9995
,
    
"deaths"
: 
71
,
    
"updated"
: 
"
2020/12/26 12:21:56+00
"

  }
}

Historical cases data

Request:
GET /history

Required query parameters

  • status
    • Confirmed
    • Deaths
    • Recovered (DEPRECIATED)

Optional query parameters

  • country
    • Any country name (case sensitive)
  • ab
    • Any country ISO abbreviation (example: FR) (takes precedence over "country" parameter)
  • continent
    • Any world continent (example: Europe) (takes precedence over "country" parameter)

Example request:

GET /
history
?country=Germany&status=deaths

Example response:

{
  
"All"
: {
    
"country"
: 
"
Germany
"
,
    
"population"
: 
82114224
,
    
"sq_km_area"
: 
357022
,
    
"life_expectancy"
: 
"
77.4
"
,
    
"elevation_in_meters"
: 
263
,
    
"continent"
: 
"
Europe
"
,
    
"abbreviation"
: 
"
DE
"
,
    
"location"
: 
"
Western Europe
"
,
    
"iso"
: 
276
,
    
"capital_city"
: 
"
Berlin
"
,
    
"dates"
: {
      
"2020-12-25"
: 
29580
,
      
"2020-12-24"
: 
29330
,
      
"2020-12-23"
: 
28909
,
      
"2020-12-22"
: 
28096
,
      
"2020-12-21"
: 
27110

    }
  }
}

Vaccines data

Request:
GET /vaccines

Optional query parameters

  • country
    • Any country name (case sensitive)
  • ab
    • Any country ISO abbreviation (example: FR) (takes precedence over "country" parameter)
  • continent
    • Any world continent (example: Europe) (takes precedence over "country" parameter)

Example request:

GET /vaccines?country
=
France

Example response:

{
  
"All"
: {
    
"administered"
: 
7927771
,
    
"people_vaccinated"
: 
2297100
,
    
"people_partially_vaccinated"
: 
5630671
,
    
"country"
: 
"
France
"
,
    
"population"
: 
64979548
,
    
"sq_km_area"
: 
551500
,
    
"life_expectancy"
: 
"
78.8
"
,
    
"elevation_in_meters"
: 
375
,
    
"continent"
: 
"
Europe
"
,
    
"abbreviation"
: 
"
FR
"
,
    
"location"
: 
"
Western Europe
"
,
    
"iso"
: 
250
,
    
"capital_city"
: 
"
Paris
"
,
    
"lat"
: 
"
46.2276
"
,
    
"long"
: 
"
2.2137
"
,
    
"updated"
: 
"
2020/12/26 12:21:56+00
"

  }
}

Authorization

No authorisation is required to fetch data from the API.

Built using this API

Feel free to share your projects that implement this API!

Data sources

Historical data:? https://github.com/CSSEGISandData/COVID-19

Realtime data:? https://opendata.arcgis.com/datasets/bbb2e4f589ba40d692fab712ae37b9ac_1.csv

Population data:
https://github.com/M-Media-Group/country-json/blob/master/src/countries-master.json

Vaccine data:? https://github.com/govex/COVID-19

Rate limits

A rate limiter is applied. Realistically, the data updates around once an hour so more frequent requests are futile (though possible). Ridiculous amount of requests will result in you being banned.

GNU AGPLv3 Licence

Additionally, we ask you to please not create API's that just use this API as the underlying source.

If you make absurd amounts of requests to our API we will block you. You can contact us to resolve the issue. Please cache the API responses with a lifetime of at least 10 minutes to avoid this happening.

About

This is the code running in AWS Lambda powering covid-api.mmediagroup.fr/v1. The API provides realtime and historical data on Coronavirus COVID-19 confirmed cases, deaths, and recovered cases. This API has now been called over 40 million times, thank you!

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
- "漢字路" 한글한자자동변환 서비스는 교육부 고전문헌국역지원사업의 지원으로 구축되었습니다.
- "漢字路" 한글한자자동변환 서비스는 전통문화연구회 "울산대학교한국어처리연구실 옥철영(IT융합전공)교수팀"에서 개발한 한글한자자동변환기를 바탕하여 지속적으로 공동 연구 개발하고 있는 서비스입니다.
- 현재 고유명사(인명, 지명등)을 비롯한 여러 변환오류가 있으며 이를 해결하고자 많은 연구 개발을 진행하고자 하고 있습니다. 이를 인지하시고 다른 곳에서 인용시 한자 변환 결과를 한번 더 검토하시고 사용해 주시기 바랍니다.
- 변환오류 및 건의,문의사항은 juntong@juntong.or.kr로 메일로 보내주시면 감사하겠습니다. .
Copyright ⓒ 2020 By '전통문화연구회(傳統文化硏究會)' All Rights reserved.
 한국   대만   중국   일본