Introduction
Imagine you own a popular food court.
Different customers want different things:
- Some want free samples
- Some want limited meals
- Some are premium members who can eat unlimited food
You wouldnβt give everyone the same access, right?
π Thatβs exactly the problem API Products solve in Apigee X.
In modern systems, APIs are consumed by multiple apps, partners, and teams. Without proper control, you risk:
- Security breaches
- Uncontrolled traffic
- No way to monetize or limit usage
Apigee X, Google Cloudβs enterprise-grade API management platform, solves this using API Products β a core building block along with API Proxies, Security, and Rate Limiting.
In this blog, youβll learn:
- What API Products are (in simple terms)
- Why they exist and what problems they solve
- How to create an API Product step by step
- Best practices and common mistakes to avoid
Core Concepts: What Are API Products in Apigee X?
π Simple Definition
An API Product is a package of APIs + rules + access limits that you expose to developers or applications.
Think of it as a subscription plan for APIs.
π§ Real-World Analogy
API Proxy β The food counter
API Product β The menu + rules
App / Developer β The customer
An API Product decides:
- Which APIs are included
- How many requests are allowed
- Which environment (prod / test)
- Who can access them
π Key Features of API Products in Apigee X
1οΈβ£ Bundle Multiple API Proxies
You can group one or more API proxies under a single product.
Example:
/payments/transactions/accounts
All bundled into one Payments API Product.
2οΈβ£ Control API Traffic (Rate Limiting)
API Products define quota limits, such as:
- 1000 requests/day
- 10 requests/second
This protects backend systems from overload.
3οΈβ£ Enable Security & Access Control
Only apps linked to an API Product can access the APIs.
No product = β No access
4οΈβ£ Support Monetization & Partner Access
API Products are the foundation for:
- Paid APIs
- Partner APIs
- Internal vs external APIs
β Why API Products Are Important
Without API Products:
- Anyone with credentials can call any API
- No traffic control
- No usage tracking
- No separation between free vs premium users
With API Products:
β Controlled access
β Secure exposure
β Clear ownership
β Scalable API programs
Step-by-Step: Creating an API Product in Apigee X
Letβs walk through a beginner-friendly example.
π§© Scenario
You have an API Proxy called:
/payments
You want to:
- Allow access only to approved apps
- Limit usage to 100 requests per minute
πΉ Step 1: Create an API Proxy (Prerequisite)
Example proxy base path:
/payments
(Assume this proxy already exists and works.)
πΉ Step 2: Create an API Product
In Apigee UI:
- Go to Publish β API Products
- Click + Create
Fill in details:
Name: payments-basic-product
Display Name: Payments Basic API
Environment: prod
Access: Public / Private (based on need)
πΉ Step 3: Add API Proxies to the Product
Add:
payments
(Optional) Restrict paths:
/payments/**
πΉ Step 4: Configure Quota (Traffic Control)
Set quota:
Quota: 100
Interval: 1
Time Unit: minute
This means:
π Max 100 requests per minute per app
Apigee automatically enforces this using internal quota mechanisms.
πΉ Step 5: Attach Product to an App
- Create a Developer App
- Associate the API Product
- Generate Consumer Key & Secret
Only requests with valid credentials can access the API.
πΉ Step 6: Test the API
Example request:
curl -X GET https://api.example.com/payments \
-H "Authorization: Bearer <access_token>"
If quota is exceeded, Apigee responds with:
{
"fault": {
"faultstring": "Quota exceeded",
"detail": {
"errorcode": "policies.ratelimit.QuotaViolation"
}
}
}
β
No extra code needed in backend
β
Traffic managed by Apigee X
Best Practices for Using API Products in Apigee X
β 1. Design Products by Consumer Type
Create different products for:
- Internal apps
- External partners
- Premium customers
β 2. Keep Products Small and Purpose-Driven
Avoid creating one giant API Product with all APIs.
Instead:
- Payments Product
- Reports Product
- Admin Product
β 3. Always Use Quotas
Even for internal APIs.
Why?
- Prevent accidental traffic spikes
- Protect backend SLAs
β Common Mistakes to Avoid
π« Exposing APIs without API Products
π« No quota limits
π« Using one product for all use cases
π« Not monitoring usage via Analytics
Conclusion
API Products are the gatekeepers of your APIs in Apigee X.
They help you:
- Control who accesses your APIs
- Manage traffic safely
- Secure backend systems
- Scale your API ecosystem confidently
If API Proxies are the doors,
π API Products are the rules for who can enter and how often.
Once you understand API Products, concepts like security, monetization, and partner onboarding become much easier.
Call to Action π
π¬ Have questions about API Products in Apigee X?
Share them in the comments!
π Tried API Products in real projects?
Tell us what worked β or what didnβt.
π Follow for more Apigee X, API management, and real-world examples explained in simple language.
π Authoritative References
- Official Apigee Docs β API Products https://cloud.google.com/apigee/docs/api-platform/publish/what-api-product
- Apigee X Overview https://cloud.google.com/apigee/docs/overview
- API Management Concepts https://cloud.google.com/apigee/docs/api-platform/fundamentals/what-is-api-management
Top comments (0)