Capping API usage - API Console Help (2024)

You can explicitly cap requests in two ways: requests per second per user and requests per day.

Limiting requests per second per user

To prevent individual users from using up your API quota, limit the number of requests per second per user for an API. Each API includes a default per-user limit, but you can modify that value as described in the following section.

Individual users are identified by a unique string; if you're creating a server-side application (where the calling code is hosted on a server that you own) that makes requests on behalf of users, your requests must include the quotaUser parameter, as described below.

Note: Although per-user limits are specified in queries per second, we permit short-term usage spikes. Therefore, you should set your limits based on sustained average traffic levels. If anyone tries to use an API in excess of these settings, the requests will trigger a limit exceeded error.

To identify a user, use the quotaUser=userID parameter. This value is for short term quota enforcement only, so you don't need to use a real user ID. You can choose any arbitrary string under forty characters long that uniquely identifies a user.

The quotaUser parameter is only used for capping requests per user per second. If you don't send the quotaUser parameter, then all calls are attributed to your server machines, in which case calls can't be capped by user.

When sending any user identifier, be sure that you comply with any local laws, including any laws relating to the disclosure of any personal information you send with each request. Best practice is to include as little personal information as possible.

Modify the number of requests (available only when billing is enabled)

You can set daily limits to all requests to any billable API. Most APIs set default limits, but you can change that limit up to a maximum specified by Google.

To view or change daily billable limits for your API, do the following:

  1. Go to the API Console.
  2. From the projects list, select a project or create a new one.
  3. If the APIs & services page isn't already open, open the left side menu and select APIs & services.
  4. Click the name of the API you're interested in.
  5. Click Quotas.
  6. On the requests per day or requests per 100 seconds per user line, click the edit icon, then enter the preferred total billable daily quota, up to the limit specified by Google.

Note: You can set daily billable limits only on billable APIs. If your project doesn't use any billable APIs, then you can't set daily limits.

Capping API usage - API Console Help (2024)
Top Articles
How to Protect Yourself from P2P Payments Fraud
Why Car Insurance Prices Differ
Fan Van Ari Alectra
Craigslist Cars And Trucks For Sale By Owner Indianapolis
Vaya Timeclock
Wannaseemypixels
United Dual Complete Providers
biBERK Business Insurance Provides Essential Insights on Liquor Store Risk Management and Insurance Considerations
12 Best Craigslist Apps for Android and iOS (2024)
Hmr Properties
Nier Automata Chapter Select Unlock
Classroom 6x: A Game Changer In The Educational Landscape
History of Osceola County
Free Online Games on CrazyGames | Play Now!
How pharmacies can help
Gia_Divine
Costco Great Oaks Gas Price
Palm Springs Ca Craigslist
Why Should We Hire You? - Professional Answers for 2024
Glover Park Community Garden
Form F-1 - Registration statement for certain foreign private issuers
Shadbase Get Out Of Jail
25 Best Things to Do in Palermo, Sicily (Italy)
6 Most Trusted Pheromone perfumes of 2024 for Winning Over Women
Hannah Palmer Listal
4 Methods to Fix “Vortex Mods Cannot Be Deployed” Issue - MiniTool Partition Wizard
Great ATV Riding Tips for Beginners
San Jac Email Log In
Bi State Schedule
R/Orangetheory
Ultra Clear Epoxy Instructions
Domino's Delivery Pizza
Omnistorm Necro Diablo 4
Grapes And Hops Festival Jamestown Ny
Petsmart Northridge Photos
Has any non-Muslim here who read the Quran and unironically ENJOYED it?
Nba Props Covers
Stewartville Star Obituaries
Lbl A-Z
Actor and beloved baritone James Earl Jones dies at 93
Windshield Repair & Auto Glass Replacement in Texas| Safelite
Saline Inmate Roster
'The Nun II' Ending Explained: Does the Immortal Valak Die This Time?
Dontrell Nelson - 2016 - Football - University of Memphis Athletics
Euro area international trade in goods surplus €21.2 bn
Enjoy Piggie Pie Crossword Clue
Gummy Bear Hoco Proposal
Where Is Darla-Jean Stanton Now
Latest Posts
Article information

Author: Patricia Veum II

Last Updated:

Views: 5455

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Patricia Veum II

Birthday: 1994-12-16

Address: 2064 Little Summit, Goldieton, MS 97651-0862

Phone: +6873952696715

Job: Principal Officer

Hobby: Rafting, Cabaret, Candle making, Jigsaw puzzles, Inline skating, Magic, Graffiti

Introduction: My name is Patricia Veum II, I am a vast, combative, smiling, famous, inexpensive, zealous, sparkling person who loves writing and wants to share my knowledge and understanding with you.