# Rate Limiting — NestJS

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

> Protect your API from abuse with rate limiting.

## 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() { ... }
```
