Skip to main content
Get started with Limitly in just a few minutes. This guide will walk you through setting up rate limiting for your application.

Prerequisites

  • Node.js 16+
  • A Limitly account (sign up at app.limitly.dev)
  • Your Limitly API key

Step 1: Install the SDK

Step 2: Initialize the SDK

Step 3: Create a Plan

First, create a usage plan for your users:

Step 4: Create a User

Create a user account:

Step 5: Generate an API Key

Create an API key for the user:

Step 6: Validate Requests

Now you can validate requests in your application:

Step 7: Test Your Integration

Test your rate limiting with a simple request:
You should see the rate limit headers in the response:

Complete Example

Here’s a complete Express.js example:

Next Steps