# API rate limiting by key: track requests with Redis, serve data from Airtable
This automation template enables controlled access to an API by enforcing per-key rate limits per minute and hour. It serves as a lightweight gateway prototype or internal protection layer against abuse. Designed for developers and product teams managing API usage.
## Who it´s for
- Developers managing access to internal APIs
- Companies offering APIs with usage quotas
- Product teams prototyping rate limiting in staging environments
## What the automation does
- Receives incoming HTTP requests via webhook
- Extracts the x-api-key from request headers
- Tracks request count per key over the last minute and hour using Redis
- Returns a ´You exceeded your limit´ error if thresholds are breached
- On successful check, fetches and returns Pokémon data from Airtable
- Maintains granular usage tracking per unique API key
## What´s included
- Ready-to-use n8n workflow
- Trigger and conditional logic structure
- Integrations with HTTP API, Redis, and Airtable
- Basic setup and adaptation guide
## Requirements for setup
- n8n instance (self-hosted or cloud)
- Redis access (e.g., Redis Cloud)
- Airtable account with a Pokémon data table
- Webhook URL to receive incoming requests
## Benefits and outcomes
- Prevents API overload and unauthorized scraping
- Enables key-based access control
- Scales easily to other data types
- Rapid deployment of API gateway logic without coding
- Real-time usage tracking by time window and key
## Important: template only
Important: you are purchasing a ready-made automation workflow template only. Rollout into your infrastructure, connecting specific accounts and services, 1:1 setup help, custom adjustments for non-standard stacks and any consulting support are provided as a separate paid service at an individual rate. To discuss custom work or 1:1 help, contact via chat
No feedback yet