We report XAFS investigations of BaBiO 3 and Ba 0 . 6 K 0 . 4 BiO 3 in the temperature range from 10 K to 300 K extending out to fourth nearest neighbours. The results show that in both systems the local structure differs substantially from the average structure determined by neutron diffraction measurements. At temperatures up to at least T = 80 K the local oxygen octahedra rotations in BaBiO 3 have in addition to the [110] component a disordered rotation component about the [001] axis. To within the experimental accuracy the local rotation components about the [100], [010] and [001] axes are equal. The results in superconducting Ba 0 . 6 K 0 . 4 BiO 3 , are consistent with oxygen octahedra rotations either around [111] or [110] type axes. If the rotation is assumed to be about [111] type axes, the rotation angles are 4.5° up to at least T = 220 K. This local rotation exists in spite of the fact that the crystal is on the average cubic at all temperatures. A theoretical study of the effect of these random rotations on the superconducting properties of Ba 1 - x K x BiO 3 may be of interest.