Historical Data (How many days)

How many days of historical data can we download through API for 1min, 30mins candlestick timeframes ? How many back days candlesticks data ???

For historical data, 1-minute and 30-minute intervals are available for the past six months, while 1-day and longer intervals are available for the past two decades.