The Maps Demo Key is a no-cost feature that lets you start prototyping with Weather API without entering billing information. Validate and see your ideas in action before committing to a paid account. This page explains how the Maps Demo Key works, quotas, what features you can use, and how to get and use your key.
Note: The Maps Demo Key is intended for testing and prototyping purposes only, and is not designed for production use. Use of the Maps Demo Key is also subject to the Maps Demo Project Terms of Service.
Which features can I use with the Maps Demo Key?
The Maps Demo Key supports the Weather API and a limited set of features from the Maps JavaScript API. To use any other API or feature, you need to either add a billing account to your Maps Demo Key or create a new API key and enable billing. For more information, see Set up the Weather API.
Maps Demo Key quotas
The Maps Demo Key is subject to the usage limits, which are subject to change. If you reach the daily limit, your usage is paused until the following day with no risk of charges.
How to use the Maps Demo Key
Step 1: Get your Maps Demo Key
To generate your key, make sure you're signed in with your Google Account and click the Get a Demo Key button. After accepting the Maps Demo Key terms, your key will be displayed and will be ready to use right away.
You'll also receive an email with instructions for how to retrieve your key from the Google Cloud console.
Step 2: Use your Maps Demo Key with the Weather API
You can use your Maps Demo Key in place of a standard API key in any of the Weather API methods.
The following example demonstrates using the Maps Demo Key to get current conditions. Replace
YOUR_DEMO_KEY with the key you just retrieved.
https://weather.googleapis.com/v1/currentConditions:lookup?key=YOUR_DEMO_KEY&location.latitude=LATITUDE&location.longitude=LONGITUDE
Next steps
- Explore: Check out the documentation and try more of the features supported by the Maps Demo Key: Add a Google Map to a Web Page, 3D Maps, Markers, Events, Places UI Kit for JavaScript, Drawing on the Map, and the Weather API.
- Retrieve: You can retrieve your existing key through the Google Cloud Console.
- Upgrade: When you are ready for to move your code to a production environment, you can either add a billing account to your Maps Demo Key or create a new API key and enable billing. For more information, see Set up the Weather API .