A real estate agent is paid the amount due as stated in their listing agreement. This may either be from the agent representing the landlord or the tenant. For rental properties, agents typically charge the equivalent of 10% to 15% of the monthly rent for the entirety of the lease term (added up into one lump sum).
If there is co-agency, both agents will share the commission amount.