Wallet key is from Metamask. To access your private key: open Metamask browser extension -> account options -> account details -> EXPORT PRIVATE KEY (never share this publicly!)
API key is from Infura. To access: log on to http://infura.io -> go to your project -> copy paste PROJECT SECRET (which is your key).
Hope that helps!