news

news includes functions to retrieve news about Minecraft using the official API from Mojang

Warning

The format of the data returned by this API may change at any time

get_minecraft_news() MinecraftNews

Returns general news about Minecraft. It uses https://launchercontent.mojang.com/news.json as source.

Example:

news = minecraft_launcher_lib.news.get_minecraft_news()
for entry in news["entries"]:
    print(entry["title"] + ":")
    print(entry["text"])
    print()
Returns:

The news

Return type:

MinecraftNews

get_java_patch_notes() JavaPatchNotes

Returns the patch notes for Minecraft Java Edition. It uses https://launchercontent.mojang.com/javaPatchNotes.json as source.

Example:

news = minecraft_launcher_lib.news.get_java_patch_notes()
for entry in news["entries"]:
    print(entry["title"] + ":")
    print(entry["body"])
    print()
Returns:

The patch notes

Return type:

JavaPatchNotes

View the source code of this module