ociddaja2/hoyoverse-api — reverse-engineered prompt

Reverse engineered prompt

GitHub

Build me a fast fan made HoYoverse API that people can call over HTTP.

It should have a base path of /mihoyo and a simple info endpoint that returns the API name, version, uptime, and available routes. Add endpoints for Genshin Impact, Honkai: Star Rail, Zenless Zone Zero, Honkai Impact 3rd, and Tears of Themis. For each game, users should be able to get redemption codes split into active and inactive codes with rewards.

Also add calendar endpoints for Genshin Impact and Star Rail that return current events, banners, challenges, rewards, images, start times, and end times. Add news endpoints for events, notices, and info posts from HoYoLab, with a language option and English as the default.

Please include consistent JSON errors for unknown games, bad languages, upstream failures, and missing routes. Add basic IP rate limiting and in memory caching so repeated requests do not hammer the source sites. Look up current docs online if you need to.

Want more depth? Deep Reverse