What APi to use for delayed historic flights

Hi
Could someone tell me what API I need to use to find out if a previous flight was delayed or not and how long it was delayed. Also, whether it was cancelled.

I would supply the flight number and flight date.
Thanks
Mark