If you have a child in Spain, you are automatically entitled to receive 2500 euros, which is transfered to your bank account within one month. I had my second baby in Spain :). This law applies to anyone, including foreigners.

THere is a catch, you must have lived in Spain for at least two years before the birth, otherwise you don't see a cent.

My daughter was born in Doha...no benefits.