refactored searchArticles fxn for new api v