updating script to test API key permutations for each dataset