Remember that you need to have it 72 hrs Before your flight.

https://esta.cbp.dhs.gov/esta/