Open the project in Google Cloud Console, and navigate to API & Services > Credentials > Create Credentials > Choose API. You can copy the API key in a pop-up. That's all.