Summary: Get COVID-19 statistics for a specific country Operation ID: getCountry Auth: none
Returns detailed COVID-19 statistics for a specific country identified by name, ISO2 code, or ISO3 code. This is the endpoint to use when you need data for one specific country rather than the entire list. The response includes the same comprehensive metrics as /countries but for a single nation. You can look up countries by full name ("United States"), ISO2 ("US"), or ISO3 ("USA"). Use the `strict` parameter when you want exact name matching rather than partial matching.
Original spec description
Returns COVID-19 data for a specific country by country name, ISO2, or ISO3 code. Use 'counties' for US counties data.
Usage Tips
- Pass country as path parameter: /countries/USA, /countries/US, or /countries/United%20States
- Use `strict=true` for exact name matching (prevents partial matches like "India" matching "British Indian Ocean Territory")
- The `yesterday` parameter returns previous day's data for trend analysis
- You can request multiple countries at once with comma-separated values: /countries/USA,Canada,UK
- For US county-level data, use /countries/USA with additional query parameters or the /states endpoints
Parameters (5)
allowNull(string, query, optional)
Allow null values in response
Constraints: {'enum': ['true', 'false']}
country(string, path, required)
Country name, ISO2, or ISO3 code. Use comma-separated values for multiple countries.