Purcashing or renting? Because for me it was literally just going to a rental store and signing a stack of documents.
You're only able to really rent other places if you have a long-term visa, because the standard lease term-length in Japan is 2 years. If your visa is less than 2 years, you don't qualify.
If you do, then everything is the same as Japanese citizens. Most apartments have a deposit, a key fee (a bribe to the landlord), and a lease renewal fee (a bribe to the agent). Lease period will be 2 years. A lot of companies will pay these bribes for their employees, which I'm sure is one of the reasons they exist (and also one of the reasons gaijin apartments don't charge them).