---
name: philosophers-api
description: Build apps against Philosophers API (REST & GraphQL) or retrieve public-domain philosophy ebooks, mirrored Gutenberg texts, LibriVox audiobooks, quotes, and key ideas via REST, GraphQL, or MCP.
---

# Philosophers API Skill

Use this skill when building applications against `https://philosophersapi.com` or retrieving reliable public-domain philosophy books, audiobooks, quotes, and structured metadata.

## Quick Decision Guide

| Goal | Best Interface |
| --- | --- |
| Interactive agent lookups (quotes, philosophers, books, reading primary texts) | MCP at `https://philosophersapi.com/mcp` |
| App needing nested joins (philosopher + quotes + ebooks + audiobooks in 1 call) | `POST https://philosophersapi.com/graphql` (SDL at `/schema.graphql`) |
| Simple typed REST clients / codegen / caching by URL | `GET https://philosophersapi.com/api/...` (OpenAPI at `/openapi.json`) |
| Reliable Gutenberg ebook text even when `gutenberg.org` is down | `GET /api/books/search?mirrored=true` + `GET /api/books/{id}/text` (or direct Tigris HTML mirror) |
| Direct MP3 streaming of cleaned public-domain philosophy audiobooks | `GET /api/audiobooks/search` (Tigris URLs in `sections[].listenURL`) |

## Important Conventions & Gotchas

1. **Relative asset paths**: Philosopher/category/AR image paths (`images.faceImages.face500x500`, `arFile`, etc.) are relative to `https://philosophersapi.com`. Always resolve against `https://philosophersapi.com`.
2. **Book covers & thumbnails**: Book cover URLs in `formats["image/jpeg"]` (1792x2688) and `formats["thumbnail"]` (600px) are already absolute HTTPS URLs. For list UIs, smaller thumbnails exist at `https://philosophersapi.com/Images/Gutenberg/Thumbnails/{200|400|600}/{bookID}.jpg`.
3. **Gutenberg mirror reliability**: 580 of 585 curated books are mirrored at `https://philosophers-gutenberg.fly.storage.tigris.dev/{bookID}.html` (already substituted into `formats["text/html; charset=iso-8859-1"]` / GraphQL `formats.html` and exposed as `mirrorHTMLURL` on `/api/books/*`). For clean plain text, call `GET /api/books/{bookID}/text?offset=0&maxChars=12000` and follow `nextOffset`.
4. **Audiobook read-along sync**: Audiobooks in `/api/audiobooks/*` and GraphQL `libriVoxBooks` include `gutenbergTexts: [{ gutenbergID, firstSection }]` mapping audio chapters to the matching Gutenberg text. All 344 recordings stream from Tigris (`philosophers-audiobooks.t3.tigrisblob.io`).
5. **Name routes**: `/api/philosophers/name/{name}` and `/api/categories/name/{name}` accept `+` or `%20` for spaces and are case-sensitive in REST; use `/search?keyword=...` or MCP `get_philosopher` for fuzzy/case-insensitive matching.
6. **Book `relation` & `year`**: Both ebooks and audiobooks carry `relation` (`"work"` by the philosopher, `"collection"` containing their writing, or `"about"` secondary literature) and `year` (negative integers for BCE) for chronological shelving.

## Contracts to Fetch Before Writing Client Code
- `curl https://philosophersapi.com/openapi.json` — Complete REST OpenAPI 3.1 schema
- `curl https://philosophersapi.com/schema.graphql` — Complete GraphQL SDL with field descriptions
- `curl https://philosophersapi.com/llms-full.txt` — Full reference with sample queries