Get more from RuneStatsAuto-snapshots, no rate limits & full name customization + more!
See Premium

Authentication & Rate Limits

All endpoints are public and require no authentication. API keys are optional and only increase your rate limits.

No Authentication Required

Unlike many APIs, RuneStats follows the WiseOldMan model where all endpoints are completely open. You can start making requests immediately without signing up or obtaining an API key.

Rate Limits

Rate limits are applied per IP address (anonymous) or per API key (authenticated). Using an API key gives you 10x the rate limit.

TierRate LimitHow to Get
Anonymous10 requests/minAnyone (IP-based)
With API Key100 requests/minPremium + API subscribers

Using an API Key

To use your API key, include it in the X-API-Key header:

curl -H "X-API-Key: rs_live_your_key_here" \
  https://runestats.info/api/v1/players/Zezima

JavaScript Example

const response = await fetch('https://runestats.info/api/v1/players/Zezima', {
  headers: {
    'X-API-Key': 'rs_live_your_key_here'
  }
});
const data = await response.json();

Python Example

import requests

response = requests.get(
    'https://runestats.info/api/v1/players/Zezima',
    headers={'X-API-Key': 'rs_live_your_key_here'}
)
data = response.json()

Rate Limit Headers

Every response includes headers to help you track your rate limit status:

HeaderDescription
X-RateLimit-LimitMaximum requests allowed per minute
X-RateLimit-RemainingRequests remaining in current window
X-RateLimit-ResetUnix timestamp when the rate limit resets

Rate Limited Response

When you exceed the rate limit, you'll receive a 429 response:

{
  "success": false,
  "error": {
    "code": "RATE_LIMITED",
    "message": "Rate limit exceeded. Try again in 45 seconds.",
    "retryAfter": 45
  }
}

Getting an API Key

API keys are available to Premium + API subscribers. This add-on provides increased rate limits and programmatic access to all public endpoints.

To get an API key:

  1. 1Subscribe to Premium + API on the Settings page
  2. 2Navigate to Settings > API Keys
  3. 3Click "Generate API Key"
  4. 4Copy and securely store your key (shown only once)

Keep your key secure

Never share your API key publicly or commit it to version control. If compromised, revoke it immediately in Settings.

Key Format

API keys follow this format:

rs_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Keys are 40 characters total: 8 character prefix + 32 random characters