ส่วนเสริมของ Google Classroom พร้อมให้บริการแก่นักพัฒนาซอฟต์แวร์แล้ว โปรดดูข้อมูลเพิ่มเติมใน
เอกสารส่วนเสริม
ขีดจำกัดการใช้งาน
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ระบบจะตรวจสอบโควต้าโดยใช้ค่าเฉลี่ยเคลื่อนที่ 60 วินาที ซึ่งช่วยให้มีการใช้งานเพิ่มขึ้นได้ โดยค่าเริ่มต้น Classroom API จะอยู่ภายใต้ขีดจำกัดในตารางต่อไปนี้
ขีดจำกัด |
โควต้ามาตรฐาน |
การค้นหาต่อวันต่อไคลเอ็นต์ |
4,000,000 (เฉลี่ย 46 QPS) |
คำค้นหาต่อนาทีต่อไคลเอ็นต์ |
3,000 (50 QPS) |
คำค้นหาต่อนาทีต่อผู้ใช้ |
1,200 (20 QPS) |
QPS ที่อนุญาตอาจเพิ่มขึ้นหรือลดลงโดยขึ้นอยู่กับปัจจัยด้านการปฏิบัติงานหลายประการ
หากต้องการส่งคำขอมากกว่าขีดจำกัดที่ใช้กับโปรเจ็กต์ ให้ทำดังนี้
- ก่อนอื่น ตรวจสอบว่าคุณได้ตอบสนองต่อข้อผิดพลาดที่ลองใหม่ได้ (เช่น ข้อผิดพลาด
RESOURCE_EXHAUSTED
ที่แสดงเมื่อคำขอเกินขีดจำกัด
ของคุณ) โดยการลองส่งคำขออีกครั้ง โดยควรใช้ Exponential Backoff
- หากคุณกำลังสำรวจการเปลี่ยนแปลงในอุปกรณ์ปลายทางที่มีฟีเจอร์นี้ ให้ลองใช้การแจ้งเตือนแบบพุชแทน
- หากยังคงต้องการส่งคำขอมากกว่าขีดจำกัดที่กำหนดให้กับโปรเจ็กต์
โปรดดูวิธีการขอเพิ่มขีดจำกัดด้านล่าง
หากต้องการดูหรือเปลี่ยนขีดจำกัดการใช้งานสำหรับโปรเจ็กต์ หรือขอเพิ่มโควต้า ให้ทำดังนี้
- หากยังไม่มีบัญชีสำหรับการเรียกเก็บเงิน
สำหรับโปรเจ็กต์ ให้สร้างบัญชี
- ไปที่หน้า API ที่เปิดใช้ของ
คลัง API ใน API Console แล้วเลือก API จากรายการ
- หากต้องการดูและเปลี่ยนการตั้งค่าที่เกี่ยวข้องกับโควต้า ให้เลือกโควต้า หากต้องการดู
สถิติการใช้งาน ให้เลือกการใช้งาน
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-01 UTC
[null,null,["อัปเดตล่าสุด 2025-08-01 UTC"],[],[],null,["# Usage Limits\n\nQuota is checked on a **60-second moving average** , which **allows for spikes in\nusage**. By default, the Classroom API is subject to the limits in the following\ntable:\n\n| Limit | Quota Standard |\n|-------------------------------|-------------------------|\n| Queries per day per client | 4,000,000 (Avg. 46 QPS) |\n| Queries per minute per client | 3,000 (50 QPS) |\n| Queries per minute per user | 1,200 (20 QPS) |\n\nThe permitted QPS may be increased or decreased depending on a number of\noperational factors.\n\nIf you need to make more requests than the limits applied to your project:\n\n1. First, ensure that you respond to retryable errors (such as the `RESOURCE_EXHAUSTED` error that is returned when a request exceeds your limits) by retrying the request, preferably using exponential backoff.\n2. If you are polling for changes on an endpoint where this is offered, consider using [push notifications](/workspace/classroom/guides/push-notifications) instead.\n3. If you still need to make more requests than the limits assigned to your project, see below for instructions on requesting higher limits.\n\nTo view or change usage limits for your project, or to request an increase to\nyour quota, do the following:\n\n1. If you don't already have a [billing account](//cloud.google.com/billing/docs/how-to/manage-billing-account) for your project, then create one.\n2. [Visit the Enabled APIs page of the\n API library](https://console.cloud.google.com/apis/enabled) in the API Console, and select an API from the list.\n3. To view and change quota-related settings, select **Quotas** . To view usage statistics, select **Usage**."]]