Throwing up

I’ve been throwing up for a whole week. Once a day for some reason at night. I wake up nauseous. Can anybody throw some reasons out there? And should I go to the hospital?