If one is using the Alpaca Data API one can access historical minute data back 5 years. Although there are a few missing data points towards the beginning, this is an issue we are working towards solving as soon as possible.

Market Data - Documentation | Alpaca
Alpaca API lets you build and trade with real-time market data for free.