Machine Library API

REST API over the Machine Library corpus: hybrid full-text search across the documents and social indexes (POST /v2/search/), similarity search, token-bounded document fetch by ID or canonical URI (DOI/arXiv/PMID/ISBN), in-document passage search via text_filter, original PDF/EPUB/DJVU streaming with byte ranges, retrieval-augmented conversation turns (JSON or SSE stream), PDF/EPUB/DJVU-to-Markdown recognition jobs, and a Stripe MPP prepaid-credit top-up. Authenticated with an X-Api-Key header or the same key / an OAuth 2.0 access token as a Bearer token; billed per request from a prepaid USD balance.

Operations 19

POST /v2/search/ Search across one or more Machine Library indexes. #
POST /v2/search/feedback #
GET /v2/documents/by-uri/{uri} Fetch a document by canonical URI, or search inside it with `text_filter`. #
GET /v2/documents/{document_id} Fetch a document and its public metadata by Machine Library document ID. #
POST /v2/search/similar Find documents similar to a source document. #
GET /v2/conversations/ List conversations owned by the authenticated user. #
POST /v2/conversations/ Run a retrieval-augmented conversation turn. #
POST /v2/conversations/stream Run a conversation turn and stream newline-delimited progress events. #
GET /v2/conversations/{slug} Fetch a conversation and all recorded request/response steps. #
DELETE /v2/conversations/{slug} Delete a conversation owned by the authenticated user. #
PUT /v2/conversations/{conversation_id_or_slug}/edit-step/{step_id} Replace a request step and recompute the conversation from that point. #
PUT /v2/conversations/{conversation_id_or_slug}/edit-step/{step_id}/stream Replace a request step and stream the recomputation as newline-delimited events. #
POST /v1/recognitions Submit a document for recognition #
GET /v1/recognitions/{id} Job status #
GET /v1/recognitions/{id}/report Structured recognition report #
GET /v1/recognitions/{id}/result Recognized Markdown #
GET /v2/downloads/{filename} Original document by ID #
GET /v2/downloads/by-uri/{uri} Original document by URI #
POST /v2/payments/mpp/top-up Fund the authenticated account balance using Stripe MPP #

Documentation

Specifications

Other Resources

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/machine-library-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

machinelibrary-ai-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Machine Library API
  description: 'Search, retrieve, and synthesize scholarly and public-interest documents through Machine Library, the search
    and AI product by Space Frontiers Company. Document recognition endpoints (`/v1/recognitions`: PDF, EPUB, and DJVU to
    structured Markdown) share this host and are described at `/v1/recognitions/docs/openapi.json`; the site reference at
    https://machinelibrary.ai/docs/api/reference presents both specs merged.'
  license:
    name: MIT
    identifier: MIT
  version: 0.1.0
servers:
- url: https://api.machinelibrary.ai
  description: Machine Library


# --- truncated at 32 KB (62 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/machinelibrary-ai/refs/heads/main/openapi/machinelibrary-ai-openapi.yml