how far in advance do you need to get an esta?
Although your ESTA application can be approved in seconds, it's recommended that you apply at least 72 hours before departure. In fact, you may want to apply as soon as you decide on travel dates, just in case your travel authorisation is denied.