Update API ranking algorithm