The object of the invention is therefore to provide an x-ray device that is simple to construct and can be inexpensively produced. This object is achieved by the proposed x-ray device for examining syringe caps having a cannula and having the features that is an x-ray source, an x-ray detector, and a holder. The x-ray device is characterized in that the syringe cap is arranged in the beam path so that its longitudinal axis coincides with the main axis of the beam path. The syringe cap is thus impinged from above and from below with x-rays, in order to examine the position of the cannula.