You can get an information about the past of the car, from the official distributor of the brand that you will buy. And also, you can use mobile operators' services to understand, if the car had and accident registration in any insurance company. Operators charge for this service but its worth.