import requestsdef get_tfm_stats(username): # Step 1: Get Player ID profile_url = f"https://transformice.com/en/api/profile/username/username" profile_res = requests.get(profile_url)
if not profile_res.json().get('success'): return None player_id = profile_res.json()['player_id'] # Step 2: Get Stats stats_url = f"https://transformice.com/en/api/stats/player/player_id" stats_res = requests.get(stats_url) data = stats_res.json() return f"username has data['total_cheese'] 🧀 and data['total_rounds'] rounds."
As of 2025, Transformice remains active, with updates focused on cosmetics and bug fixes. The developers have not announced plans for an external API. However, the Lua scripting system is still beloved by the dedicated core community.
For developers looking to build serious tools, the best approach remains: transformice api
Transformice has been a staple of the Flash-to-HTML5 gaming world since 2010. At its core, it’s a simple physics-based platformer where mice race to collect cheese and bring it back to the hole. However, beneath the surface lies a sophisticated, community-driven ecosystem powered by Lua scripting and, crucially, for developers, the Transformice API.
If you are a streamer looking to let your chat control the game, a guild leader wanting to run statistics, or a developer building an external tool, understanding the Transformice API is your first step. import requests def get_tfm_stats(username): # Step 1: Get
This article will dissect everything you need to know: the official client API, the unofficial REST endpoints, the Atelier 801 authentication system, and how to use Lua scripting for external data fetching.
GET https://transformice.com/avatar/[username]
The developers at Atelier 801 provide a public API for accessing game data. This is the most reliable way to fetch information, though it requires authentication. As of 2025, Transformice remains active, with updates
Base URL: https://api.transformice.com/
Because Atelier 801 has not released an official public REST API for account data or game state, the community has reverse-engineered several endpoints over the years. These are typically used for: