Hạn mức và giới hạn
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
API CSS áp dụng hạn mức và giới hạn cứng đối với một số tính năng. Hạn mức và giới hạn được trình bày trong bảng sau đây chỉ nhằm hỗ trợ bạn phát triển các ứng dụng sử dụng API CSS. Tất cả hạn mức và giới hạn có thể bị xoá, giảm hoặc thay đổi bất cứ lúc nào mà không cần thông báo.
Kiểm tra mức sử dụng hạn mức
Bạn có thể kiểm tra mức sử dụng hạn mức hiện tại bằng phương thức accounts.quotas.list
. Phương thức này cho phép bạn truy xuất mức sử dụng hạn mức hiện tại cho tài khoản của mình.
Hãy xem mẫu này để tìm hiểu cách truy xuất hạn mức này.
Chính sách về hạn mức
Đừng cập nhật sản phẩm nếu sản phẩm không thay đổi. Nếu bạn cần gửi nội dung cập nhật để sản phẩm không bị hết hạn, thì việc này chỉ cần thực hiện một lần mỗi tuần là đủ.
Hạn mức lệnh gọi phương thức
Các giới hạn sau đây là hạn mức gọi phương thức mặc định cho tài khoản CSS Center.
- Người dùng vượt quá hạn mức mỗi phút sẽ nhận được lỗi
quota/request_rate_too_high
.
- Người dùng vượt quá hạn mức hằng ngày sẽ nhận được lỗi
quota/daily_limit_exceeded
.
Sau đây là một số điều cần lưu ý:
- Hạn mức ở đây là theo phương thức. Ví dụ: phương thức
get
có hạn mức gọi riêng biệt với phương thức update
, mặc dù kích thước của các hạn mức đó là giống nhau.
- Các lệnh gọi sẽ được tính vào hạn mức của tài khoản bị ảnh hưởng. Đối với các thao tác liên quan đến sản phẩm, đây sẽ là tài khoản Miền CSS. Đối với thao tác danh sách tài khoản, điều này phụ thuộc vào tài khoản mà danh sách được gọi.
Sau đây là các giới hạn mặc định:
Tài nguyên |
Phương thức |
Mỗi phút |
Mỗi ngày |
accounts |
Tất cả phương thức |
1.000 |
10.000 |
labels |
Tất cả phương thức |
1.000 |
10.000 |
cssProductInputs |
Tất cả phương thức |
60.000 |
20.000.000 |
cssProducts |
Tất cả phương thức |
60.000 |
20.000.000 |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eThe CSS API has quotas and limitations on certain features that can change without notice.\u003c/p\u003e\n"],["\u003cp\u003eTo avoid quota issues, minimize unnecessary product updates and aim for weekly updates if required.\u003c/p\u003e\n"],["\u003cp\u003eCSS Center accounts have default method call quotas, exceeding which results in specific errors.\u003c/p\u003e\n"],["\u003cp\u003ePer-method quotas apply, meaning each API method like \u003ccode\u003eget\u003c/code\u003e or \u003ccode\u003eupdate\u003c/code\u003e has its own quota limit.\u003c/p\u003e\n"],["\u003cp\u003eDefault quota limits are 20,000 calls per minute and 20,000,000 calls per day for both \u003ccode\u003ecssProductInputs\u003c/code\u003e and \u003ccode\u003ecssProducts\u003c/code\u003e resources.\u003c/p\u003e\n"]]],[],null,["# Quotas and Limits\n\nThe CSS API imposes quotas and hard limitations on some\nfeatures. The quotas and limits shown in the following table are provided\nsolely to assist you in\ndeveloping applications that use the CSS API. All quotas and\nlimits are subject to elimination, reduction, or change at any time, without\nnotice.\n\nCheck your quota usage\n----------------------\n\nYou can check your current quota usage using the\n[`accounts.quotas.list`](/comparison-shopping-services/api/reference/rest/v1/accounts.quotas/list)\nmethod. This method lets you retrieve the current quota usage for your account.\nSee this [sample](/comparison-shopping-services/api/code-samples/quotas/list-quota-groups)\nto learn how to perform this quota retrieval.\n\nQuota policy\n------------\n\nDon't update your products if they are unchanged. If you need to send updates to\nkeep a product from expiring, doing so once a week is enough.\n\nMethod call quotas\n------------------\n\nThe following limits are the default method call quotas for CSS Center\naccounts.\n\n- Users exceeding the per minute quota receive `quota/request_rate_too_high` errors.\n- Users exceeding the per day quota receive `quota/daily_limit_exceeded` errors.\n\nHere are some things to keep in mind:\n\n- The quotas here are per-method. For example, the `get` method has a separate quota of calls from the `update` method, though the size of those quotas is the same.\n- Calls count against the quota of the affected account. For product related operations this will be the CSS Domain account, for account list operation it depends on the account the list is called on.\n\nHere are the default limits:\n\n| Resource | Method | Per minute | Per day |\n|---------------------------------------------------------------------------------------------------|-------------|------------|------------|\n| [accounts](/comparison-shopping-services/api/reference/rest/v1/accounts) | All Methods | 1,000 | 10,000 |\n| [labels](/comparison-shopping-services/api/reference/rest/v1/accounts.labels) | All Methods | 1,000 | 10,000 |\n| [cssProductInputs](/comparison-shopping-services/api/reference/rest/v1/accounts.cssProductInputs) | All Methods | 60,000 | 20,000,000 |\n| [cssProducts](/comparison-shopping-services/api/reference/rest/v1/accounts.cssProducts) | All Methods | 60,000 | 20,000,000 |"]]