# How to edit/update a API key of a duplicate google map

**URL:** <https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627>\
**Category:** General Questions\
**Tags:** google-maps\
**Created:** [December 27, 2024, 7:00pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627 "2024-12-27T19:00:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 27, 2024, 7:00pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/1 "2024-12-27T19:00:50Z")

</div>

I’ve created a duplicate google map as I want the exact same settings and style but for another website.

The only problem is that I can’t find a way to edit/update the API key to the new API key for the additional website.

Is there a way to do it without having to create from scratch?

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 9:07am UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/3 "2024-12-28T09:07:22Z")

</div>

Hi there, @user5002 👋

I see that you’ve sent all the needed info to my colleague Pavel and I’ve updated the API key in the duplicated widget.

Check it out and let me know if everything is fine now 🙂

---

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 28, 2024, 1:35pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/5 "2024-12-28T13:35:59Z")

</div>

It hasn’t worked but I think I sent the wrong key, can you please try this key:

(I think there was a dash in the key I sent previously.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 1:40pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/6 "2024-12-28T13:40:44Z")

</div>

Yeah, there was a dash in the key you’ve sent to Pavel.

I’ve replaced it with the new code. Could you please double-check it?

---

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 28, 2024, 1:41pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/7 "2024-12-28T13:41:45Z")

</div>

No it’s still not working, I must have done something wrong.

Is it working for you? [Mental Health Soccer Club - USA - Multi-Award Winning](https://mentalhealthsc.org/#sessions)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 1:44pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/8 "2024-12-28T13:44:19Z")

</div>

I’ve checked your website and I found the following error in your console -_RefererNotAllowedMapError_:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/d/d/ddc945e20650e9e2f5e33d2b4512724610edc1db.jpeg)

It means that you didn’t add all the required referrers to your Google Maps API key or added them incorrectly.

Please follow the steps from this article to set them up and let me know if it helped - [How to get Google API Key for Google Maps widget](https://help.elfsight.com/article/874-how-to-get-google-api-key-for-google-maps-widget#Restricting_API_key).

---

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 28, 2024, 1:53pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/9 "2024-12-28T13:53:45Z")

</div>

I have updated the API, including the website which had one additional letter that shouldn’t have been there.

It still doesn’t seem to be working though or has it not updated yet?

Can you check the website code please?

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 2:03pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/10 "2024-12-28T14:03:56Z")

</div>

The same error is still there, unfortunately. COuld you please send me a screenshot of how you’ve set the restrictions for your API Key? Here is an example of what I mean:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/8/6/865347301232bbc3fc38ca8c05518e2556146db6.png)

---

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 28, 2024, 2:05pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/12 "2024-12-28T14:05:31Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/f/9/f9f43787aec698cc2ab33ab7103a932ff41c03da.jpeg)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 2:27pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/13 "2024-12-28T14:27:12Z")

</div>

@user5002 Here is the correct variant: [https://mentalhealthsc.org/](https://mentalhealthsc.org/)\*

Also, please try to switch the API Restrictions to Restrict Key:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/1/0/10f4cda1017f64db2dd7d55039f30f5c1d3e4986.png)

---

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 28, 2024, 2:36pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/14 "2024-12-28T14:36:14Z")

</div>

It still doesn’t seem to be working…

 ![Screenshot 2024-12-28 at 2.35.40 pm](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/9/d/9d17f35a693779c8f2eee3e5b130dea6feaef26c.png)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 2:38pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/15 "2024-12-28T14:38:12Z")

</div>

Please remove this option:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/e/2/e2e9ae55d4ac240dcef334444e5f45a123d98765.jpeg)

---

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 28, 2024, 2:48pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/16 "2024-12-28T14:48:06Z")

</div>

I’ve updated it, the only problem is that the API for my other website that is working perfectly has these settings…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/9/c/9c41e93cfd4b8d5033e9d276dc9e51c53102802a.jpeg)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 2:52pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/17 "2024-12-28T14:52:44Z")

</div>

Got it, thanks!

I’ve passed this issue on to the devs and will update you once I have their response 🙂

---

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 28, 2024, 2:55pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/18 "2024-12-28T14:55:07Z")

</div>

Ok thank you, sorry about this.

Is there anything else that could be wrong or is it definitely what you think?

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 2:57pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/19 "2024-12-28T14:57:23Z")

</div>

Usually this error appears when the restrictions are set incorrectly, but will investigate it further and try to find out the reason for this 🙂

---

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 28, 2024, 2:58pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/20 "2024-12-28T14:58:14Z")

</div>

Thank you

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 3:10pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/21 "2024-12-28T15:10:11Z")

</div>

Could you please give it one more try and add [https://mentalhealthsc.org](https://mentalhealthsc.org/) to the restrictions?

---

<div class="post-metadata">

**Author:** ![user5002](https://avatars.discourse-cdn.com/v4/letter/u/e9a140/32.png) [@user5002](https://community.elfsight.com/u/user5002)\
**Post date:** [December 28, 2024, 3:13pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/22 "2024-12-28T15:13:42Z")

</div>

Here you go…

 ![Screenshot 2024-12-28 at 3.13.14 pm](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/7/a/7ac04c8f7a632209ea811bf1343ec0be2a558157.png)

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [December 28, 2024, 3:18pm UTC](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627/23 "2024-12-28T15:18:48Z")

</div>

Please try to use it without asteriks, just [https://mentalhealthsc.org](https://mentalhealthsc.org/).

If it still doesn’t work, please revert to the restrictions you’ve set initially:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/elfsight/original/3X/6/f/6f6e2f432504d47ee1060e011f865de3d3170670.jpeg)

  

Our devs will be investigating this issue: further!

[Next page](https://community.elfsight.com/t/how-to-edit-update-a-api-key-of-a-duplicate-google-map/91627.md?page=2)
