The API for historical data is working fine. Ensure the your API key is correct. To test the working of historical data API, you can use postman.