API key support on getArticle, some minor refactoring