What pain medication can I take if I'm allergic to aspirin and ibuprofen?

Opioids. Allergy to nsaids like Aspirin and inbuprofen does limit some options. It does not limit the use of opioids (narcotics) like oxycodone, hydrocodone, codeine, and morphine.
Acetaminophen. Acetaminophen (tylenol) is a safe alternative. You can take 2 extra strength (500mg) tablets up to four times per day.