API Rate Limiting for Identity Verification (3)
Learn how to implement effective API rate limiting for your identity verification integration to ensure stability, security, and a positive developer experience. We cover best practices and Didit's approach.

Contents
In this guide
Jump to the part you need.
Key Takeaway 1API rate limiting is crucial for protecting your identity verification infrastructure from abuse and ensuring fair usage for all developers.
Key Takeaway 2Effective rate limiting requires careful planning, considering factors like API usage patterns, user tiers, and the cost of processing requests.
Key Takeaway 3Didit employs a robust rate limiting system utilizing both global and per-developer limits, designed to balance security, performance, and developer flexibility.
Key Takeaway 4Proper error handling and informative responses are essential when rate limits are exceeded, guiding developers to optimize their integration.
Understanding API Rate Limiting
API rate limiting is a critical aspect of any public API, especially those handling sensitive data like identity verification. It controls the number of requests a client (typically a developer's application) can make to your API within a specific timeframe. Without API rate limiting, your infrastructure can be overwhelmed by excessive requests, leading to service disruptions, increased costs, and potential security vulnerabilities.
In the context of identity verification, rate limiting is even more vital. Malicious actors could attempt to brute-force verification processes, launch denial-of-service attacks, or scrape data. A well-designed rate limiting strategy mitigates these risks and ensures a reliable service for legitimate developers.
Why Implement API Rate Limiting?
- Prevent Abuse: Protect against malicious attacks and unauthorized access.
- Ensure Service Stability: Prevent overload and maintain consistent performance.
- Fair Usage: Guarantee equitable access to the API for all developers.
- Cost Control: Manage infrastructure costs associated with processing requests.
- Security: Mitigate the risk of brute-force attacks and data scraping.
Common Rate Limiting Algorithms
Several algorithms can be used to implement API rate limiting. Here are a few common approaches:
Token Bucket
The token bucket algorithm conceptually fills a bucket with tokens at a fixed rate. Each API request consumes a token. If the bucket is empty, the request is rejected. This allows for bursts of requests as long as there are tokens available.
Leaky Bucket
Similar to the token bucket, but requests are processed at a constant rate, “leaking” from the bucket. Requests exceeding the processing rate are dropped.
Fixed Window
Limits the number of requests within a fixed time window (e.g., 100 requests per minute). Resets the counter at the start of each window.
Sliding Window
A more sophisticated approach that considers a moving time window. It provides more accurate rate limiting by averaging requests over a continuous period, smoothing out spikes in traffic.
Didit's Approach to API Rate Limiting
At Didit, we employ a hybrid approach to API rate limiting, combining global, per-developer, and per-IP address limits. This multi-layered strategy provides robust protection while minimizing disruption to legitimate developers.
- Global Limits: Overall limits on the total number of requests to the entire API. These protect our infrastructure from catastrophic overload.
- Per-Developer Limits: Limits specific to each API key. These are tiered based on the developer's subscription plan and usage history. For example, a free tier developer might have a limit of 100 requests per minute, while a premium tier developer could have 1000 requests per minute.
- Per-IP Address Limits: Limits based on the originating IP address. This mitigates the risk of abuse from a single source.
We utilize the sliding window algorithm for greater accuracy and fairness. Didit’s API returns the following headers with each response:
X-RateLimit-Limit: The maximum number of requests allowed within the current time window.X-RateLimit-Remaining: The number of requests remaining in the current time window.X-RateLimit-Reset: The timestamp (in UTC) when the rate limit resets.
When a rate limit is exceeded, the API returns a 429 Too Many Requests error with a descriptive message.
How Didit Helps
Didit’s all-in-one identity platform provides a robust and scalable solution for your identity verification needs, including built-in API rate limiting. You can focus on building your application, while we handle the complexity of ensuring a secure and reliable service. Here’s how we help:
- Automated Rate Limiting: No need to implement rate limiting yourself – it’s built-in.
- Scalability: Our infrastructure automatically scales to handle fluctuations in traffic.
- Monitoring & Alerts: We continuously monitor API usage and alert you to potential issues.
- Flexible Tiers: Choose a pricing tier that meets your needs and budget.
- Transparent Policies: Clear documentation and predictable rate limits.
Ready to Get Started?
Ready to experience the power of Didit’s identity verification platform? Take the next step:
Try it
Try this in the sandbox
Run the check this guide describes, free.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

Questions
Blog questions
Who writes the Didit blog?
Which topics does the blog cover?
Is the blog available in my language?
Where do I find product updates?
Are these posts legal advice?
How do I find posts on one topic?
Are posts dated?
Do posts link to the docs?
Is the blog the same as the docs?
Compliance built in
Audited, certified and attested.
We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center
- Regulation encoded into your flows
Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.
- Ready for AMLR
Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.
- Tested in Spain's Treasury sandbox
Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.
- Audited, not self-declared
iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.
Your obligations · 3 regions
SOC 2 Type 2
ISO 27001
iBeta Level 1 and Level 2
EU regulator attestation
FSM youth protection
GDPR
EBA remote onboarding
MiCA compatible
FIDO Alliance member
- AMLREU AML Regulation ready
Integration · Didit MCP
Run Didit from your own AI agent
Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.
- Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
- Run investigationsAsk why a session was declined, review cases, search people and companies.
- Change rulesCreate payment rules, test them on past data and switch them on.
- Pull reportsAsk for numbers, exports or the audit log.
Didit Academy


