Hello, Kevin from the states

Hi,
I am looking to apply for NIF and perhaps eventually D7. I read here that you no longer need a legal representative to maintain your NIF number, does that mean I do not need one to apply for one if I am outside Portugal. If so is there a site that I can use and get a NIF number by myself? Thanks