fixed search api end-point