Retrieves available Minecraft Java Edition versions.
// Example API call to retrieve Minecraft Java Edition versions
fetch("https://mc-versions-api.net/api/java")
.then((response) => response.json())
.then((data) => {
// Handle the response data
console.log(data);
})
.catch((e) => {
// Handle errors
console.error("An error occurred:", e.error);
});
{
"result":
[
"1.20.1",
"1.20",
"1.19.4",
"1.19.3",
"1.19.2",
"1.19.1",
"1.19",
"..."
]
}
Retrieves available Forge versions.
// Example API call to retrieve Forge versions for 1.20.1
fetch("https://mv-versions-api/api/forge?version=1.20.1")
.then((response) => response.json())
.then((data) => {
// Handle the response data
console.log(data);
})
.catch((e) => {
// Handle errors
console.error("An error occurred:", e.error);
});
{
"result":["47.1.0", "47.0.50", "47.0.49", "47.0.46", "..."]
}
Performs auto-completion for Java Edition versions.
// Example API call to retrieve autocomplete data for Minecraft Java Edition versions
fetch("https://mv-versions-api/api/autocomplete/java?limit=3&text=1.2")
.then((response) => response.json())
.then((data) => {
// Handle the response data
console.log(data);
})
.catch((e) => {
// Handle errors
console.error("An error occurred:", e.error);
});
{ "result": ["1.20.1", "1.20", "1.11.2"] }
Performs auto-completion for Forge versions.
// Example API call to retrieve autocomplete data for Forge versions
fetch("https://mv-versions-api/api/autocomplete/forge?version=1.20.1&limit=3&text=47.")
.then((response) => response.json())
.then((data) => {
// Handle the response data
console.log(data);
})
.catch((e) => {
// Handle errors
console.error("An error occurred:", e.error);
});
{ "result": ["47.1.0", "47.0.50", "47.0.49"] }