On August 8, 1963, when Ogi was a Chuo University student, he debuted for the Japan national team against Malaysia. He was selected for Japan for 1964 Summer Olympics in Tokyo and 1968 Summer Olympics in Mexico City. He played all matches in both Olympics. At 1964 Olympics, he scored winning goal against Argentina in first match. At 1968 Olympics, Japan won Bronze Medal. In 2018, 1968 Olympics team was selected Japan Football Hall of Fame. He also played at 1966, 1970 and 1974 Asian Games. He played 62 games and scored 11 goals for Japan until 1976.