As the previous poster said, check the API docs. It used to be 6 months. I think it may have been extended to 12 now. However not all software supports this as there a some issues with the API and some limitations that may cause some vendors to not fully support it.
It definately can do more than 10 days. I have my own code for downloading and it most definately does work.
IB's data for SPY go all the way back to April 23, 2004, intraday, with full tick-by-tick time and sales. This is more than 2 years of tick-by-tick data.