Amazon API Gateway
aws.amazon.com/api-gatewayBuild Difficulty: 5/5
Build a working replacement in a weekend with AI tools
Create, maintain, and secure APIs at any scale
How to Replace Amazon API GatewayOverview
Features
30 features across 11 categories
API Lifecycle Management(3)
Run multiple versions of the same API simultaneously, allowing quick iteration, testing, and release of new versions. Manage multiple release stages such as alpha, beta, and production.
Associate specific stages and versions of an API with custom domain names and manage them through API Gateway.
Manage multiple release stages for each API version, such as alpha, beta, and production. Each stage can be configured to interact with different backend endpoints.
API Management(1)
Built-in Cross-Origin Resource Sharing support for API requests.
API Types(3)
Best choice for building APIs that only require API proxy functionality. Optimized for serverless workloads and HTTP backends with up to 71% cost savings and 60% latency reduction compared to REST APIs.
Create RESTful APIs optimized for serverless workloads and HTTP backends using HTTP APIs or REST APIs. HTTP APIs are up to 71% cheaper than REST APIs.
Build real-time two-way communication applications, such as chat apps and streaming dashboards. API Gateway maintains a persistent connection to handle message transfer between backend service and clients.
Developer Portals(2)
Create fully managed, AWS-native developer portals for APIs. Enables centralized discovery, documentation, and governance of REST APIs across AWS infrastructure.
Segment APIs into structured product offerings to serve different audience needs while maintaining branded portals, access controls, and compliance.
Developer Tools(1)
Generate client SDKs for Java, JavaScript, Android, iOS (Objective-C or Swift), and Ruby. SDKs handle API keys and sign requests using AWS credentials.
Integrations(7)
Make calls to Amazon EC2 services from APIs.
Route requests to IP-based services registered in AWS Cloud Map, such as ECS tasks.
Make calls to AWS Elastic Beanstalk services from APIs.
Start AWS Step Functions state machines from API Gateway.
Make calls to web services outside of AWS with publicly accessible HTTP endpoints.
Execute AWS Lambda code in your account directly from APIs. Create custom APIs to code running in AWS Lambda.
Route requests to private resources in your VPC. Build APIs for services behind private Application Load Balancers (ALBs) and Network Load Balancers (NLBs).
Monitoring(3)
Log API execution errors to CloudWatch Logs to make debugging easier.
Set up custom alarms on API Gateway APIs using CloudWatch integration.
Monitor performance metrics and information on API calls, data latency, and error rates from the API Gateway dashboard integrated with Amazon CloudWatch.
Performance(3)
Set up a cache with customizable keys and time-to-live in seconds for API data to avoid hitting backend services for each request. Optional data caching charged at an hourly rate.
Provide end users with the lowest possible latency for API requests and responses by taking advantage of global network of edge locations using Amazon CloudFront.
Enable response streaming for REST APIs to stream responses as they are generated, useful for chatbots and media delivery.
Security(5)
Create API keys, set fine-grained access permissions on each API key, and distribute them to third-party developers. Define plans that set throttling and request quota limits for each individual API key.
Authorize access to APIs using AWS IAM, Amazon Cognito, OAuth tokens, OIDC, OAuth2, and Lambda authorizers for custom authorization requirements.
Authorize and verify API requests to AWS services using signature version 4 for REST APIs and WebSocket APIs.
Use AWS Lambda functions to verify and authorize bearer tokens such as JWT tokens or SAML assertions.
Create private APIs with no data transfer out charges. Includes pricing for AWS PrivateLink VPC endpoints.
Traffic Management(1)
Handle traffic management and throttle traffic to ensure backend operations withstand traffic spikes and backend systems are not unnecessarily called.
Workload Types(1)
API Gateway supports containerized and serverless workloads, as well as web applications.
Pricing
Free Tier
Popular- ✓1 million REST API calls received per month
- ✓1 million HTTP API calls received per month
- ✓1 million WebSocket messages per month
- ✓750,000 WebSocket connection minutes per month
Pay-As-You-Go - HTTP APIs
- ✓HTTP API calls - tiered pricing starting at $1.00 per million
- ✓Data transfer out charges
- ✓No minimum fees or upfront commitments
Pay-As-You-Go - REST APIs
- ✓REST API calls - tiered pricing based on volume
- ✓Data transfer out at $0.09 per GB
- ✓Optional data caching at hourly rate based on cache size
- ✓No minimum fees or upfront commitments
Pay-As-You-Go - WebSocket APIs
- ✓Messages sent and received charged at $1.00 per million
- ✓Connection minutes charged at $0.25 per million
- ✓Messages metered in 32 KB increments
- ✓No minimum fees or upfront commitments
Pay-As-You-Go - Private APIs
- ✓Private API calls at $3.50 per million
- ✓No data transfer out charges for API Gateway
- ✓AWS PrivateLink charges apply - $0.01 per AZ/hour + $0.01 per GB data processing
- ✓No minimum fees or upfront commitments
Pay-As-You-Go - API Gateway Portals
- ✓Monthly charge includes 10 PortalProducts with 40 ProductRestEndpoints each
- ✓Additional PortalProducts at $12.50 per month each
- ✓Charges prorated based on usage within the month
Cost Calculator
Keep Paying Amazon API Gateway
Build It Yourself
Total Cost Comparison
DIY hosting estimate based on Vercel + Supabase free/pro tiers (~$20/mo). Build time estimated from 30 features at very easy complexity.
Build vs Buy
Should you build a Amazon API Gateway alternative or buy the subscription? Estimate based on 30 features.
Buy Amazon API Gateway
Build Your Own
Better ValueBuilding could save ~$26,520 over 3 years.
Estimates based on 30 features and a BuildScore of 5/5. Actual costs vary.
Integrations
12 known integrations