Barta was selected to play for the German national team for the 2010 Winter Olympics. He previously represented Germany at the 2003 World Junior Ice Hockey Championships, the 2005, 2006, 2007, 2009, 2010 and 2011 Ice Hockey World Championships, and the 2006 Winter Olympics.