moving search bin to api