Germany, France offer youth free cross-border rail passes
dw.com
dw.com
I found the conditions as described in the DW article not obvious, so here is an attempt at stating them more clearly:
In each country, there are 30k free tickets on a first come, first serve basis for people 18 to 27 years old.
Going forth and back multiple times between the countries is not intended, people therefore need to plan a single journey with up to seven days of travelling (in the sense of "using public transportation") in the other country. People can choose these days freely. The days also do not need to be consecutive but first and last day of the journey must be within one month from each other (while 1st of July is the earliest possible date for departure and 31st of December the latest for returning). They also need to actually depart their home country on the first day and to return to it on the last day that they chose.
These rules seem to be in place to prevent some forms of abuse of the ticket.
P.S. I am no longer affected. I benefited from a French/German youth program 45 years ago, which I am grateful for.
Of course there are unofficial sites. But firstly I would not trust that their APKs are unmodified and secondly I would not rely on it that it works with a ticket for 300 Euros or so. Some tamper/rooting detection might still trigger in an alternative firmware. Well, the youth ticket doesn't cost anything, but see above why that's not an excuse.