You can apply for the visa through the website of the Federal Authority for Identity and Citizenship — ICA (the Channel for residency and citizenship), or the General Directorate of Residency and Foreigners Affairs (GDRFA) which works under the ministry. While ICA offers only online channels, GDRFA offers both online and offline channels.