Use JSON API to fetch data

The original implementation relied on scraping a page that no longer
exists.
This change fixes issue #1.