Device for the X-ray inspection of products, in particular foodstuffs, comprising an X-ray detector device, comprising an evaluation and control unit, and comprising a radiation generation device which has at least one X-ray source for generating X-rays of a predetermined spectral width, wherein the device is designed such that the X-rays radiate through a product to be examined, the product being moved in a direction of movement at a predetermined speed of movement, (a) wherein the X-ray detector device has at least one first line detector (110, 112) which has a first discrete spatial resolution, is designed to capture the X-rays along one or more parallel first capture lines transverse to a direction of movement of a relative movement between the product to be examined and the X-ray detector device, and is designed such that it detects, in a non-spectrally resolved manner, the X-rays that have passed through the product to be examined over a predetermined capture width and generates first image data, wherein the first image data comprise a gray value for each discrete location, (b) wherein the X-ray detector device has at least one second line detector which has a second discrete spatial resolution which is smaller than the first discrete spatial resolution, wherein the at least one second line detector is designed such that it captures the X-ray radiation that has passed through the product to be examined along one or more parallel second capture lines which run parallel to the first capture lines, and detects said radiation in a discrete spectrally resolved manner over the predetermined capture width and generates second image data, wherein the X-ray quanta, for spectral resolution, are assigned, depending on their energy, to a predetermined number of energy channels, and wherein the second image data for each discrete location comprise a spectral value for each energy channel, and (c) wherein the evaluation and control unit, to which the first and second image data are supplied, is designed to evaluate the first and second image data such that at least one predetermined feature of the product to be examined is detected via a combination of the information contained in the first and second image data and at least the first discrete spatial resolution. (a) wherein the X-ray detector device has at least one first line detector (110, 112) which has a first discrete spatial resolution, is designed to capture the X-rays along one or more parallel first capture lines transverse to a direction of movement of a relative movement between the product to be examined and the X-ray detector device, and is designed such that it detects, in a non-spectrally resolved manner, the X-rays that have passed through the product to be examined over a predetermined capture width and generates first image data, wherein the first image data comprise a gray value for each discrete location, (b) wherein the X-ray detector device has at least one second line detector which has a second discrete spatial resolution which is smaller than the first discrete spatial resolution, wherein the at least one second line detector is designed such that it captures the X-ray radiation that has passed through the product to be examined along one or more parallel second capture lines which run parallel to the first capture lines, and detects said radiation in a discrete spectrally resolved manner over the predetermined capture width and generates second image data, wherein the X-ray quanta, for spectral resolution, are assigned, depending on their energy, to a predetermined number of energy channels, and wherein the second image data for each discrete location comprise a spectral value for each energy channel, and (c) wherein the evaluation and control unit, to which the first and second image data are supplied, is designed to evaluate the first and second image data such that at least one predetermined feature of the product to be examined is detected via a combination of the information contained in the first and second image data and at least the first discrete spatial resolution.