API to fetch recent posts