API fetching and reading in Java, a little exercise for myself.