Catch Rate
Work out the chance of catching a mouse from your trap's power, luck, and power type.
Get catch rates
The chance a trap catches a mouse, using the community's catch rate formula:
catch rate = min(1, (E·P + 2·⌊min(E, 1.4)·L⌋²) / (E·P + M))
where E is the trap's effectiveness against the mouse (1 = 100%), P the trap's power, L its luck, and M the mouse's power.
Pass your trap's total power and luck (as shown in game) and its power_type, then either:
mousefor one mouse,mice(comma-separated) for several, orlocationandcheese(plusstage,charm, andsourceif more than one setup matches) for every mouse that setup attracts, with anoverall_catch_rateweighted by attraction rate.
Effectiveness and mouse power come from community data, so treat the results as estimates.
Query parameters
- Name
power_typeTypestringDescriptionThe trap's power type, e.g.hydro(see/power-types). - Name
powerTypenumberDescriptionThe trap's total power. - Name
luckTypenumberDescriptionThe trap's total luck. - Name
mouseTypestringDescriptionA mouse ID or type. - Name
miceTypestringDescriptionComma-separated mouse IDs or types. - Name
locationTypestringDescriptionA location slug, to rate everything a setup attracts (see/attraction). Needscheese. - Name
cheeseTypestringDescriptionWithlocation: the cheese type. - Name
stageTypestringDescriptionWithlocation: the stage, if the location has more than one. - Name
charmTypestringDescriptionWithlocation: the charm type. Defaults to-(none). - Name
sourceTypestringDescriptionWithlocation:mh-toolsormhct, if both have the setup.
Properties
- Name
power_typeTypestringDescriptionThe power type used. - Name
powerTypenumberDescriptionThe trap power used. - Name
luckTypenumberDescriptionThe trap luck used. - Name
mouseTypeobjectDescriptionThe mouse'sid,type, andname. - Name
effectivenessTypeintegerDescriptionThe power type's effectiveness against the mouse, as a percentage (0means it can't be caught). - Name
mouse_powerTypenumberDescriptionThe mouse's power. - Name
catch_rateTypenumberDescriptionThe chance of catching the mouse, from0to1. - Name
minluckTypeintegerDescriptionThe luck that catches the mouse every time with this power type, ornullif it can't be caught. - Name
guaranteedTypebooleanDescriptionWhetherluckis at least the minluck. - Name
attraction_rateTypenumberDescriptionWithlocation: how often the setup attracts the mouse, as a percentage. - Name
setupTypeobjectDescriptionWithlocation: the attraction setup used (location,stage,cheese,charm,source,sample_size). - Name
overall_catch_rateTypenumberDescriptionWithlocation: the chance of catching whatever the setup attracts, from0to1. - Name
miceTypearray of objectDescriptionWithmiceorlocation: one entry per mouse.NamemouseTypeobjectDescriptionThe mouse'sid,type, andname.NameeffectivenessTypeintegerDescriptionThe power type's effectiveness against the mouse, as a percentage (0means it can't be caught).Namemouse_powerTypenumberDescriptionThe mouse's power.Namecatch_rateTypenumberDescriptionThe chance of catching the mouse, from0to1.NameminluckTypeintegerDescriptionThe luck that catches the mouse every time with this power type, ornullif it can't be caught.NameguaranteedTypebooleanDescriptionWhetherluckis at least the minluck.Nameattraction_rateTypenumberDescriptionWithlocation: how often the setup attracts the mouse, as a percentage.
Request
GET
https://api.mouse.rip/catch-rate?mouse=abominable_snow&power=1000&luck=10&power_type=hydroconst response = await fetch('https://api.mouse.rip/catch-rate?mouse=abominable_snow&power=1000&luck=10&power_type=hydro')
Response
{
"power_type": "hydro",
"power": 1000,
"luck": 10,
"mouse": {
"id": 1,
"type": "abominable_snow",
"name": "Abominable Snow Mouse"
},
"effectiveness": 100,
"mouse_power": 1900,
"catch_rate": 0.4138,
"minluck": 31,
"guaranteed": false
}