{
  "service": "Open Books",
  "tagline": "Rights-screened book and corpus supply for AI data pipelines",
  "version": "1.0.0",
  "description": "Open Books supplies rights-screened otl Library books to AI agents: free discovery and exact quotes, x402-paid original PDF/EPUB/text streaming, with source attribution and SHA-256 integrity.",
  "payment_protocol": {
    "name": "x402",
    "version": 2,
    "schemes": [
      "exact"
    ],
    "networks": [
      "eip155:8453",
      "eip155:42161"
    ],
    "assets": {
      "eip155:8453": {
        "symbol": "USDC",
        "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "transfer": "eip3009"
      },
      "eip155:42161": {
        "symbol": "USDC",
        "address": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
        "transfer": "eip3009"
      }
    },
    "pay_to": "0xA5E6eB31868A85127B1ED82b8C760193356206ED",
    "facilitators": [
      "https://facilitator.payai.network",
      "https://x402.dexter.cash"
    ]
  },
  "pricing": {
    "currency": "USDC (unidades atómicas)",
    "search": {
      "price": 2000,
      "usd": "$0.0020"
    },
    "book": {
      "price": 1000,
      "usd": "$0.0010"
    },
    "read": {
      "price": 5000,
      "usd": "$0.0050"
    },
    "bulk": {
      "price": 4000,
      "usd": "$0.0040"
    },
    "enrich": {
      "price": 20000,
      "usd": "$0.02"
    },
    "session": {
      "15min": {
        "price": 500000,
        "usd": "$0.50"
      },
      "30min": {
        "price": 900000,
        "usd": "$0.90"
      },
      "60min": {
        "price": 1800000,
        "usd": "$1.80"
      }
    }
  },
  "endpoints": [
    {
      "method": "GET",
      "path": "/",
      "auth": "none"
    },
    {
      "method": "GET",
      "path": "/health",
      "auth": "none"
    },
    {
      "method": "GET",
      "path": "/v1/catalog",
      "auth": "none"
    },
    {
      "method": "GET",
      "path": "/v1/preview/otl/{id}",
      "auth": "none"
    },
    {
      "method": "GET",
      "path": "/v1/search?q=&provider=all|otl&limit=",
      "auth": "x402"
    },
    {
      "method": "GET",
      "path": "/v1/book/otl/{id}",
      "auth": "x402"
    },
    {
      "method": "GET",
      "path": "/v1/read/otl/{id}?chunk=N&format=text|json",
      "auth": "x402"
    },
    {
      "method": "GET, POST",
      "path": "/v1/full/otl/{id}",
      "auth": "x402"
    },
    {
      "method": "POST",
      "path": "/v1/bulk",
      "auth": "x402"
    },
    {
      "method": "POST",
      "path": "/v1/enrich",
      "auth": "x402"
    },
    {
      "method": "POST",
      "path": "/v1/session",
      "auth": "x402"
    },
    {
      "method": "GET",
      "path": "/v1/corpus",
      "auth": "none"
    },
    {
      "method": "GET",
      "path": "/v1/corpus/discover?q=TOPIC&limit=6",
      "auth": "none"
    },
    {
      "method": "GET, POST",
      "path": "/v1/corpus/quote?ids=provider:id,... or JSON {items|ids}",
      "auth": "none"
    },
    {
      "method": "POST",
      "path": "/v1/corpus/bundle",
      "auth": "x402"
    }
  ],
  "providers": [
    {
      "id": "otl",
      "name": "Open Textbook Library (OTL JSON API)",
      "url": "https://open.umn.edu/opentextbooks",
      "volume": "Open textbook catalog; full files are hosted by authors/publishers and vary by title",
      "license": "Commercial delivery only for recognized CC BY, CC BY-SA, CC0 or GNU FDL records; NC and ND excluded; verify publisher terms per title",
      "api": "https://open.umn.edu/opentextbooks/textbooks.json"
    }
  ],
  "accepts_example": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "maxAmountRequired": "2000",
      "amount": "2000",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "assetType": "ERC20",
      "assetTransferMethod": "eip3009",
      "payTo": "0xA5E6eB31868A85127B1ED82b8C760193356206ED",
      "resource": "https://open-books.alfrexo95.workers.dev/v1/search?q=dostoyevsky",
      "maxTimeoutSeconds": 120,
      "extra": {
        "name": "USD Coin",
        "version": "2",
        "description": "Open Books: búsqueda federada ($0.0020 USD)",
        "service": "Open Books"
      }
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "maxAmountRequired": "2000",
      "amount": "2000",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "assetType": "ERC20",
      "assetTransferMethod": "eip3009",
      "payTo": "0xA5E6eB31868A85127B1ED82b8C760193356206ED",
      "resource": "https://open-books.alfrexo95.workers.dev/v1/search?q=dostoyevsky",
      "maxTimeoutSeconds": 120,
      "extra": {
        "name": "USD Coin",
        "version": "2",
        "description": "Open Books: búsqueda federada ($0.0020 USD)",
        "service": "Open Books"
      }
    }
  ],
  "compliance": {
    "sources": "otl Library",
    "content": "Texto o EPUB únicamente cuando los derechos del ítem permiten reutilización comercial; atribución y condiciones de licencia conservadas"
  },
  "contact": "alfrexo1995@gmail.com"
}