I would recommend you to use the CoinMarketCap API if what you want are historical prices.
There are also libraries like ccxt where you can probably find this information as well.
However, you have to keep in mind that due to the number of exchanges these prices are approximations, and there is no such a thing as a "unique" price for bitcoin.