Update api.php

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