Beamline P64 at PETRA III is dedicated to x-ray absorption spectroscopy experiments which require high flux, like quick extended x-ray absorption fine structure spectroscopy on the sub-second time scale, high-resolution resonant emission spectroscopy, and x-ray absorption fine-structure spectroscopy of highly diluted systems. The beamline is installed at the high-energy storage ring PETRA III. The source is a 2 m-long undulator. The beamline covers an energy-range from 4 keV to 44 keV, which was required by the user community. Mirrors can be used to reduce the intensity of higher harmonics, and to focus the beam. A conventional photo-diode and a 100-pixel high-purity Ge-detector are used in fluorescence extended x-ray absorption fine-structure spectroscopy for diluted samples.