---
title: "Overview"
description: "Overview of the Quote Gallery API v1: base URL, authentication, and available endpoints."
canonical_url: "https://docs.quotegallery.nl/docs/api/overview"
---
# Overview

> Overview of the Quote Gallery API v1: base URL, authentication, and available endpoints.

The Quote Gallery API v1 is a REST API that provides read access to the catalog. All endpoints return JSON and follow consistent conventions for pagination, filtering, and error handling.

## Base URL

```text
https://quotegallery.nl/api/v1
```

## Authentication

Every request must include a valid API key in the `X-API-Key` header:

```bash
curl -H "X-API-Key: your_api_key_here" \
  https://quotegallery.nl/api/v1/quotes
```

See the [Authentication](https://docs.quotegallery.nl/docs/getting-started/authentication) guide for how to get and manage your key.

## Endpoints

### Quotes

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      Endpoint
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://docs.quotegallery.nl/docs/api/quotes#list-quotes">
        <code>
          /api/v1/quotes
        </code>
      </a>
    </td>
    
    <td>
      Paginated list of approved quotes
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://docs.quotegallery.nl/docs/api/quotes#random-quote">
        <code>
          /api/v1/quotes/random
        </code>
      </a>
    </td>
    
    <td>
      A single random quote
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://docs.quotegallery.nl/docs/api/quotes#get-quote-by-id">
        <code>
          /api/v1/quotes/:id
        </code>
      </a>
    </td>
    
    <td>
      A specific quote by ID
    </td>
  </tr>
</tbody>
</table>

### Authors

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      Endpoint
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://docs.quotegallery.nl/docs/api/authors#list-authors">
        <code>
          /api/v1/authors
        </code>
      </a>
    </td>
    
    <td>
      Paginated list of authors
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://docs.quotegallery.nl/docs/api/authors#get-author-by-id">
        <code>
          /api/v1/authors/:id
        </code>
      </a>
    </td>
    
    <td>
      A specific author by ID
    </td>
  </tr>
</tbody>
</table>

### Playlists

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      Endpoint
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://docs.quotegallery.nl/docs/api/playlists#list-playlists">
        <code>
          /api/v1/playlists
        </code>
      </a>
    </td>
    
    <td>
      Paginated list of public playlists
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://docs.quotegallery.nl/docs/api/playlists#get-playlist-by-id">
        <code>
          /api/v1/playlists/:id
        </code>
      </a>
    </td>
    
    <td>
      A specific playlist by ID
    </td>
  </tr>
</tbody>
</table>

### Categories

<table>
<thead>
  <tr>
    <th>
      Method
    </th>
    
    <th>
      Endpoint
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        GET
      </code>
    </td>
    
    <td>
      <a href="https://docs.quotegallery.nl/docs/api/categories">
        <code>
          /api/v1/categories
        </code>
      </a>
    </td>
    
    <td>
      All categories with quote counts
    </td>
  </tr>
</tbody>
</table>

## Response format

Successful responses wrap the result in a `data` field:

```json
{ "data": { ... } }
```

The quote, author and playlist lists include a `pagination` object:

```json
{
  "data": [ ... ],
  "pagination": {
    "total": 150,
    "limit": 20,
    "offset": 0,
    "hasMore": true
  }
}
```

## Pagination

Those lists accept `limit` (default `20`, max `100`) and `offset` (default `0`).

## Filtering

Several endpoints share these query parameters:

<table>
<thead>
  <tr>
    <th>
      Parameter
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        language
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Quote endpoints and <code>
        include_quotes
      </code>
      
      : return text in this language (<code>
        en
      </code>
      
      , <code>
        nl
      </code>
      
      , <code>
        tr
      </code>
      
      , …) where a translation exists. It does not filter
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        categories
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Quote, author and playlist lists and the random quote: comma-separated category slugs. Matches any (OR logic)
    </td>
  </tr>
</tbody>
</table>

## Errors

Errors return a JSON body with a readable `error` message, a stable `code` to branch on, and a `status` number that mirrors the HTTP status code:

```json
{
  "error": "Invalid API key",
  "code": "INVALID_API_KEY",
  "status": 401
}
```

See the [Error Handling](https://docs.quotegallery.nl/docs/guides/error-handling) guide for the full list of codes and retry patterns.

## Rate limits

Every response to a counted request (a success, or a `400`, `404` or `500`) includes these headers, and so does a `429`:

<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
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        X-RateLimit-Remaining
      </code>
    </td>
    
    <td>
      Requests left in the current window
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        X-RateLimit-Reset
      </code>
    </td>
    
    <td>
      Unix timestamp (seconds) when the window resets
    </td>
  </tr>
</tbody>
</table>

A `429` also has `Retry-After` (seconds). Responses to requests with a key are `Cache-Control: private` (or `no-store`), so cache them in your own app, not in a shared cache. See [Rate Limits & Pricing](https://docs.quotegallery.nl/docs/guides/rate-limits) for the details, and for the usage analytics your plan includes.

## Versioning

The v1 API is stable. Breaking changes are not introduced to existing versions. They are released under a new version prefix (e.g. `/api/v2`).

<card-group>
<card icon="i-lucide-quote" title="Quotes" to="https://docs.quotegallery.nl/docs/api/quotes">

Retrieve, search, and filter quotes.

</card>

<card icon="i-lucide-user" title="Authors" to="https://docs.quotegallery.nl/docs/api/authors">

Browse and search authors.

</card>

<card icon="i-lucide-list-music" title="Playlists" to="https://docs.quotegallery.nl/docs/api/playlists">

Access curated quote collections.

</card>

<card icon="i-lucide-tag" title="Categories" to="https://docs.quotegallery.nl/docs/api/categories">

Get all available categories.

</card>
</card-group>


## Sitemap

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