# API Data is displaying in Preview Mode but Not on the actual website

**URL:** <https://forum.wixstudio.com/t/api-data-is-displaying-in-preview-mode-but-not-on-the-actual-website/70795>\
**Category:** Ask the community\
**Tags:** api, code, cms, wix-stores\
**Created:** [May 6, 2025, 10:56pm UTC](https://forum.wixstudio.com/t/api-data-is-displaying-in-preview-mode-but-not-on-the-actual-website/70795 "2025-05-06T22:56:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5596](https://avatars.discourse-cdn.com/v4/letter/u/b3f665/32.png) [@user5596](https://forum.wixstudio.com/u/user5596)\
**Post date:** [May 6, 2025, 10:56pm UTC](https://forum.wixstudio.com/t/api-data-is-displaying-in-preview-mode-but-not-on-the-actual-website/70795/1 "2025-05-06T22:56:00Z")

</div>

I am attempting to pull data from MLS using an API from MLS Grid. I have the Access Token stored in secrets manager and believe I have my frontend and backend code set up properly. I have the repeater IDs labeled in CMS. It’s displaying perfectly in preview so I went ahead and published it, however, once published, nothing shows up besides the repeater placeholders. I’m also getting a WDE0027 error when reviewing the data requests. Thoughts?

```javascript
`
![Screenshot 2025-05-06 at 3.54.47 PM|690x431](upload://zc4JpyUphr29VX2EdHrGqtbAF57.jpeg)
![Screenshot 2025-05-06 at 3.54.51 PM|690x431](upload://sIKPcJzMpNJEGbmksiiOYPDZdnz.jpeg)
`

```

---

<div class="post-metadata">

**Author:** ![thomasj](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/thomasj/32/30791_2.png) [@thomasj](https://forum.wixstudio.com/u/thomasj)\
**Post date:** [May 7, 2025, 1:00pm UTC](https://forum.wixstudio.com/t/api-data-is-displaying-in-preview-mode-but-not-on-the-actual-website/70795/2 "2025-05-07T13:00:13Z")

</div>

[WDE0027](https://dev.wix.com/docs/velo/apis/wix-data/error-codes) error occurs when a data request was made with insufficient permissions.

This means you should check that your [‘Read’ collection permissions](https://support.wix.com/en/article/cms-changing-your-collection-permissions) are set properly.

Your data is most likely not showing on the published site as you are assigned the ‘Admin’ role when previewing your site.

> **[About Testing Your Code in Preview Mode](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/testing-monitoring/testing-troubleshooting/about-testing-your-code-in-preview-mode#differences-between-preview-mode-and-published-sites)**
>
> You can test the code on your site before publishing using Preview mode. You can perform any actions in Preview mode that you would be able to perform on your live site. When testing your site, you can check if any errors appear in the Wix Developer...

---

<div class="post-metadata">

**Author:** ![user5596](https://avatars.discourse-cdn.com/v4/letter/u/b3f665/32.png) [@user5596](https://forum.wixstudio.com/u/user5596)\
**Post date:** [May 7, 2025, 1:49pm UTC](https://forum.wixstudio.com/t/api-data-is-displaying-in-preview-mode-but-not-on-the-actual-website/70795/3 "2025-05-07T13:49:25Z")

</div>

![cms permissions](https://us1.discourse-cdn.com/wix/original/3X/1/a/1a41b13752e1b952c9064d0620a40f0a20441503.png)  
I thought this might be the case as well, but the permissions show they are set to “Everyone”. Here is a screenshot to show. Is there something I’m missing?
