Update api.php

Tweaks for https://github.com/viion/XIVPads-LodestoneAPI/pull/47