Documentation

​
​

Development

User Acquisition

Monetization

Industry

Cloud Code

Scripting API

Services C# SDKs

Services JavaScript SDKs

Admin REST API

Client REST API

Scheduler Admin REST API

Observability REST API

Open Unity Dashboard

Cloud Code

LiveOps
​
​
Cloud Code
  • Overview
  • Get started
  • Server authority
  • Cloud Code C# modules
  • Cloud Code JavaScript scripts
    • Overview
    • Get started
    • Concepts
    • Tutorials
    • Reference
      • Limits
      • Available libraries
      • Cost
  • Logging
  • Use-case samples
  • Privacy and consent
  1. Cloud Code
  2. Reference

Limits

Understand the rate limits, data size limits, and other constraints for Cloud Code scripts.
Read time 2 minutes
Last updated 22 days ago

Cloud Code scripts have limits for the amount of data that you can process to ensure that Cloud Code runs correctly.

Cloud Code API

  • The Cloud Code Client API service limits each player to 600 requests per minute (10 requests per second).
  • The Cloud Code Client API service limits Service Account authentication to 12,000 requests per minute (200 requests per second) per Service Account.
  • The Cloud Code Admin API service limits requests to 60 requests per second and 1000 requests per thirty minutes on a per-project and per-IP basis.
  • The Admin API has lower rate limits, so don't call the Admin API on a per-player basis.

Cloud Code JavaScript scripts

  • Cloud Code scripts can't exceed 128 KB. Cloud Code rejects any requests to save or run scripts that exceed 128 KB.
  • You can't re-publish a Cloud Code script unless you make a change to the script.
  • The combined size of the POST request body (the script’s input parameters) when you execute a script can't exceed 1 MB.
  • The combined size of the response body (the script’s output) when you execute a script can't exceed 2 MiB.
  • A script's execution time can't exceed 15 seconds.

Cloud Code with other Unity services

  • All Unity services have a per-player rate limit to prevent API overuse. Cloud Code executes scripts in the same way a game client would with a player authentication token; therefore, the rate limit is shared between the game and the server code. For example, if you use Economy from both Cloud Code and the game, you may receive an unexpected rate limit error. It's important to account for both types of use when you debug these errors.
  • The environment in which you save the script is automatically the same environment when using other Unity services from within scripts. Scripts cannot access services in any other environment.
For more information on how to integrate with Cloud Code, refer to the Integrate with other Unity services page.

Copyright © 2026 Unity Technologies
LegalPrivacy PolicyCookiesDocumentation Terms of UseDo Not Sell or Share My Personal InformationYour Privacy Choices (Cookie Settings)

"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S and elsewhere (more info here). Other names or brands are trademarks of their respective owners.

Some pages are machine-translated for convenience, and may contain inaccuracies. In the event of conflicting information, the English version is authoritative.

  • On this page
    • Cloud Code API

    • Cloud Code JavaScript scripts

    • Cloud Code with other Unity services


Report a problem with this page