Creating a more general approach to the HNSearchApi