VinylVibes usesDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/akibanks/api-tienda-vinilos/llms.txt
Use this file to discover all available pages before exploring further.
express-rate-limit to enforce two tiers of rate limiting — global and auth-specific — and returns standard RateLimit-* headers on every response. The middleware runs early in the Express stack, before route handlers, so rate-limited requests are rejected without touching the database or external APIs.
Rate Limit Tiers
Global Limit
Applies to all routes. Allows up to 100 requests per minute per IP address. Exceeding the limit returns HTTP 429.
Auth Limit
Applies to
POST /registro and POST /login only. Allows up to 10 requests per 15 minutes per IP address. This stricter limit protects against brute-force and credential-stuffing attacks.| Scope | Routes | Window | Max Requests | Response on Exceed |
|---|---|---|---|---|
| Global | All routes | 1 minute | 100 | HTTP 429 |
| Auth | POST /registro, POST /login | 15 minutes | 10 | HTTP 429 |
Response Headers
Both limiters are configured withstandardHeaders: true and legacyHeaders: false. This means every API response includes the modern RateLimit-* header set defined by the IETF draft standard:
X-RateLimit-* headers are not sent. Clients should read RateLimit-Remaining to track how many requests remain in the current window and RateLimit-Reset (seconds until window resets) to know when to retry.
Error Responses
When a client exceeds a rate limit, the API returns HTTP429 Too Many Requests with a JSON body. The error message is determined by which limiter fired:
Global limiter (all routes):
/registro, /login):
express-rate-limit configuration in index.js:
Best Practices for Clients
Rate limits are enforced per IP address. If your application routes all traffic through a shared egress IP (e.g. a single backend proxy calling VinylVibes on behalf of multiple users), the entire proxy shares one rate limit bucket. In that case, implement your own per-user throttling layer before hitting the VinylVibes API.