Error hitting Google Geocode API: API keys with referer restrictions cannot be used with this API

This is coming from your settings in Google Cloud console. You probably have set restriction use for this API key (domain).

There’s already some topic about this error