All Products
Search
Document Center

API Gateway:Limits

Last Updated:Apr 17, 2023

This topic describes the limits in API Gateway.

Item

Limit

API Gateway user

To use API Gateway, you must first complete real-name verification.

Number of API groups that each user can create

- Each account can create up to 200 API groups in each region. The API groups include both groups that are bound to domain names and groups that are not bound to domain names.

- By default, each account can create up to five API groups that are not bound to domain names in each region. If an account has at least one API group that is bound to a domain name in a region, the account can create up to 20 API groups that are not bound to domain names in the region.

To increase the limit on the number of API groups, submit a ticket .

Public second-level domain name

The following limits are imposed when you call APIs in an API group by using the public second-level domain name that is automatically assigned to the API group:

- You can make 100 API calls per day in the China (Hong Kong) region and other regions outside the Chinese mainland, and 1,000 API calls per day in regions in the Chinese mainland.

- If you access API Gateway by using a browser, the browser downloads data by default.

Number of independent domain names that can be bound to each API group

Each API group can be bound to up to five independent domain names, including wildcard domain names.

Number of APIs that each user can create

You can create up to 1,000 APIs in an API group.

Number of requests per second (RPS) for each API

- For shared instances, the upper limit of RPS for each account in a region is 1,000, and the upper limit of RPS for each API group is 500. If you require higher RPS, use a dedicated instance.

- For dedicated instances, the upper limit of RPS for each API group varies based on the instance specification.

Maximum number of connections

- Each shared instance supports up to 500 connections for each account in a region. If you need a larger number of connections, use a dedicated instance.

- The maximum number of connections that each dedicated instance supports varies based on the instance specification.

Number of applications

- By default, each account can create up to 1,000 applications. To increase the limit, submit a ticket.

- Up to 1,000 applications can be bound to each API. To increase the limit, submit a ticket.

HTTP-related limits

- The combined size of the URL and header of each HTTP request cannot exceed 8 KB.

- For APIs in a shared instance, the body of each HTTP request can be up to 8 MB in size. For APIs in a dedicated instance, the body of each HTTP request can be up to 32 MB in size.

- The body of each HTTP response is not limited in size. However, each HTTP response must be returned within the specified timeout period.

Response from Function Compute

The body of a response returned by Function Compute can be up to 6 MB in size.

Use of HTTP or OSS as the backend service type

You cannot create a backend service of the HTTP or Object Storage Service (OSS) type in the China (Hong Kong) region and other regions outside the Chinese mainland.

If you need to use a backend service of these types, submit a ticket.