Source Library API

Source Library API as documented publicly: 16 operations. Contract generated from the documentation by API Evangelist (2026-11-25); not the provider's own document.

GitHub OpenAPI

Operations 16

GET /api/dataset/v1/usage Your own meter: GET /api/dataset/v1/usage with your key. #
POST /api/mcp POST /api/mcp #
GET /books/{id} Book metadata, summary, DOI #
GET /books/{id}/quote Single-page text for verbatim quoting #
GET /books/{id}/text Get full book text (OCR, translation, or both) in a single call #
GET /catalog/csv Download the full catalogue as CSV #
GET /libraries GET /libraries #
GET /vectors/{store} Embedding vectors: books, gallery, clip (visual), artworks. #
GET /verify Flat alias of /books/:id/quote: verbatim page text + citation block, for web agents with URL allow-lists #
GET /works Works held in many editions across centuries, with witness counts and year spans. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sourcelibrary-org:sourcelibrary-org-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sourcelibrary-org-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: Source Library API
  version: '2026-11-25'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-25: 16 operation(s) read from 3 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; Source Library has published no machine-readable contract that
    the pipeline could find. Engine: local.'
  x-evidence-tiers:
    code-example: 1
    documentation: 15
    pages-with-code: 3
    pages-read: 3
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-25'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://sourcelibrary.org/developers
  - https://sourcelibrary.org/developers?lang=es
  - https://sourcelibrary.org/developers?lang=la
paths:
  /api/dataset/v1/usage:
    get:
      operationId: get_api_dataset_v1_usage
      tags:
      - Api
      summary: 'Your own meter: GET /api/dataset/v1/usage with your key.'
      x-source: https://sourcelibrary.org/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /api/mcp:
    post:
      operationId: post_api_mcp
      tags:
      - Api
      summary: POST /api/mcp
      x-source: https://sourcelibrary.org/developers
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiMcpRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl curl -X POST https://sourcelibrary.org/api/mcp  -H \"Content-Type: application/json\"  -d '{\n \"jsonrpc\": \"2.0\", \"\
          id\": 1,\n \"method\": \"tools/call\",\n \"params\": {\n \"name\": \"search_concept\",\n \"arguments\": { \"query\": \"prima materia\"\
          , \"limit\": 5 }\n }\n }' Browser (fetch) fetch('https://sourcelibrary.org/api/mcp', {\n method: 'POST',\n headers: { 'Content-Type':\
          \ 'application/json' },\n body: JSON.stringify"
  /books/{id}:
    get:
      operationId: get_books_id
      tags:
      - Books
      summary: Book metadata, summary, DOI
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /books/{id}/quote:
    get:
      operationId: get_books_id_quote
      tags:
      - Books
      summary: Single-page text for verbatim quoting
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /books/{id}/search:
    get:
      operationId: get_books_id_search
      tags:
      - Books
      summary: Search within a book's pages
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /books/{id}/text:
    get:
      operationId: get_books_id_text
      tags:
      - Books
      summary: Get full book text (OCR, translation, or both) in a single call
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: content
        in: query
        required: false
        schema:
          type: string
        description: ocr, translation, or both (default)
      - name: from
        in: query
        required: false
        schema:
          type: number
        description: Page range start (inclusive)
      - name: to
        in: query
        required: false
        schema:
          type: number
        description: Page range end (inclusive)
      - name: format
        in: query
        required: false
        schema:
          type: string
        description: json (structured) or plain (concatenated text)
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /catalog/author-search:
    get:
      operationId: get_catalog_author_search
      tags:
      - Catalog
      summary: Find canonical authors by name.
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
        description: Search term for author name
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /catalog/csv:
    get:
      operationId: get_catalog_csv
      tags:
      - Catalog
      summary: Download the full catalogue as CSV
      x-source: https://sourcelibrary.org/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /gallery:
    get:
      operationId: get_gallery
      tags:
      - Gallery
      summary: Search 200,000+ historical illustrations. Enumerating the corpus? Pass maxPerBook=1000 ; it defaults to 3 per book so no single
        volume dominates the browse
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: maxPerBook
        in: query
        required: false
        schema:
          type: integer
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /gallery/collections:
    get:
      operationId: get_gallery_collections
      tags:
      - Gallery
      summary: List curated image collections (visual + thematic) with cover images and counts
      x-source: https://sourcelibrary.org/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /gallery/collections/{slug}:
    get:
      operationId: get_gallery_collections_slug
      tags:
      - Gallery
      summary: One image collection with resolved items; imageCount always equals items delivered
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: slug
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /libraries:
    get:
      operationId: get_libraries
      tags:
      - Libraries
      summary: GET /libraries
      x-source: https://sourcelibrary.org/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /search:
    get:
      operationId: get_search
      tags:
      - Search
      summary: Full-text search across books and page content
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: q
        in: query
        required: true
        schema:
          type: string
        description: Search query
      - name: language
        in: query
        required: false
        schema:
          type: string
        description: Filter by language
      - name: year_from
        in: query
        required: false
        schema:
          type: number
        description: Publication year start
      - name: year_to
        in: query
        required: false
        schema:
          type: number
        description: Publication year end
      - name: sort
        in: query
        required: false
        schema:
          type: string
        description: relevance, date_asc, date_desc, title
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /vectors/{store}:
    get:
      operationId: get_vectors_store
      tags:
      - Vectors
      summary: 'Embedding vectors: books, gallery, clip (visual), artworks.'
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: store
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /verify:
    get:
      operationId: get_verify
      tags:
      - Verify
      summary: 'Flat alias of /books/:id/quote: verbatim page text + citation block, for web agents with URL allow-lists'
      x-source: https://sourcelibrary.org/developers
      parameters:
      - name: book_id
        in: query
        required: false
        schema:
          type: string
      - name: page
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
  /works:
    get:
      operationId: get_works
      tags:
      - Works
      summary: Works held in many editions across centuries, with witness counts and year spans.
      x-source: https://sourcelibrary.org/developers
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: documentation
components:
  schemas:
    PostApiMcpRequest:
      type: object
      properties:
        jsonrpc:
          type: string
        id:
          type: integer
        method:
          type: string
        params:
          type: object
          properties:
            name:
              type: string
            arguments:
              type: object
              properties:
                query:
                  type: string
                limit:
                  type: integer
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
security:
- bearer: []
tags:
- name: Api
- name: Books
- name: Catalog
- name: Gallery
- name: Libraries
- name: Search
- name: Vectors
- name: Verify
- name: Works