Sets the number of queries per second an unregistered user can make
against your API.
Element Detail
unregisteredUserQps
public abstract int unregisteredUserQps
Sets the number of queries per second an unregistered user can make
against your API. The default is unlimited. If unauthenticated, each IP
address is treated as a distinct user.
Default:
-2147483648
unregisteredQps
public abstract int unregisteredQps
Sets the maximum number of queries per second across all unregistered
access to your API. The default is unlimited.
Default:
-2147483648
unregisteredDaily
public abstract int unregisteredDaily
Sets the maximum number of requests per day for unregistered access to your
API. The default is unlimited.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003e\u003ccode\u003e@ApiFrontendLimits\u003c/code\u003e is an annotation used to configure quota limits for unregistered users of an API.\u003c/p\u003e\n"],["\u003cp\u003eThis annotation allows setting the maximum number of requests per day (\u003ccode\u003eunregisteredDaily\u003c/code\u003e) for unregistered users, with an unlimited default if not specified.\u003c/p\u003e\n"],["\u003cp\u003eIt also enables setting the maximum queries per second (\u003ccode\u003eunregisteredQps\u003c/code\u003e) across all unregistered access, defaulting to unlimited.\u003c/p\u003e\n"],["\u003cp\u003eUnregistered users can be limited in their queries per second (\u003ccode\u003eunregisteredUserQps\u003c/code\u003e), which defaults to unlimited, and IP addresses are considered distinct users when unauthenticated.\u003c/p\u003e\n"],["\u003cp\u003eCustom rules for unregistered traffic can be defined using the \u003ccode\u003erules\u003c/code\u003e element, utilizing the \u003ccode\u003eApiFrontendLimitRule\u003c/code\u003e annotation for detailed configuration.\u003c/p\u003e\n"]]],[],null,["# ApiFrontendLimits\n\ncom.google.api.server.spi.config\n\nAnnotation Type ApiFrontendLimits\n---------------------------------\n\n-\n\n *** ** * ** ***\n\n \u003cbr /\u003e\n\n ```\n @Retention(value=RUNTIME)\n @Target(value=TYPE)\n public @interface ApiFrontendLimits\n ``` \nAnnotation for configuration of API quota frontend limits. These are the limits applied to unregistered users of your API. \n-\n -\n\n ### Optional Element Summary\n\n-\n -\n\n ### Element Detail\n\n\n -\n\n #### unregisteredUserQps\n\n ```\n public abstract int unregisteredUserQps\n ``` \n Sets the number of queries per second an unregistered user can make against your API. The default is unlimited. If unauthenticated, each IP address is treated as a distinct user.\n\n Default:\n : -2147483648\n\n \u003c!-- --\u003e\n\n -\n\n -\n\n #### unregisteredQps\n\n ```\n public abstract int unregisteredQps\n ``` \n Sets the maximum number of queries per second across all unregistered access to your API. The default is unlimited.\n\n Default:\n : -2147483648\n\n \u003c!-- --\u003e\n\n -\n\n -\n\n #### unregisteredDaily\n\n ```\n public abstract int unregisteredDaily\n ``` \n Sets the maximum number of requests per day for unregistered access to your API. The default is unlimited.\n\n Default:\n : -2147483648\n\n \u003c!-- --\u003e\n\n -\n\n -\n\n #### rules\n\n ```\n public abstract ApiFrontendLimitRule[] rules\n ``` \n Sets custom rules for unregistered traffic to your API. See [`ApiFrontendLimitRule`](../../../../../../com/google/api/server/spi/config/ApiFrontendLimitRule.html \"annotation in com.google.api.server.spi.config\") for details.\n\n Default:\n : {}"]]