API Gateway provides you with a complete API hosting service, sharing your capabilities, services, and data with your partners in the form of APIs.
API security is ensured by adopting multiple protection measures, including attack defense, anti-replay, encryption request, identity authentication, access management, and traffic control. This minimizes the risks associated with opening APIs.
This service provides a full scope of lifecycle management functions, including API definition, test, release, and removal, etc., as well as generating SDKs and API instructions, in order to improve the efficiency of API management and iteration.
The service provides convenient operation and management tools, such as monitoring, alarms, and analysis, which reduce API operation and maintenance costs.
API Gateway maximizes capability multiplexing. It allows enterprises to share capabilities, and to focus on their individual business and achieve a win-win situation.
Upon completion of API input, it relieves you from the hassle of API management. API Gateway will take care of API documentation maintenance, SDK maintenance, API version management, and other tedious tasks for you. This will significantly reduce your daily maintenance costs.
Only Pay for Actual Services
API Gateway service is activate for free, and you don’t need to pay for the daily API management, document generation, SDK generation, traffic control, and access control. You will only pay for costs of actual API calls.
Large Scale and High-performance
Through distributed deployment and automatic scaling, API Gateway can handle massive API access requests and provide highly secure and efficient gateway functions for your backend service with lower latency.
Secure and Stable
You can open your service to API Gateway in the intranet environment without worrying about security issues. API Gateway also provides strict access management, accurate traffic control, and comprehensive alarm and monitoring, presenting you a secure, stable, and controllable service.
API Gateway satisfies your many needs in various scenarios. You can open APIs to partners and developers, monetize your enterprise's core competence and establish an API ecosystem. Your APIs can adapt to multiple terminals (such as mobile and Internet devices), separate the frontend and backend of the system; support internal system to realize integration, modulation and microservice.
1. Establish an ecosystem for capability sharing and coordinated development
Faced with a growing number of users with diversified needs, enterprises must continuously explore new business models, to solve various scenario-specific problems for their customers. API Gateway can provide standard API services, allowing other developers to integrate some or all APIs into their apps. This will create new services and help your enterprise to establish a business ecosystem and promote cross-sector innovation.
With API Gateway, you can share your core competence with your partners, to deepen your cooperation and promote coordinated development.
2. Secure implementation of multi-terminal unification in a single service system with multi-terminal output
As mobile and IoT devices are becoming increasingly common, in order to expand the service scope, APIs are required to support more types of terminal devices. This will also increase system complexity. Simply by adjusting the API definition in API Gateway, your APIs can adapt to multiple terminals. No additional work is needed.
You just need to maintain a single service system that can transfer output to multiple terminals. Simply by adjusting the API definition, your service system can support apps, devices, web terminals, and other terminals.
One set of APIs can process different scenarios, which significantly reduce management and operation and management costs.
3. Easy system integration and standardization
With API Gateway, you can standardize inter-system interfaces and use standardized interfaces for system integration.
This service allows you to quickly integrate and manage resources, eliminate the redundancies and waste caused by rapid development and concentrate resources on business development.
The followings are the main features of API Gateway.
API Lifecycle Management
This service supports a range of lifecycle management functions, including API release, API testing, and API removal.
It supports routine API management, API version management, quick API rollback, and other maintenance functions.
Comprehensive Security Protection
API Gateway supports multiple authentication methods, as well as HMAC (SHA-1, SHA-256) algorithms for signatures.
It supports HTTPS protocol and SSL encryption.
It supports anti-attack, anti-injection, anti-request replay, and anti-request tampering.
Flexible Permission Control
You can use an app as your identity of API request, and the gateway supports app-based permission control.
Only authorized apps can send requests to the API.
API providers can manually authorize an app, issue a permission to call an API.
Precise Traffic Control
Traffic control can be used to control the visits to API, the request frequency to an app, or the request frequency to a user.
Traffic control can be measured in minutes, hours, or days.
The gateway also supports traffic control exceptions, allowing you to grant special apps and users.
The service supports parameter type and parameter value (range, enumeration, regular expression, JSON Schema) verification. Invalid parameter types and values will be rejected instantly by API Gateway. This avoids wasting the backend resources on invalid requests and significantly reduces backend service processing costs.
By configuring mapping rules, you can translate data between the frontend and backend.
The service supports frontend request data conversion.
Monitoring and Alarms
API Gateway provides visualized real time API monitoring, including call volume, traffic volume, response times, and error rates. The system dimensions will be adjusted accordingly.
It supports historical data query, to facilitate overall analysis.
You can also configure warning methods (SMS or email) and subscribe to warning information, to gain the API operational status in real time.
API Gateway automatically generates API documentation, which can be viewed online.
API Gateway provides demo SDKs in multiple languages. This reduces API operation and management costs.
API Gateway provides visual debugging tools on the page for the purpose of rapid testing and connected on-line.
API Gateway charges the users that provide APIs at the following rates:
API Gateway billing is calculated based on two dimensions: call volume (quantity) and traffic. Each dimension has its own billing rules and users are charged for both simultaneously.
API Gateway provides free service activation, free API creation, free API release, and free API management.
When an API is called, both call volume (quantity) and traffic that incur will be charged.
[Call Volume (Quantity)] Billing Description
After activating API Gateway, you get one million calls for free each (calendar) month for the first year. The calls exceeding the limit are billed based on the tiered price schedule below.
|Tiered Billing||Total Monthly Calls Over Specified Amount||Units: USD/million Calls|
< 10 million (including)
> 10 million
< 100 million (including)
|Tier 3||> 100 million||0.45|
Call volume (quantity) billing description:
a) Billing item: API call volume (quantity)
b) Payment method: Volume-based post payment
c) Billing cycle: Monthly
d) Bill generation time: The bill is usually provided within one hour (no later than 3 hours) after the end of the current billing cycle.
e) Billing currency: USD
f) Effective call quantity: All the API requests received by API Gateway are counted as valid calls and included in the quantity used for billing.
Description of Pay-By-Traffic
Bill is generated based on downstream traffic at the rates listed below.
|Billing Item||Price Unit||Mainland China||Hong Kong||Asia Pacific SE 3 (Singapore)||Asia Pacific SE 3 (Kuala Lumpur)||EU Central|
|Traffic (downstream traffic)||USD/GB||0.125||0.156||0.117||0.112||0.07|
Description of pay by traffic:
a) Billing item: Traffic fees (downstream traffic)
b) Payment method: Volume-based post payment
c) Billing cycle: Monthly
d) Bill generation time: The bill is generally provided within one hour (no later than 3 hours) after the end of the current billing period.
e) Billing currency: USD
f) If your backend service is not in the same region as API Gateway, or not hosted on Alibaba Cloud, additional fees for the traffic between API Gateway and backend service will be generated. The billing standards are the same as above.
A. Service suspension
When there is arrearage from you, your APIs cannot be called (operations related to API management can still be performed) and you will be reminded via SMS or email to recharge your account.
B. Service restoration
After you successfully recharge your account within six months of the service suspension, the service will automatically be activated and you can continue to use the service. If you do not recharge your account within six months, API Gateway has the right to clear all your API configuration information.
This page describes the documents for API Gateway.
You can use API Gateway to open APIs, or to request others to open APIs.
Please note the different purpose of documents during viewing.
If you use API Gateway to open APIs, please readUser Manual (Open APIs) Quick Start (Open APIs)
If you want to request others to open APIs via API Gateway, please readUser Manual (Call APIs) Quick Start (Call APIs)
Of course, you can use API Gateway's APIs and SDKs to perform operations.
Now let's start inputting APIs!
The APIs and SDKs mentioned below are interfaces and tools provided to external users by API Gateway. These interfaces and tools enable you to use the API Gateway product without the console.
These APIs are different from those opened by the users via API Gateway. To find SDKs you can use to send requests to others' open APIs, go to the SDK Download page on the console.Go to the Console and Download SDK Demo
1. What are the limits of the product?
2. Do I need additional security products?
It's Depended on the security requirements. API Gateway has adopted multiple basic security measures, including identity authentication, request encryption, tamper proof, etc.The higher security requirements,please combined with other security products.
3. Do I need to buy Server Load Balancer for the API Gateway?
API Gateway will maintain a load balance between the client and the gateway, and the gateway will automatically expand according to the number of requests. If your backend services are on multiple ECS instances, you may need Server Load Balancer to balance the load between ECS instances.
4. What if the payment is behind?
API Gateway is postpaid. If you do not pay in time, your account will be in the overdue status. Before the payment due is paid off, your API services will be suspended. If the payment is not made within six months, API Gateway has the right to delete your configuration information.
5. Why do I fail to access my backend service via API Gateway?
6. If the requestor passes an undefined parameter, how will API Gateway respond?
API Gateway will discard the parameter and will not pass it to the backend service.
7. Support the HTTPS protocol or not?
Yes, you should start with "https://" when you enter the backend service address. And your backend SSL certificate needs to be valid.
8. How long does it take to release the API?
Takes effect immediately. Be careful when releasing.
9. How long does the monitoring function delay?
The monitoring is basically real-time, and maximum delay is within one minute.
10. How to choose the Region API that the Group belong to?
Try to choose the same Region as the backend ECS, Docker.
11. What is the subdomain of the API Group? What are the limits?
The subdomain name is assigned by API Gateway. It can only be used during API testing. It is not recommended to open the subdomain name. All APIs in the Group share the same subdomain name. If you request API by visiting the subdomain name, the daily access upper limit is 1000 times.
12. What is the Custom Domain?
If you want to provide the API service, you need to bind a custom domain name with the API Group. Others can request your APIs by visiting the custom domain. The custom domain name can be a second-level or third-level domain. Before binding, you need to add the custom domain name to the subdomain of the API Group.
13. How to ensure the security between API Gateway and my backend service?
You can configure the backend signature key on API Gateway, or use HTTPS to encrypt the request.Backend Signature
14. Is it necessary to release the API a second time if I want to replace the backend signature key?
No, you just need to create a new key and bind it to API.
15. How to change the backend key without interrupting the service?
Because the binding of the key and API takes effect immediately, you need to support both the old and new keys initially, and then remove the old one after the replacement.
16. What is the APP in API Gateway?
APP was created by the requestor as an identity. Each APP has an AppKey and AppSecret, which are included in the signature request. API Gateway requires APP signature authentication and privilege authentication.
17. How does API Gateway realize the permission control?
An APP needs to be created as an identity for you while you request API service via API Gateway. Only if a requestor has the privilege or buys API service, can he or she request API.
18. How to troubleshoot when a request fails?
Please check the following items:
Verify that the domain name has been resolved;
Verify that the domain name has been bound to the subdomain of API group;
Verify that the API has been released;
Verify that the APP is authorized;
Verify that the backend service address is correct and it can be accessed properly;
Check the timeout configuration and make sure that the backend service returns within the set time;
Check the flow control limit.
Please refer to the documentation for error information:Error Code Table