Add search to statements API