If you were using TurboTax Online last year, first, make sure you’re in the same TurboTax account as previous years. Then, if you haven’t already, you’ll need to upgrade (if you're in Free Edition) and pay for TurboTax before getting access to your filed return.
Payment instructions:
If you paid for TurboTax this year, you can download all of your returns, including prior years, until October 2018. (If you filed with Free Edition this year, you can get your current year return without paying until October.)
To access your current (if available) or prior year return:
From TurboTax FAQ:
https://ttlc.intuit.com/questions/1900748-how-do-i-get-a-copy-of-a-return-i-filed-in-turbotax-online
Another option to get your previous year return is through the IRS. More details are available in this FAQ: https://ttlc.intuit.com/questions/1901218-can-i-get-a-copy-of-my-tax-return-from-the-irs