Gift Links
Recent MouseHunt reward and gift links, newest first. Expired gifts are hidden by default.
Get gift links
Recently shared gift links, newest first. Cached for 15 minutes.
Query parameters
- Name
limitTypeintegerDescriptionMaximum number of links to return. Defaults to 25, capped at 250. - Name
expiredTypebooleanDescriptionInclude expired gifts when set totrue,1, oryes. Defaults tofalse.
Properties
- Name
countTypeintegerDescriptionNumber of matching links beforelimitis applied. - Name
linksTypearray of valuesDescriptionThe 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, includingcode,url,reward,finder, andfinderName. - Name
links[].giftTypeobjectDescriptionGift details from MouseHunt, includingname,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=2const response = await fetch('https://api.mouse.rip/gift-links?limit=2')
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
}
]
}