# Rate Limiting — NestJS: Building Scalable Node.js APIs

Source: https://www.skillbyai.com/en/nestjs/nestjs-rate-limiting

> Protect your API from abuse with @nestjs/throttler and the @Throttle decorator per route or globally.

## Throttle decorator

Use `@Throttle()` guard to limit requests per time window.

```typescript
import { Throttle } from '@nestjs/throttler';

@Throttle({ default: { limit: 10, ttl: 60000 } })  // 10 requests per minute
@Get()
findAll() { ... }
```
