A barium swallow is a type of X-ray test that helps your doctor see the back of your mouth and throat (pharynx), and the tube that extends from the back of the tongue down to the stomach (esophagus).