Amazon API Gateway pricing

With Amazon API Gateway REST APIs, you only pay for the API calls that you receive and the amount of data transferred out. There are no data transfer out charges for private APIs.

REST APIs

Only pay for the API calls you receive and the amount of data transferred out. There are no data transfer out charges for private APIs. However, AWS PrivateLink charges apply when using Private APIs in API Gateway. API Gateway also provides optional data caching charged at an hourly rate that varies based on the cache size you select. 

Additional charges

You may incur additional charges if you use API Gateway in conjunction with other AWS services or transfer data out of AWS. For details on AWS service pricing, see the pricing section of the relevant AWS service detail pages. Links to pricing for some of the commonly used services are listed below.

Data transfer

If you use external data transfers, you will be charged at the EC2 data transfer rate

AWS PrivateLink

Includes pricing for each hour that your VPC endpoint is provisioned in each Availability Zone

AWS Lambda

Includes pricing for requests and duration

Amazon CloudWatch

Includes pricing for metrics and dashboards

Pricing examples

REST APIs

Edge-optimised and regional APIs

An edge-optimised or regional API receives five million API calls per month, with each API call returning responses of 3 kilobytes (KB) in size with no caching.

Example below reflects pricing for US East (N. Virginia, Ohio), US West (Oregon), Asia Pacific (Mumbai)

Amazon API Gateway API call charges = 5 million * €3.6514/million = €18.25

Total size of data transfers = 3 KB * 5 million = 15 million/KB = 14.3 GB

Amazon API Gateway data transfer charges = 14.3 GB * €0.07723233 = €1.10

Total Amazon API Gateway charges = €18.25 + €1.10 = €19.35

Edge-optimised and regional APIs

An edge-optimised or regional API receives 15 billion API calls per month, with each API call returning responses of 4 kilobytes (KB) in size with no caching.

Example below reflects pricing for US East (N. Virginia, Ohio), US West (Oregon), Asia Pacific (Mumbai)

Amazon API Gateway API call charges = 333 million * €3.6514/million = €1,215.91

                                                                     667 million * €3.1481/million = €2,099.78

                                                                     14 billion * €2.6744/million = €3,7441.6

Total Amazon API call charges = €40,757.29

Total size of data transfers = 4 KB * 15 billion = 57,220.46 GB

Amazon API Gateway data transfer charges = 57,220.46 GB * €0.07723233 = €4,405.97

Total Amazon API Gateway charges = €40,757.29 + €4,405.97 = €45,162.26

Private APIs

A private API receives five million API calls, with each API call having a request size of 0.3 kilobytes (KB) and returning responses of 3 kilobytes (KB). A VPC endpoint is provisioned in one Availability Zone (AZ) for the whole month (720 hours).

The example below reflects pricing for US East, US West (Oregon)

Amazon API Gateway API call charges = 5 million * €3.6514/million = €18.25

Total Amazon API Gateway charges = €18.25

Total size of data transfers (request + response) = (3 KB + 0.3 KB) * 5 million = 16.5 million/KB = 15.7 GB

VPC endpoint charges = 720 hours * €0.0118/AZ/hr = €8.49

VPC endpoint data processing charges = 15.7 GB * €0.0098/GB = €0.15

Total Amazon VPC (AWS PrivateLink) charges = €8.49 + €0.15 = €8.64

Total charges = €18.25 + €8.64 = €26.89

Pricing example with caching required (THF)

If your API needs 1.5 GB of cache for its data, you can provision a 1.6 GB cache at €0.0375/hr
€0.0375 * 24 = €0.9/day

Additional pricing resources

AWS Pricing Calculator

Easily calculate your monthly costs with AWS

Get pricing assistance

Contact AWS specialists to get a personalised quote