To get to the root cause of your headaches it is best for you to see a functional medicine practitioner (physician or PA or NP) and get a thorough evaluation by going over your medical history, diet, lifestyle, sleep, medications; as well as to have a physical exam and lab work done.