Some universities have their own student dormitories; others provide assistance with housing search. You should ask the international student advisor at your chosen university for advice and/or assistance, since the real estate market in Latvia is rather unsettled even for locals.
Facebook group for apartment search: Riga Student's Appartment Market
Some Rental agencies:
Student dormitories at Turība University
Photo: Marta Kive