def get_ratelimiter_config(global_configs, api_name):
    """Get rate limiter configuration.

    Args:
        global_configs (dict): Global configurations.
        api_name (String): The name of the api.

    Returns:
        float: Max calls
        float: quota period)
    """

    max_calls = global_configs.get(api_name, {}).get('max_calls')
    quota_period = global_configs.get(api_name, {}).get('period')
    return max_calls, quota_period