sharp head pain

I get migraines often, but on the right side of my head, right near my temple, im getting this sharp pain. It lasts about 30 seconds and happens every 5-10 minutes. Any ideas on what it could be? I took my migraine medication and it hasnt helped like it usually does.