Summary: Get COVID-19 statistics for all countries Operation ID: getAllCountries Auth: none
Returns an array of COVID-19 statistics for every country in the world. Each country object includes the same metrics as the global /all endpoint (cases, deaths, recovered, tests, etc.) plus country-specific metadata like ISO codes, population, and flag URLs. This is the primary endpoint for building country comparison dashboards or populating maps. Unlike /countries/{country} which returns a single country, this returns all ~230 countries at once. Use the `sort` parameter to order results by a specific metric like cases or deaths.
Original spec description
Returns an array of COVID-19 data for all countries.
Usage Tips
- Use `sort=cases` or `sort=deaths` to get countries ranked by impact
- The response is large (~130KB) - consider caching if calling frequently
- Each country includes a `countryInfo` object with ISO2/ISO3 codes and flag URLs
- Combine with `yesterday=true` to get day-over-day change data for all countries
- The `allowNull` parameter controls whether null values are included in the response