I think FlightAware API is what you need.
Up to $5 free per month which should be enough to query at least 50 flights.