HTTP Requests (Web Requests)

Make HTTP requests in Spatial using Unity's UnityWebRequest module. This allows you to fetch data from an external source, such as a REST API, and use it in your Spatial space. You should only send HTTP requests to trusted sources.

Important

HTTP Requests are limited to spaces that are subscribed to the Business Tier or approved for the Public UGC Tier.

  • For more information about the Business Tier and to upgrade your space visit https://spatial.io/pricing.
  • To learn about the Public UGC Tier and apply to have your spaces granted UGC status click here.

Usage

Check out our Web Request template to see an example of fetching data from an external API. You can use web requests for data storage, analytics, remote configuration, error reporting, expensive calculations, and so much more!

Refer to Unity's UnityWebRequest documentation for more information on how to use the module.

Restrictions

  • Spatial only allows requests to secure domains (https). Requests to unsecure domains (http) are not permitted.
  • Requests to any Spatial domain (*.spatial.io) are not permitted.
  • Requests to localhost are not permitted.