I want to start a data analysis project to analyze flight delay times in Madrid - Barajas airport and relate those to the time / distances used as thresholds to request a compensation from the airline according to European law. However, I haven't been able to find such dataset. I've been looking in the website of the Spanish flight authority, as well as Amadeus, and some other Google-fu did not help me.
But I need, specifically, is a dataset that contains origin / destination routes, the actual timetable and the scheduled one. Does such an API / historical database exist?