Coughing up something

I’ve been coughing up stuff like this all day. Is this bad? Most of the time it was larger, this is something I just coughed up. My throat feels like I swallowed a cat that was on fire.

Update- I went to rapid care and they said I have a sinus infection.