Yahi played for Algeria at the African Cup of Nations in four tournaments: 1982, 1984, 1986 and 1988. In four tournaments, he made 16 appearances and scored 1 goal.