# WDE0117 MetaSite not found — Wix Data API v2 external REST call

**URL:** <https://forum.wixstudio.com/t/wde0117-metasite-not-found-wix-data-api-v2-external-rest-call/78164>\
**Category:** Ask the community\
**Tags:** wix-fetch, api, wix-data, code, wix-studio\
**Created:** [May 13, 2026, 10:50pm UTC](https://forum.wixstudio.com/t/wde0117-metasite-not-found-wix-data-api-v2-external-rest-call/78164 "2026-05-13T22:50:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Israel\_Pinchas](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/israel_pinchas/32/92781_2.png) [@Israel\_Pinchas](https://forum.wixstudio.com/u/Israel_Pinchas)\
**Post date:** [May 13, 2026, 10:50pm UTC](https://forum.wixstudio.com/t/wde0117-metasite-not-found-wix-data-api-v2-external-rest-call/78164/1 "2026-05-13T22:50:23Z")

</div>

I’m calling the Wix Data REST API from Google Apps Script (external to Wix) using an API key.

POST [https://www.wixapis.com/wix-data/v2/items/query](https://www.wixapis.com/wix-data/v2/items/query)  
Authorization:  
wix-site-id: 1f7346ae-8c7a-426e-b0c7-482ba8c4cb0d  
Content-Type: application/json  
Body: { “dataCollectionId”: “KeyTypes” }

Result: 400 WDE0117: MetaSite not found  
x-wix-request-id: 1778712049.9702937412821342

The same API key and Site ID work perfectly from Wix backend (wix-fetch).  
API key has Wix Data permission enabled.

Is the Site ID from the dashboard URL the correct MetaSite ID for external REST calls?

---

<div class="post-metadata">

**Author:** ![noahlovell](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/noahlovell/32/118920_2.png) [@noahlovell](https://forum.wixstudio.com/u/noahlovell)\
**Post date:** [May 14, 2026, 11:34am UTC](https://forum.wixstudio.com/t/wde0117-metasite-not-found-wix-data-api-v2-external-rest-call/78164/2 "2026-05-14T11:34:31Z")

</div>

Chatted with the team quickly, and nothing immediately obvious.

I’d recommend trying to get the request working in something like Postman first, and then jump back to Google Apps Script afterward
