---
title: "Rate Limits & Pricing"
description: "Understand API rate limits, tiers, and pricing for the Quote Gallery API."
canonical_url: "https://docs.quotegallery.nl/docs/guides/rate-limits"
---
# Rate Limits & Pricing

> Understand API rate limits, tiers, and pricing for the Quote Gallery API.

Rate limits keep the API reliable for everyone. Your limit belongs to your account, so all of your API keys share it. It runs in rolling one-hour windows: your first request starts a window, and the count resets an hour after that request (not on the hour). The next request after that starts a new window.

## Tiers

<table>
<thead>
  <tr>
    <th>
      Tier
    </th>
    
    <th>
      Requests per hour
    </th>
    
    <th>
      Price
    </th>
    
    <th>
      Best for
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Free
      </strong>
    </td>
    
    <td>
      100
    </td>
    
    <td>
      Free
    </td>
    
    <td>
      Testing and prototyping
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Hobby
      </strong>
    </td>
    
    <td>
      500
    </td>
    
    <td>
      €7.99/mo
    </td>
    
    <td>
      Small apps and personal projects
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Premium
      </strong>
    </td>
    
    <td>
      2,000
    </td>
    
    <td>
      €19.99/mo
    </td>
    
    <td>
      Production apps with real traffic
    </td>
  </tr>
</tbody>
</table>

<callout type="tip">

Active **Supporter subscribers** on the Quote Gallery website get a **25% bundle discount** on all paid tiers. The discount applies automatically at checkout.

</callout>

Need a limit that none of these fit? The **Custom** plan sets a request limit agreed with you, with all endpoints included. See the [pricing page](https://quotegallery.nl/pricing#api) or email [support@quotegallery.nl](mailto:support@quotegallery.nl).

## What each plan includes

<table>
<thead>
  <tr>
    <th>
      
    </th>
    
    <th>
      Free
    </th>
    
    <th>
      Hobby
    </th>
    
    <th>
      Premium
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Requests per hour
    </td>
    
    <td>
      100
    </td>
    
    <td>
      500
    </td>
    
    <td>
      2,000
    </td>
  </tr>
  
  <tr>
    <td>
      All endpoints
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Yes
    </td>
  </tr>
  
  <tr>
    <td>
      Hourly counter in your dashboard
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Yes
    </td>
  </tr>
  
  <tr>
    <td>
      Usage analytics: counts, endpoints, errors (30 days)
    </td>
    
    <td>
      No
    </td>
    
    <td>
      Yes
    </td>
    
    <td>
      Yes
    </td>
  </tr>
  
  <tr>
    <td>
      Advanced analytics: 90-day trends, response times, errors by status code
    </td>
    
    <td>
      No
    </td>
    
    <td>
      No
    </td>
    
    <td>
      Yes
    </td>
  </tr>
  
  <tr>
    <td>
      Support
    </td>
    
    <td>
      Guides and docs
    </td>
    
    <td>
      Email support
    </td>
    
    <td>
      Priority support
    </td>
  </tr>
</tbody>
</table>

See [Usage analytics](#usage-analytics) for what each level shows.

## Rate limit headers

Every response to a request that was counted, whether it succeeded or ended in a `400`, `404` or `500`, includes three headers so you always know where you stand. A `429` carries them too, plus `Retry-After`. A `401` (no key, or a key that is not valid) carries none, because nothing was counted.

<table>
<thead>
  <tr>
    <th>
      Header
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        X-RateLimit-Limit
      </code>
    </td>
    
    <td>
      Your hourly request cap (your tier’s, or your Custom plan’s)
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        X-RateLimit-Remaining
      </code>
    </td>
    
    <td>
      Requests left in the current window, counting the request you just made
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        X-RateLimit-Reset
      </code>
    </td>
    
    <td>
      Unix timestamp (seconds) when the window resets
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        Retry-After
      </code>
    </td>
    
    <td>
      On a <code>
        429
      </code>
      
       only: whole seconds until you can try again
    </td>
  </tr>
</tbody>
</table>

```http
HTTP/1.1 200 OK
X-RateLimit-Limit: 500
X-RateLimit-Remaining: 487
X-RateLimit-Reset: 1704070800
```

Browser apps can read these headers: the API lists them in `Access-Control-Expose-Headers`.

## When you hit the limit

A 429 response means you’ve exhausted your quota for the current window:

```json
{
  "error": "Rate limit exceeded. Limit: 500 requests/hour. Resets at 2026-01-01T13:00:00.000Z",
  "code": "RATE_LIMIT_EXCEEDED",
  "status": 429
}
```

The `Retry-After` header (and `X-RateLimit-Reset`) tell you exactly when to retry. The recommended pattern is to wait until the reset time rather than using fixed backoff:

<tabs>
<tabs-item label="JavaScript">

```js
async function fetchWithRetry(url, options, maxRetries = 3) {
  for (let attempt = 0; attempt <= maxRetries; attempt++) {
    const response = await fetch(url, options)

    if (response.status !== 429) return response

    const reset = response.headers.get('X-RateLimit-Reset')
    const waitMs = reset
      ? (Number(reset) * 1000) - Date.now()
      : Math.pow(2, attempt) * 1000

    await new Promise((resolve) => setTimeout(resolve, Math.max(waitMs, 1000)))
  }

  throw new Error('Max retries exceeded')
}
```

</tabs-item>

<tabs-item label="Python">

```python
import time, requests

def fetch_with_retry(url, headers, params=None, max_retries=3):
    for attempt in range(max_retries + 1):
        response = requests.get(url, headers=headers, params=params)

        if response.status_code != 429:
            return response

        reset = response.headers.get('X-RateLimit-Reset')
        wait = max(int(reset) - int(time.time()), 1) if reset else 2 ** attempt
        time.sleep(wait)

    raise Exception('Max retries exceeded')
```

</tabs-item>
</tabs>

## Staying within your limit

A few habits go a long way:

- **Cache aggressively.** Categories change rarely, so cache them for hours. Random quotes for quote-of-the-day features only need one request per day.
- **Use the right page size.** Fetch what you need. If you’re displaying 5 quotes, don’t request 100.
- **Watch X-RateLimit-Remaining.** If you’re regularly hitting zero, that’s your signal to upgrade.
- **Batch with filters.** Use `categories`, `author_id`, or `playlist_id` to get the right quotes in one request rather than filtering on your end.

## Caching

Responses to requests with a key are marked `Cache-Control: private`, with a short `max-age` (30 seconds for the quote list, 60 for the other lists and for a single item, 5 minutes for categories), or `no-store` for random quotes and errors. `private` means shared caches (a CDN or proxy) must not keep them: a cached answer would skip your key check, your limit and your usage count, and would carry someone else’s rate-limit headers. Cache on your side, in your own server or app, and never put a shared cache rule in front of `/api/v1/`.

## Usage analytics

Your dashboard shows how your keys are used. What you see depends on your plan:

- **Free:** your hourly counter (requests used, requests left and when the window resets) and your keys. Request counts over time and charts are not included.
- **Hobby:** everything in Free, plus requests over time for the last 24 hours, 7 days and 30 days, usage per endpoint, **errors** (a count, a rate and the status codes) and totals per key.
- **Premium:** everything in Hobby, plus **advanced analytics** for up to 90 days: a daily trend of requests and errors, **response times** (p50 and p95) per endpoint and per day, errors by status code, and how long responses took.

A few things worth knowing:

- An **error** is any response with a status of 400 or higher after your key was accepted, for example a `404` for an ID that does not exist. Calls with a missing or invalid key and calls refused with `429` are not counted, so they do not show up here.
- **Response times** are server time: how long we took to handle your request, from when handling started to when the answer was ready. They leave out the network between you and us, any proxy of your own, and the small setup before handling starts, so the times you measure in your app will be longer. They are **estimates**: each response is filed in one of eleven time buckets (up to 20 ms, 40, 80, 120, 200, 300, 500, 800, 1,500, 3,000 ms and slower), so p50 and p95 are accurate to one bucket, and anything slower than 3,000 ms is shown as “3000+”. Response times are recorded for every plan but only shown on Premium, and your history starts from the day recording began.
- The 24-hour view counts requests and errors per hour. Errors per endpoint and status codes are shown for 7 days and longer.
- Days are UTC days. Analytics are kept for 90 days.

## Bundle discount

<table>
<thead>
  <tr>
    <th>
      Tier
    </th>
    
    <th>
      Regular
    </th>
    
    <th>
      With Supporter bundle
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      Hobby
    </td>
    
    <td>
      €7.99/mo
    </td>
    
    <td>
      €5.99/mo
    </td>
  </tr>
  
  <tr>
    <td>
      Premium
    </td>
    
    <td>
      €19.99/mo
    </td>
    
    <td>
      €14.99/mo
    </td>
  </tr>
</tbody>
</table>

## FAQ

**What counts as one request?** Every authenticated API call, regardless of which endpoint. Errors such as `404` count too, and show in your analytics; `429` responses and calls with an invalid key do not.

**Can I get more than 2,000 requests/hour?** Yes, with the Custom plan: a request limit that fits your app, at a price agreed with you. Ask about it on the [pricing page](https://quotegallery.nl/pricing#api) or email [support@quotegallery.nl](mailto:support@quotegallery.nl).

**What happens when I cancel?** You keep your plan until the end of the period you paid for, then it reverts to Free. Your API key stays valid; only the limit and the analytics change.

**Does the limit reset on the hour?** No. It is a rolling window: it starts with your first request and ends an hour later. `X-RateLimit-Reset` always tells you exactly when.

**Do all endpoints share the same pool?** Yes, there are no per-endpoint limits. All endpoints draw from the same hourly quota.


## Sitemap

See the full [sitemap](https://docs.quotegallery.nl/sitemap.md) for all pages.
