How do I get my tax identification number

Hello I'm needing to get a history of my last three years I've filled and in order to obtain this information, I have to have my itin number. how do I get this?