Update api.php

Fixes: https://github.com/viion/XIVPads-LodestoneAPI/issues/50