add filtering to ghost api