Key ID can also be derived from the name of the file for the key.
Your file with the key will probably be named something like:
AuthKey_ABC1DEF11G.p8, so ABC1DEF11G is the key ID.
Team ID can be found on the Apple account webpage (upper right corner).