If you are interested, here's a job search: https://www.amazon.jobs/location/madrid-spain?base_query=&lo...
I will echo what others said though: you need to speak Spanish in Madrid in order to survive, more so than in Barcelona. Outside of the more touristy areas English may not be enough in many places.