api.php

recent post api bug fix