文档

​
​

Development

User Acquisition

Monetization

工业

Unity Services Web APIs

Open Unity Dashboard

Unity Services Web APIs

此页面不支持所选语言。
​
​
Unity Services Web APIs
  • Overview
  • Get started
Web API guides
  • Authentication
  • API lifecycle
  • Response status and error codes
  • Response headers
  • Unity Version Control CM API
  • Unity Version Control server API
Admin Settings
  • Access
  • Unity Releases
Analytics
  • Analytics
Identity and Access Management
  • Application and Deep Linking
Monetization
  • Monetize
Viewers and Collaboration
  • Annotations
  • Presence
Access
  • Access
Assets
  • Assets
Auth
  • Auth
Collaboration
  • Collaboration
Content Management
  • DataStreaming
  • Storage
  • Workflow Engine
DevOps
  • Automation
  • Build Automation
  • Unity Version Control
Growth
  • Ads Unified Platform
  • User Acquisition
Identity
  • SCIM
In-App Purchases
  • Webshop
Live Operations
  • Game Backend
  • Observability Logs
Multiplayer
  • Distributed Authority
  • Friends
  • Lobby
  • Matchmaker
  • Player Names
  • QoS Discovery
  • Relay Allocations
  • Session Observability
  • Vivox Voice and Text Chat
Unity
  • Projects and Apps
Unity Pipeline
  • Asset Pipeline
  1. Unity Services Web APIs

Response headers

Learn about the rate limiting and retry response headers available with the Unity API.
阅读时间1 分钟
最后更新于 1 个月前

This page describes the response headers available with the Unity API.

Headers

The HTTP response includes headers, and we will highlight a few of them here.
  • RateLimit-Policy
  • RateLimit
  • Unity-RateLimit
  • Retry-After

RateLimit-Policy

This header conveys server-defined policies for rate limiting. It specifies rules such as the maximum allowed requests and time window related to called endpoints.
RateLimit-Policy: 20;w=1, 4000;w=1800

RateLimit

This header communicates the maximum allowed requests, remaining requests, and reset time from server to client. It helps manage usage limits, enabling clients to adjust behavior and prevent exceeding set restrictions for better performance. This key always refers to only one limited time window and returns the closest limit to reaching.
RateLimit: limit=20, remaining=19, reset=1

Unity-RateLimit

This Unity custom header is like the RateLimit key, with one difference. It returns all possible limits with different time windows. In the example below, we have two sets of limits that are separated by
;
character.
Unity-RateLimit: limit=20, remaining=19, reset=1; limit=4000, remaining=3994, reset=1579

Retry-After

This header key in HTTP responses indicates the recommended time for a client to wait before making another request to the server, particularly after encountering a 429 TooManyRequest error or during temporary unavailability. The value is relative time in seconds.
Retry-After: 42

Copyright © 2026 Unity Technologies
法律信息隐私政策CookiesDocumentation Terms of Use请勿出售或分享我的个人信息您的隐私选择(Cookie 设置)

“Unity”、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属公司在美国和其他地方的商标或注册商标(此处查看更多信息)。其他名称或品牌是其各自所有者的商标。

为方便起见,一些页面是机器翻译的,可能包含不准确的内容。如有信息不一致的情况,以英文版本为准。

  • 在本页上
    • Headers

      • RateLimit-Policy

      • RateLimit

      • Unity-RateLimit

      • Retry-After