🎉 New to MixCache.com? Sign up now and get $5.00 FREE CREDIT towards any ebook purchase!* Create Account →

MixCache.com API for Developers & AI Agents

The MixCache.com API lets your software or AI agent search our catalog and buy the full text of MixCache.com books, delivered as a plain Markdown text file, for your internal use. Read a free sample of any book before you buy, then purchase one book or up to 100 in a single call.

Get an API key

Which books are available? Only books published by MixCache.com itself (16,000+ titles). Browse the eligible books. Books by third-party authors and publishers, and books in the MixCache.com Extended Catalog, are not available through the API.

Price: $49.95 per book, charged in US dollars to the card saved on your account. No extra fees.

Internal use only: you may not publish, republish, share, resell or distribute the books, or any substantial part of them, anywhere, or present them as your own work. See the API Terms of Use.

Getting started

  1. Sign in to MixCache.com (or create a free account).
  2. Save a payment card under Manage Billing in your account. Purchases are charged to that card. Some cards, such as ones that require extra authentication for every payment (common in Europe), can't be used for API purchases.
  3. Open API Access, accept the API Terms of Use, and create a key. Keys look like mxc_live_… and are shown once: store yours somewhere safe. Anyone with your key can buy books on your card, so revoke it right away if it leaks.

Authentication

Send your key with every request, in either header:

Authorization: Bearer mxc_live_your_key
X-API-Key: mxc_live_your_key

Base URL: https://mixcache.com/v1. Every response is JSON except the book text itself. A machine-readable description is at /developers/openapi.json (OpenAPI 3.1).

Endpoints

Search: GET /v1/search (free)

Searches the eligible books, the same way search works on MixCache.com.

ParameterDescription
qRequired. Search words (title, subtitle, description, author).
page, per_pagePaging. per_page defaults to 20, maximum 50.
languageOptional: en, es, fr, it, de, pt, nl, zh. en also matches books whose language hasn't been detected yet.
book_typeOptional: fiction or nonfiction.
curl -H "Authorization: Bearer $KEY" "https://mixcache.com/v1/search?q=silk+road&book_type=nonfiction"

Each result has id, title, subtitle, author, book_type, language, words (use it to choose by length), published_at, price, currency and cover_url.

Book detail and free sample: GET /v1/books/{id} (free)

Everything in a search result plus description, bullet_points, target_audience, categories, table_of_contents, sections_total, a sample of the first 3 sections (each {heading, text}), and owned (whether your account has already bought it). Read the sample to check a book covers what you need before you buy.

Buy: POST /v1/purchase

One call buys up to 100 books with a single charge to your saved card. List book ids and/or inclusive id ranges. A range includes only the eligible books inside it; any explicitly listed id that isn't eligible rejects the whole call, and nothing is charged. Books you already own are skipped and not charged.

curl -X POST "https://mixcache.com/v1/purchase" \
  -H "Authorization: Bearer $KEY" \
  -H "Idempotency-Key: order-2026-11-24-001" \
  -H "Content-Type: application/json" \
  -d '{"books": [18587, "12100-12150"]}'
  • Quote first: add ?dry_run=1 to see exactly which books would be bought, which are skipped, the total, your card, and your remaining daily limit. Nothing is charged.
  • Idempotency-Key (required for real purchases): a unique string you choose for each purchase. If your connection drops, retry with the same key: you get the original result and are never charged twice. Use a new key for a new purchase, or to try again after a failed one.
  • The response lists the books charged and a text_url for each, plus the total and a payment reference. A receipt is emailed to the account owner.
  • Prices can change. A purchase is charged at the price in effect when it's made, and the response shows it.

Download: GET /v1/books/{id}/text

The full book as plain Markdown text (text/markdown), for books your account has bought. Add ?format=json to get {"sections": [{heading, text}, …]} instead.

curl -H "Authorization: Bearer $KEY" "https://mixcache.com/v1/books/18587/text" -o book.md

Your library: GET /v1/library

Everything your account has bought, newest first, with a text_url for each, so you can download again at any time.

Limits

LimitValue
Books per purchase call100
Daily spending limit$500 per rolling 24 hours for new accounts. Need more? Request a higher limit on the API Access page.
Requests60 per minute per key. Responses carry X-RateLimit-Limit and X-RateLimit-Remaining; over the limit you get 429 with Retry-After.

Licensing large portions of the catalog? Contact us.

Errors

Errors are JSON: {"error": {"code": "…", "message": "…"}}.

CodeHTTPMeaning
invalid_api_key401Missing, unknown or revoked key.
account_disabled403API access for this account is disabled. Contact support.
not_found404Not a book available through the API, or an unknown endpoint.
not_owned403Text requested for a book this account hasn't bought.
invalid_request400Bad parameters or request body.
ineligible_books400Lists ids that aren't available. Nothing was charged.
too_many_books400More than 100 books in one call. Split it.
idempotency_key_required400A real purchase needs an Idempotency-Key header.
no_payment_method402No card on file. Save one under Manage Billing.
card_declined402The card was declined. Nothing was charged.
card_requires_authentication402The card needs the cardholder to approve each payment, so it can't be used for API purchases. Save a different card.
daily_cap_exceeded402Over the daily spending limit. Shows your limit and what's left.
purchase_in_progress409Another purchase for your account is running. Retry shortly.
payment_error502The payment processor couldn't be reached. Retry with the same Idempotency-Key.
rate_limited429Too many requests. Wait for Retry-After seconds.

Refunds

All sales are final, except duplicate or erroneous charges, which we refund. See the API Terms of Use.

Get an API key