News API

 

News API is a REST API for searching and retrieving news articles from multiple sources on the Web. Although the 'Business' and 'Advanced' versions aren't free, the 'Developer' is, and is quite functional.

All that's needed to begin is an API Key which can be obtained from the News API site, which also offers several libraries for accessing the API in different languages. The recommended one for Java is a bit out-of-date, and it's much easier to utilize Java 11's HttpClient class and Google GSON to map the retrieved JSON data into Java objects. All of this is encoded in my NewsUtils.java and News.java classes.

Downloads and Links


Dr. Andrew Davison
E-mail: ad@coe.psu.ac.th
Back to the third-party libraries page