Methods now throw IOException when the api can't be accessed.