We investigated silicon-based avalanche photodiodes (APDs) as X-ray detectors in terms of their linearity, maximum counting rates, and dynamic range with 8.4 keV synchrotron radiation. Measurements resulted in counting rates that extend from the APD's noise level of 10(-2) Hz to saturation counting rates in excess of 10(8) Hz. In addition, by monitoring the APD's noise level and photon counting efficiency between synchrotron bursts, we demonstrate nine orders of magnitude dynamic range.