Endpoint
GET
/api/predict
Query Parameters
names
(string, optional)
Comma-separated egg keys (e.g., DragonEgg,GoldenEgg).
rarities
(string, optional)
Comma-separated rarity levels (e.g., Legendary,Mythic).
Example Request (cURL)
curl -X GET "https://yourdomain.com/api/predict?names=DragonEgg&rarities=Legendary"
Response Format (JSON)
{
"data": [
{
"eggKey": "DragonEgg",
"displayName": "Dragon Egg",
"rarity": "Legendary",
"availableAreas": ["Volcano"],
"rawPrediction": {
"Area": "Volcano",
"Slot": "Slot1",
"Phase": "Day",
"TimeAt": 1724000000
}
}
]
}