Aviation Edge Routes API provides general, passive data on operating airline routes. If you are looking for data on routes (schedules times, aircraft, airline, airport details, and more are included!) from A to B, this JSON REST API is great for you. Filter the routes based on airports, airlines, flight numbers if needed.
Get your personal API key here to test it!