Make api key a val

There's no reason `apiKey` should be a `var` here. Let's do the less confusing thing.