The diagnosis of headaches in children primarily involves a thorough clinical history and physical examination. Important aspects of the history include the onset, duration, frequency, location, and quality of the headache, as well as any associated symptoms. Neuroimaging and other diagnostic tests may be warranted if there are red flags indicating a secondary cause.