Rate Limits
LENS API rate limits - sliding-window counters at both the IP and API-key level. Per-minute and per-month quotas, with response headers for proactive throttling.
The API enforces rate limits at two levels: per IP address (requests without an API key) and per API key (authenticated requests). Both use a sliding-window counter.
IP-based rate limiting
Requests without an API key are rate-limited by source IP.
| Scope | Limit |
|---|---|
| Per minute | 600 requests |
| Per day | 15,000 requests |
These limits apply per IP address. Requests with an API key do not count against them, so API keys behind the same IP (e.g. corporate NAT) do not share a budget: each key has its own limits, below.
API key rate limiting
Authenticated requests are additionally rate-limited per API key. These limits are configured per key and depend on your plan.
| Scope | Default | Description |
|---|---|---|
| Per minute | 60 requests | Sliding 60-second window |
| Per month | 3,000 requests | Resets monthly |
| Unique IPs | 20 | Maximum distinct IP addresses per key per month |
Your actual limits may differ from the defaults above depending on your plan.
Endpoints with their own limit
Some endpoints have a limit of their own, per user or API key, on top of the limits above. Most of them place an order that is charged to your team, and the limit keeps a runaway loop from running up the bill. More requests within the minute get 429 Too Many Requests.
| Endpoint | Per minute |
|---|---|
Order signatory rules POST /bolagsverket/signatory-rules/{id} |
4 |
Check whether a person can sign for a company POST /bolagsverket/signatory-check/{id}/persons/{personId} |
4 |
Check a person’s trade ban and personal bankruptcies POST /bolagsverket/trade-ban/{id} |
4 |
Order Fastighetsrapport POST /properties/se/{externalId}/lantmateriet-report |
4 |
Order Fastighetsupplysning POST /properties/se/{externalId}/reports |
4 |
Buy ownership history POST /properties/se/{externalId}/ownership-timeline/purchase |
4 |
Rights GET /properties/se/{uuid}/rights |
4 |
Land regulation provisions GET /properties/se/{uuid}/land-regulation-provisions |
4 |
Secure link POST /companies/{companyId}/secure-link |
10 |
Risk & credit score GET /companies/{id}/risks |
30 |
Company report as PDF GET /companies/{id}/company-report/pdf |
30 |
Autocomplete persons POST /search-autocomplete/persons |
120 |
Ordering signatory rules also needs the bolagsverket-orders scope on the API key.
Response headers
Every response includes rate-limit headers so you can track your usage:
| Header | Description |
|---|---|
X-RateLimit-Limit |
Total requests allowed for the period |
X-RateLimit-Remaining |
Requests remaining in the period |
X-RateLimit-Reset |
Seconds until the period counter resets |
X-RateLimit-Limit-Minute |
Requests allowed per minute |
X-RateLimit-Remaining-Minute |
Requests remaining in the current minute |
X-RateLimit-Limit-IP |
Maximum unique IPs allowed for the key |
X-RateLimit-Remaining-IP |
Unique IPs remaining |
Error responses
When a rate limit is exceeded, the API returns 429 Too Many Requests with a JSON body:
{
"error": "rate_limit_exceeded",
"message": "Too many requests per minute. Check X-RateLimit-Limit-Minute and X-RateLimit-Remaining-Minute headers.",
"retry_after_seconds": 60
}The Retry-After header is also set, indicating how many seconds to wait before retrying.
Possible rate-limit errors
| Cause | Message hint | Retry after |
|---|---|---|
| Per-minute limit exceeded | Too many requests per minute |
60 seconds |
| Monthly limit exceeded | Monthly request limit exceeded |
Seconds until period reset |
| Too many unique IPs | Too many requests from different IP addresses |
Seconds until period reset |
Best practices
Monitor X-RateLimit-Remaining and X-RateLimit-Remaining-Minute headers to proactively throttle before hitting limits.
- Use exponential backoff - when you receive a
429, wait for theRetry-Afterduration before retrying. - Consolidate IPs - if you run distributed workers, be aware of the unique IP limit per key.
- Use POST multi-search - combine multiple queries into a single request where possible.