STD testing

How long after unprotected sex do I have to wait to get tested for STD?

...I know I should’ve used protection but it is what it is now