API extended to return page id