# How can I setup api for mailchimp

**URL:** <https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351>\
**Category:** Questions about Thunkable X\
**Created:** [June 11, 2020, 2:49pm UTC](https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351 "2020-06-11T14:49:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![justin.thanh84v20](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/justin.thanh84v20/32/67711_2.png) [@justin.thanh84v20](https://community.thunkable.com/u/justin.thanh84v20)\
**Post date:** [June 11, 2020, 2:49pm UTC](https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351/1 "2020-06-11T14:49:08Z")

</div>

hi everyone,

I’m stucking at setup the mailchimp api, I wanna update my contact into mailchimp list  
and web api mailchimp using http basic authentication: ([[https://mailchimp.com/developer/guides/get-started-with-mailchimp-api-3/](https://mailchimp.com/developer/guides/get-started-with-mailchimp-api-3/)])([https://mailchimp.com/developer/guides/get-started-with-mailchimp-api-3/](https://mailchimp.com/developer/guides/get-started-with-mailchimp-api-3/))

```auto
curl --request GET \
--url 'https://us20.api.mailchimp.com/3.0/' \
--user 'anystring:<your_apikey>'

```

I have my api key, but I cannot setup in thunkable (fetching error)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/8/384a47576e7efdea0d1c523690b97cd6ec30a949.png)

thanks for reading

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 11, 2020, 4:11pm UTC](https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351/2 "2020-06-11T16:11:09Z")

</div>

Hi,

To begin with, I would recommend that you study scrTinyPNG, and then use its example to make your blocks with basic authentication

[https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/](https://x.thunkable.com/projects/5d70f93f8a62b4079eedaff2/project/properties/designer/)

---

<div class="post-metadata">

**Author:** ![justin.thanh84v20](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/justin.thanh84v20/32/67711_2.png) [@justin.thanh84v20](https://community.thunkable.com/u/justin.thanh84v20)\
**Post date:** [June 12, 2020, 7:42am UTC](https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351/3 "2020-06-12T07:42:57Z")

</div>

unfortunately the result when call get api didn’t show in live test web or web responsive,  
It showed result on Thunkable live app,  
thanks for your kindly support as usual @actech

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 12, 2020, 9:45am UTC](https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351/4 "2020-06-12T09:45:54Z")

</div>

If you open the console in the browser by pressing F12, you will see the reason why this does not work in the browser preview.

---

<div class="post-metadata">

**Author:** ![justin.thanh84v20](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/justin.thanh84v20/32/67711_2.png) [@justin.thanh84v20](https://community.thunkable.com/u/justin.thanh84v20)\
**Post date:** [June 12, 2020, 4:06pm UTC](https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351/5 "2020-06-12T16:06:56Z")

</div>

this is the error  
Access to fetch at ‘[https://api.getresponse.com/v3/contacts](https://api.getresponse.com/v3/contacts)’ from origin ‘[https://x.thunkable.com](https://x.thunkable.com)’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.  
I already add the Access-Control-Allow-Origin: \* into the header but still error

---

<div class="post-metadata">

**Author:** ![actech](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@actech](https://community.thunkable.com/u/actech)\
**Post date:** [June 13, 2020, 6:37am UTC](https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351/6 "2020-06-13T06:37:07Z")

</div>

Now you know how to view logs in the browser, if something doesn’t work, and what CORS is, which sometimes you have to deal with

---

<div class="post-metadata">

**Author:** ![justin.thanh84v20](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/justin.thanh84v20/32/67711_2.png) [@justin.thanh84v20](https://community.thunkable.com/u/justin.thanh84v20)\
**Post date:** [June 15, 2020, 7:26am UTC](https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351/7 "2020-06-15T07:26:43Z")

</div>

thanks for your information @actech

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:25am UTC](https://community.thunkable.com/t/how-can-i-setup-api-for-mailchimp/609351/8 "2024-11-08T11:25:45Z")

</div>


