Supporting more APIs by adjusting the way the key parameter is determined