Tip: During development and testing, you can register a project in the Google API Console and use a generic, unrestricted API key. Before moving your app or website into production, you should secure your API key by adding browser restrictions to the key. Read more about restricting an API key. For more information, see the detailed guide to getting an API key. Step 2: Add the API key to your application When loading the Google Maps Embed API, substitute YOUR_API_KEY in the code below with the API key you got from the previous step.