---
title: "Search the library"
method: GET
path: "/search"
---

# Search the library

`GET /search`

## Request

- Base URL: `https://sourcelibrary.org/api`
- URL: `https://sourcelibrary.org/api/search`
- Auth: none declared

Search across all books, translations, and page content. Returns matching books and pages with snippets.

## Query parameters

- `q` string, required
- `language` 'Latin' | 'German' | 'French' | 'Italian' | 'English' | 'Dutch' | 'Spanish'
- `category` 'alchemy' | 'hermeticism' | 'jewish-kabbalah' | 'christian-cabala' | 'neoplatonism' | 'rosicrucianism' | 'natural-philosophy' | 'astrology' | 'natural-magic' | 'ritual-magic' | 'theurgy' | 'mysticism' | 'theology' | 'medicine' | 'gnosticism'
- `date_from` string
- `date_to` string
- `has_doi` boolean
- `has_translation` boolean
- `limit` integer
- `offset` integer

## Response `200`

Search results

- SearchResponse
  - `query` string
  - `total` integer
  - `offset` integer
  - `limit` integer
  - `results` SearchResult[]
    - `id` string
    - `type` 'book' | 'page'
    - `book_id` string
    - `title` string
    - `display_title` string
    - `author` string
    - `language` string
    - `published` string
    - `page_count` integer
    - `translated_count` integer
    - `has_doi` boolean
    - `doi` string
    - `page_number` integer: For page results only
    - `snippet` string: Text excerpt matching the query

## Other responses

- `400`: Invalid query

---

[API](https://skmtc.dev/sourcelibrary/apis/source-library-api.md) · [All operations](https://skmtc.dev/sourcelibrary/apis/source-library-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sourcelibrary/apis/source-library-api/revisions/2ad66c503f51?raw)
