The techniques used to obtain X-ray diffraction data, including single-crystal, powder, and grazing-incidence diffraction.