API call using Java

Access to the historical API endpoints have recently been restricted. More information is available here: Historical API Endpoints are now Restricted.