On 23 March 2017, Yeray made his debut for the Spain under-21 team in a friendly match against Denmark. He was selected in the squad for that year's UEFA European Championships, before withdrawing due to illness prior to the start of the tournament.