Back to API List
Rate Limiting API
Demonstrate rate limiting patterns, quota management, and different tier restrictions.
Security
Internal API - Hosted by this App
API Endpoints & Usage
Explore and interact with the available endpoints for the Rate Limiting API. These API routes are live! The paths shown below are relative to your application's base URL. For example, if this application is hosted at
https://gen-endpoint.com
, an endpoint path for this API, such as /api/limited/basic
, would be accessible at https://gen-endpoint.com/api/limited/basic
. You can use the "Try it out" section for each endpoint or use tools like curl
, Postman, or your browser's address bar (for GET requests) to interact with them.GET
/api/limited/basic
Basic rate limited endpoint (10 requests per minute).
Show Static Examples
Example Response:
{
"message": "Basic tier response",
"data": {
"timestamp": "2024-08-16T12:00:00Z"
},
"rateLimit": {
"limit": 10,
"remaining": 7,
"resetAt": "2024-08-16T12:01:00Z"
}
}
Try it out
You can add or change query parameters in the path above (e.g., ?name=User).
GET
/api/limited/premium
Premium rate limited endpoint (100 requests per minute).
Show Static Examples
Example Response:
{
"message": "Premium tier response",
"data": {
"enhanced": true,
"timestamp": "2024-08-16T12:00:00Z"
},
"rateLimit": {
"limit": 100,
"remaining": 89,
"resetAt": "2024-08-16T12:01:00Z"
}
}
Try it out
You can add or change query parameters in the path above (e.g., ?name=User).
GET
/api/quota/status
Check current quota usage across all endpoints.
Show Static Examples
Example Response:
{
"userId": "usr_123",
"plan": "premium",
"quotas": {
"api_calls": {
"used": 1250,
"limit": 10000,
"resetDate": "2024-09-01"
},
"file_uploads": {
"used": 45,
"limit": 100,
"resetDate": "2024-09-01"
}
}
}
Try it out
You can add or change query parameters in the path above (e.g., ?name=User).