How to get a TomTom API Key
- What is an API Key and why do I need it?
- How to get an API key for Maps APIs?
- How to use TomTom API Keys?
- How to try out Maps SDK for Web in CodePen using my API Key?
TL;DR : for security reasons and analytics. API stands for application programming interface. When you use our location services (our APIs), we need a way to identify that it's your application that's making the request to use the service (API).
Thanks to the API Key we can:
Prevent abuse.
Provide you with useful analytics.
How to get an API key for Maps APIs
To get your API key, you first need to be registered for the TomTom Developer Portal. If you don't have an account, no worries! click now before continuing.
Once you are registered, go to your and locate the key that you would like to use (we’ve created first one for you, it’s called My first API key).
Copy the key.
And you're done! You can now explore - we recommend trying our examples, tutorials, and tech articles on our blog. Happy coding :).
How to use TomTom API Keys?
Eager to see the result right away? Here is an example that we’ve prepared for you to get started. Remember to replace Your_API_Key with your own key (that you can grab from the dashboard). Then paste the whole query in your browser address bar and hit enter.
https://api.tomtom.com/map/1/tile/basic/main/0/0/0.png?
view=Unified&key=YOUR_API_KEY
You should now see a map tile containing the whole world. Success!
Let's look at a more general example.
Through the documentation on Developer Portal, you will find API request URL formats looking somewhat like the one below:
Then replace required parameters according to the service documentation - you’ll find all the details in the Required parameters tables inside each endpoint documentation - and you are ready to make your second request with TomTom APIs.
Remember that you can also evaluate TomTom APIs with our API Explorer (Maps, Search, Routing, Traffic) without writing a line of code.