# Sharing a Database between sites

**URL:** <https://forum.wixstudio.com/t/sharing-a-database-between-sites/27942>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [February 1, 2018, 10:55pm UTC](https://forum.wixstudio.com/t/sharing-a-database-between-sites/27942 "2018-02-01T22:55:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![deborah-savage](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/deborah-savage/32/1671_2.png) [@deborah-savage](https://forum.wixstudio.com/u/deborah-savage)\
**Post date:** [February 1, 2018, 10:55pm UTC](https://forum.wixstudio.com/t/sharing-a-database-between-sites/27942/1 "2018-02-01T22:55:20Z")

</div>

Is there any way to share a database between 2 wix sites, same owner?

---

<div class="post-metadata">

**Author:** ![admin-23](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/admin-23/32/708_2.png) [@admin-23](https://forum.wixstudio.com/u/admin-23)\
**Post date:** [February 4, 2018, 11:38am UTC](https://forum.wixstudio.com/t/sharing-a-database-between-sites/27942/2 "2018-02-04T11:38:26Z")

</div>

Hi Deborah,

At the moment it is not possible to share a collection across different sites.  
Feel free to post your request [here](https://www.wix.com/code/home/forum/feature-requests)

---

<div class="post-metadata">

**Author:** ![founder53806](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/founder53806/32/25911_2.png) [@founder53806](https://forum.wixstudio.com/u/founder53806)\
**Post date:** [January 12, 2021, 9:48am UTC](https://forum.wixstudio.com/t/sharing-a-database-between-sites/27942/3 "2021-01-12T09:48:46Z")

</div>

Hey, is this feature available yet?

---

<div class="post-metadata">

**Author:** ![founder53806](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/founder53806/32/25911_2.png) [@founder53806](https://forum.wixstudio.com/u/founder53806)\
**Post date:** [January 12, 2021, 9:48am UTC](https://forum.wixstudio.com/t/sharing-a-database-between-sites/27942/4 "2021-01-12T09:48:55Z")

</div>

Hey, is this feature available yet?

---

<div class="post-metadata">

**Author:** ![sam-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sam-wix/32/683_2.png) [@sam-wix](https://forum.wixstudio.com/u/sam-wix)\
**Post date:** [January 12, 2021, 10:09am UTC](https://forum.wixstudio.com/t/sharing-a-database-between-sites/27942/5 "2021-01-12T10:09:56Z")

</div>

Theoretically, this should be possible with a bit of work right now.

Let’s say you have site A that has the collection on it and site B that wants to also use the collection.

You can expose an API on site A using HTTP functions that gives access to the collection. Then, on site B, you can use the fetch API to call site A’s API.

If you try such an approach, be very careful security-wise. Make sure your HTTP functions are checking that the calls are coming from site B and not some other source.

---

<div class="post-metadata">

**Author:** ![founder53806](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/founder53806/32/25911_2.png) [@founder53806](https://forum.wixstudio.com/u/founder53806)\
**Post date:** [January 15, 2021, 6:54pm UTC](https://forum.wixstudio.com/t/sharing-a-database-between-sites/27942/6 "2021-01-15T18:54:40Z")

</div>

Thanks very much Sam, good to know there’s a way even if i cant do it all myself
