what’s the difference between put the script of google maps
of this way
<script src="https://maps.googleapis.com/maps/api/js?key=&sensor=true"></script>
and with my google API key
<script src="https://maps.googleapis.com/maps/api/js?key=DIzaSyDrNBNwe3GPemgne7rE54wAa5ndZOt26Hw&sensor=true"></script>
I try both ways and it works, but I want to know, what’s the difference? is the same?
V3 of the Google Maps API does not require an API key. So you’re good to go.
In the time since I answered this question Google released support for API keys in v3, letting you see usage of your API site in Google’s developer console. The original answer is still accurate: API keys are not required, but they are now recommended.