Yes, I do agree, it is better not to rush and have the car checked in muroor for traffic violations, i don't think they will provide you with history, but if it is still under warranty, you can check with the agency.
If you are thinking of accidents, take it to painting Garage, and they will know just from seeing the car, they live with accidents and they know every small detail accident leaves...

Hope this useful.....