Gift Links
Recent MouseHunt reward and gift links, newest first. Expired gifts are hidden by default.
Get gift links
Query parameters
- Name
limitTypeintegerDescriptionMaximum number of links to return. Defaults to
25and is capped at250. - Name
expiredTypebooleanDescriptionInclude expired gifts when set to
true,1, oryes. Defaults tofalse.
Properties
- Name
countTypeintegerDescriptionTotal number of matching stored links before applying
limit. - Name
linksTypearrayDescriptionThe matching links, newest first.
- Name
links[].idTypestringDescriptionStable identifier for the link.
- Name
links[].messageIdTypestringDescriptionID of the Discord announcement containing the link.
- Name
links[].timestampTypeintegerDescriptionTime the announcement was posted, as a Unix timestamp in milliseconds.
- Name
links[].parsedTypeobjectDescriptionValues parsed from the announcement, including
code,url,reward,finder, andfinderName. - Name
links[].giftTypeobjectDescriptionGift details from MouseHunt, including
name,image,quantity,expiresAt,id,hash, andurl. Details that could not be retrieved arenull. - Name
links[].expiredTypebooleanDescriptionWhether the gift's expiration time has passed.
Request
GET
https://api.mouse.rip/gift-links?limit=10const giftLinks = await fetch(
'https://api.mouse.rip/gift-links?limit=10',
).then((res) => res.json())
console.log(giftLinks)
Response
{
"count": 42,
"links": [
{
"id": "1234567890-6ikkbr",
"messageId": "1234567890",
"timestamp": 1783706400000,
"parsed": {
"code": "6ikkbr",
"url": "https://mshnt.ca/6ikkbr",
"reward": "5 Chrome Bits",
"finder": "About24Pandas",
"finderName": "About24Pandas"
},
"gift": {
"name": "5 Chrome Bits",
"image": "https://www.mousehuntgame.com/images/items/stats/large/example.png",
"quantity": 5,
"expiresAt": 1784311200000,
"id": "483392733",
"hash": "example",
"url": "https://www.mousehuntgame.com/claimgift.php?gift_id=483392733&gift_hash=example"
},
"expired": false
}
]
}