His first appearance for Hungary national team came in April 1922 when he played as a right winger in a friendly against Austria which ended in a 1-1 draw, and his first goal came in 7-1 win against Italy in April 1924.
Opata continued to be a regular member of the national team until for the next three years and was used by managers in all positions in the attacking line, appearing in a total of 17 matches and scoring 6 goals between 1922 and 1927.