Update api.php

Fix by @FlyerUA https://github.com/viion/XIVPads-LodestoneAPI/commit/54a584d182510b01798bfc5c48ed897a60c36845#commitcomment-8338967