Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can't use a restricted API key to call the Geocode API

We currently have an API key that calls this endpoint: https://maps.googleapis.com/maps/api/geocode/json?key={API KEY HERE}&address={ ZIPCODE, COUNTRY }

We would like to apply some sort of restriction to the API key for security. We tried restricting the key to only allow calls to the Geocoding API and Places API, but we get the following error: 

 

API keys with referer restrictions cannot be used with this API.

 

Has anyone been able to resolve this issue?  

0 0 52
0 REPLIES 0
Top Solution Authors