The main object of this paper is to characterize the perfect fluid spacetimes if its metrics are Ricci solitons, gradient Ricci solitons, gradient A-Einstein solitons and gradient Schouten solitons