Thanks to our amazing Patreon supporters we are almost to our monthly goal!
If you have not already become a patron then please consider donating to BreakBlocks.com to help keep the project and community growing strong! πͺ
Retrieves a list of unique countries where Minecraft servers are located. Results are filtered to only include servers that have been pinged within the last 30 days.
None required
| Parameter | Type | Required | Description |
|---|---|---|---|
country |
string | No | Filter by country code or country name. Accepts * as a wildcard for partial matching (e.g., United* to match United States, United Kingdom, etc.) |
Get all countries:
GET /api/v0.1/servers/countries
Filter by country name (with wildcard):
GET /api/v0.1/servers/countries?country=United*
{
"unique_countries": 45,
"countries": [
{
"num_servers": 1234,
"country": "United States",
"country_code": "US"
},
{
"num_servers": 567,
"country": "United Kingdom",
"country_code": "GB"
},
{
"num_servers": 432,
"country": "Germany",
"country_code": "DE"
},
{
"num_servers": 389,
"country": "Canada",
"country_code": "CA"
}
]
}| Field | Type | Description |
|---|---|---|
unique_countries |
integer | Total number of unique countries |
countries |
array | Array of country objects |
countries[].num_servers |
integer | Number of servers in that country |
countries[].country |
string | Full country name |
countries[].country_code |
string | Two-letter ISO country code |