Code to run on http://api.hsmty.org/