working on search api