Skip to content

Pricing clarification for api gateway

0
  • Currently I have setup Rest Api AWS Api Gateway.
  • In there I have used aws's usage plan and api keys for rate limiting and throttling the api endpoints.
  • So, my question is when quota exceeds mentioned in usage plan and api starts returning status code 429.
  • Will I be charged in api gateway for those requests as well ?

2 Answers
1
Accepted Answer

REST APIs in AWS API Gateway do not charge for throttled requests. You are only charged for requests that are valid and sent to the integration, or requests that failed requet validation. You do not pay for requests which are not authorized, did not match a route in your API or throttled.

AWS
EXPERT

answered a year ago

AWS
EXPERT

reviewed a year ago

0

Based on the available information, you will be charged for API Gateway requests that exceed your usage plan quota and return a 429 status code (Too Many Requests).

With API Gateway, you pay for all invocation requests made to your APIs, regardless of the response status code. The pricing model is based on the number of API calls received, not just successful ones. This means that even when your API returns error responses like 429 due to throttling or quota limits being exceeded, these requests still count as billable API calls.

API Gateway's pricing structure charges for HTTP APIs and REST APIs based on the number of API calls you receive and the amount of data transferred out. There are no exceptions mentioned for throttled requests or requests that exceed quota limits.

If you're concerned about costs associated with excessive requests, you might want to implement client-side throttling or caching strategies to reduce the number of requests that hit your API Gateway endpoints.
Sources
Amazon API Gateway Pricing
About Amazon API Gateway - Security Overview of Amazon API Gateway

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.