Abstract
We prove that an almost pseudo Z symmetric spacetime with Codazzi type of Z tensor is perfect fluid whose velocity vector field B-i is parallel. The energy density sigma of such perfect fluid spacetime is constant and the state equation is obtained. Also, this spacetime is shown to be a static spacetime. Next, it is shown that such spacetime is a GRW spacetime with Einstein fiber. This kind of spacetime is investigated in f(R) theory of gravity; in this case, we find the forms of the isotropic pressure p and the energy density sigma which are constant. Further, some energy conditions are studied in this spacetime. Finally, a concrete example of almost pseudo Z symmetric spacetimes is considered.