頻率限制與快取
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁面說明使用 Tenor API 時適用的速率限制和快取政策。
頻率限制
Tenor API 金鑰的預設頻率限制為每秒 1 次 API 要求 (RPS)。如果 API 要求超過 1 RPS 門檻,就會失敗。
如要提高使用頻率限制,請傳送電子郵件至 api@tenor.com。
快取
您可以快取 Tenor 的內容網址或 API 回應,縮短延遲時間並提升使用者體驗。
如果整合服務會快取 Tenor 的內容網址,您必須每 24 小時至少重新整理快取一次。
如果整合服務會快取 Tenor 的 API 回應,建議您經常重新整理記錄。特定查詢的 Tenor 內容排名可能會在一天內調整。
快取任何 Tenor 內容時,請遵守 Tenor 回應中的 Cache-Control 標頭。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間:2025-07-25 (世界標準時間)。"],[],["Tenor API usage is limited to 1 request per second, with higher limits available upon request. Caching content URLs is permitted but requires a refresh every 24 hours. Caching API responses is also allowed, though frequent refresh is recommended due to dynamic content ranking. Users should adhere to Cache-Control headers when caching Tenor content. Exceeding the rate limit will result in request failure.\n"]]