Yahi played for Algeria at the
1979 FIFA World Youth Championship in
Japan, where he started in all four of Algeria's games and scored a goal in the opener against
Mexico, which ended 1-1. 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. In 1980, Yahi was a member of the Algerian squad at the
1980 Summer Olympics in
Moscow. However, he did not make any appearances as Algeria lost 3–0 to
Yugoslavia in the quarter-finals. Yahi was a member of the Algerian squad at the
1982 FIFA World Cup in
Spain. However, he made just one appearance as a substitute in the final group game against
Chile, replacing
Abdelmajid Bourebbou in the 31st minute. Algeria went on to win the game 3–2. ==Honours==