The Lotto API provides access to hundreds of records of drawings for both the Powerball and Mega Millions (USA).