The key question is where is the blood originating. It could be from your throat, your sinuses, your larynx or down in your lungs. The yellow mucus suggests an infection. Given the symptoms in your nose, throat and ears, the most likely site is your sinuses. That could also be the reason for the headache you had. You may or may not need an antibiotic for the presumed infection, but only if it is bacterial. You should have a good exam of your ears, nose and throat.
But I would see a docotr ASAP just to be sure.
Kim