# API to work with Unity3d

**URL:** <https://forum.wixstudio.com/t/api-to-work-with-unity3d/32322>\
**Category:** Ask the community\
**Tags:** code, question\
**Created:** [December 16, 2019, 10:00am UTC](https://forum.wixstudio.com/t/api-to-work-with-unity3d/32322 "2019-12-16T10:00:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick5415](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@nick5415](https://forum.wixstudio.com/u/nick5415)\
**Post date:** [December 16, 2019, 10:00am UTC](https://forum.wixstudio.com/t/api-to-work-with-unity3d/32322/1 "2019-12-16T10:00:20Z")

</div>

Hi  
I need to create a communication link between my website and Unity3d. My plan is build a questionnaire on my website which will determine a list of player settings/preferences/URLs to videos etc for a given user. These will be used by my Unity3d app to personalise the experience. I will also want to send data back to the API to update my database

Can i do this with Corvid? If so, can you suggest some tutorials assuming I am a beginner. I don’t know where to start

thanks

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [December 16, 2019, 10:02am UTC](https://forum.wixstudio.com/t/api-to-work-with-unity3d/32322/2 "2019-12-16T10:02:41Z")

</div>

The [Corvid Resources page](https://www.wix.com/corvid) provides tutorials, examples, and articles on getting the most out of Corvid. Google and the other search engines are your friends. And of course, as questions or difficulties arise, we are here to help.

---

<div class="post-metadata">

**Author:** ![nick5415](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@nick5415](https://forum.wixstudio.com/u/nick5415)\
**Post date:** [December 16, 2019, 10:17am UTC](https://forum.wixstudio.com/t/api-to-work-with-unity3d/32322/3 "2019-12-16T10:17:57Z")

</div>

thanks I had a look but before I embark on a steep learning curve I want to make sure that I can do this. I was hoping I might get some advice. If it can be done then I will start learning.

This is a proprietary system and I don’t want to go down a rabbit hole only to find I can’t achieve my goals

thanks

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [December 16, 2019, 10:26am UTC](https://forum.wixstudio.com/t/api-to-work-with-unity3d/32322/4 "2019-12-16T10:26:21Z")

</div>

You will need to read about how to access 3rd party services in the article [Corvid: How to Access 3rd-Party Services with the Fetch API](https://support.wix.com/en/article/wix-code-how-to-access-3rd-party-services-with-the-fetch-api) . Wix does not provide support for the external services, so you will have to consult with the service provider regarding any interface issue.

Here are some examples that interface with external APIs:

**Expose and Access Site APIs**  
Use [MyApi and MyApiClient](https://www.wix.com/code/home/forum/wix-tips-and-updates/example-myapi-and-myapiclient) to expose and access external APIs.

**Send Email with SendGrid REST Interface**  
[Send an email](https://www.wix.com/code/home/forum/wix-tips-and-updates/example-send-email-with-the-sendgrid-rest-interface) using the SendGrid REST API.

**Stripe Payment Processing**  
Integrate the [Stripe Payment processing system](https://www.wix.com/code/home/forum/wix-tips-and-updates/example-stripe-payment-processing) into a site. Three levels of user access are demonstrated: visitor, freemium (registered), and premium (paid).

**Using the Places API from Google Map Services**  
Demonstrates [geolocation queries](https://www.wix.com/code/home/forum/wix-tips-and-updates/example-using-the-places-api-from-google-maps-services) using the Google Maps Places API web services. The queries are performed in backend (server-side) web modules.

---

<div class="post-metadata">

**Author:** ![nick5415](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@nick5415](https://forum.wixstudio.com/u/nick5415)\
**Post date:** [December 16, 2019, 10:36am UTC](https://forum.wixstudio.com/t/api-to-work-with-unity3d/32322/5 "2019-12-16T10:36:09Z")

</div>

sorry but that isn’t my question - i want to CREATE an API; not access a 3rd party one.

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [December 16, 2019, 11:50am UTC](https://forum.wixstudio.com/t/api-to-work-with-unity3d/32322/6 "2019-12-16T11:50:56Z")

</div>

Then seen this example:

**Expose and Access Site APIs**  
Use [MyApi and MyApiClient](https://www.wix.com/code/home/forum/wix-tips-and-updates/example-myapi-and-myapiclient) to expose and access external APIs.

####

---

<div class="post-metadata">

**Author:** ![givemeawhisky](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/givemeawhisky/32/5383_2.png) [@givemeawhisky](https://forum.wixstudio.com/u/givemeawhisky)\
**Post date:** [December 16, 2019, 5:17pm UTC](https://forum.wixstudio.com/t/api-to-work-with-unity3d/32322/7 "2019-12-16T17:17:28Z")

</div>

To carry on with Yisrael’s comments, you can also look at using Wix HTTP Functions.  
[https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions](https://support.wix.com/en/article/corvid-exposing-a-site-api-with-http-functions)  
[https://www.wix.com/corvid/reference/wix-http-functions.html](https://www.wix.com/corvid/reference/wix-http-functions.html)

As Yisrael has shown in his links already provided, you don’t actually need to create an API yourself as Wix can expose your site for you to use with external API.

As for working with the Unity3d API, you can find lots of info on that online already.  
[https://docs.unity3d.com/Manual/OfflineDocumentation.html](https://docs.unity3d.com/Manual/OfflineDocumentation.html)  
[https://docs.unity3d.com/ScriptReference/](https://docs.unity3d.com/ScriptReference/)

[API Requests through Unity , WWW class - Unity 3D [Tutorial]](https://www.youtube.com/watch?v=UUQydC0IimI)  
[Consuming RESTful web services in Unity3d and learn how to use the Unity Engine Networking API](https://www.youtube.com/watch?v=TrOLTrIX9Yk)

Finally, as you state that you are a beginner, then for a more complex task like this, you might be worthwhile going through the Wix Arena and seeing if you can find somebody suitable to your needs. [Wix Arena](https://www.wix.com/arena/web-designers/1)
