Templates / Use Redis to rate-limit your low-code API

Use Redis to rate-limit your low-code API

Needs changes

by Harshil Agrawal ✓ · 2,611 views · created 2021-09-21 · DevOps

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: Function (legacy). 1 breaking item(s) found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 11 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects Airtable and Redis.

How it runs

Trigger: When an HTTP GET request hits its webhook URL.

  1. Set (Edit Fields (Set)): sets or maps fields
  2. Redis: incr
  3. Per minute (If): checks a condition and branches into true / false
  4. Set (Edit Fields (Set)): sets or maps fields
  5. Set (Edit Fields (Set)): sets or maps fields
  6. Redis: incr
  7. Per hour (If): checks a condition and branches into true / false
  8. Airtable: list
  9. Set (Edit Fields (Set)): sets or maps fields
  10. Function: runs custom JavaScript (legacy Function node)

Services it uses

AirtableRedis

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Function: replace with Code node, mode 'Run Once for All Items'.
Removed in 3.0Replace with
Function (legacy)
Function
Code node, mode 'Run Once for All Items'

Nodes used (6)

From the author

This workflow demonstrates how to can use Redis to implement rate limits to your API. The workflow uses the incoming API key to uniquely identify the user and use it as a key in Redis. Every time a request is made, the value is incremented by one, and we…

Excerpt from Harshil Agrawal's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.