For a detailed analysis value of a property in spain you should hire an appraiser. They will charge you roughly 300 euros (depending on the value of the property). The appraiser uses two approaches to calculating the value of a property:
Regarding price per square meter for apartments, make sure whether you're dealing with m2 construido (constructed) or with m2 util (usable). Construido includes common space: stairs, air shafts, walls, etc. The difference between the two numbers can vary widely, but on average m2 construido is 27% more than m2 util.
If you're getting a mortgage, the bank will require you to pay for an appraisal, though they choose the appraiser. This step comes after you pay the downpayment on the property, though, so if your offer is significantly higher than the appraiser's value, you'll lose this downpayment if you back out now. For that reason, you might want to pay for your own appraisal before paying the downpayment. Some of the largest appraisers:
The following sites can give you a good idea of the value of a property: