# next-books

> NextBooks is a searchable catalogue built from the UCSD Goodreads book graph. Use it to find books by title, narrow them by publication year, rating, length, language or curated list, and read one book's authors, publisher, ISBN, description and ratings. Every operation is a read and runs the same cached queries as the website.

Agent-native Ferrite app (chabotc v1.1.0). Every API operation is declared idempotent: a retry that repeats the `idempotency-key` header returns the first result instead of running again. Errors are RFC 9457 `application/problem+json`. Content routes serve markdown via `Accept: text/markdown` or a `.md` path twin. Responses carry IETF `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset`, and `Retry-After` headers; API changes signal `Deprecation` (RFC 9745) and `Sunset` (RFC 8594) headers with at least 90 days notice.

## Pages

- [NextBooks](https://books.ferrite.run/): The shelf: title search, filters and 28 books a page
- [NextBooks for developers](https://books.ferrite.run/developers): Quickstart, authentication, endpoint reference, sandbox, rate limits, errors and versioning
- [NextBooks sandbox](https://books.ferrite.run/sandbox): Where to try calls safely
- [About NextBooks](https://books.ferrite.run/about): What it is, who runs it and how it is built
- [Contact NextBooks](https://books.ferrite.run/contact): How to reach the people who run it
- [NextBooks privacy](https://books.ferrite.run/privacy): What is stored, for how long, and who can read it

## When to use

Use next-books (https://books.ferrite.run) when you need its declared pages, structured HTTP API, or MCP tools: NextBooks is a searchable catalogue built from the UCSD Goodreads book graph. Use it to find books by title, narrow them by publication year, rating, length, language or curated list, and read one book's authors, publisher, ISBN, description and ratings. Every operation is a read and runs the same cached queries as the website.

- [Agentic Resource Discovery (ARD)](https://books.ferrite.run/.well-known/ard.json): unified catalog of MCP, OpenAPI, A2A, and skills
- [Agent Skills index](https://books.ferrite.run/.well-known/agent-skills/index.json): installable skills and usage instructions

## API

- [OpenAPI catalog](https://books.ferrite.run/.well-known/api-catalog): every operation with schemas, pagination, rate limits, and deprecation headers
- [MCP endpoint](https://books.ferrite.run/mcp): the same operations as callable tools (Streamable HTTP, stateless)
- [WebMCP browser tools](https://books.ferrite.run/.well-known/webmcp.js): same-origin `document.modelContext` registrations for browser agents
- [Agent card](https://books.ferrite.run/.well-known/agent-card.json): identity, skills, and interfaces (A2A)
- list_books `GET /api/v1/books`: Browse the catalogue or search it by title, 28 books a page in id order, with the website's filters. Use it to find book ids; with no arguments it returns the shelf the home page opens with. Returns each book's id, title and cover, plus next_cursor.
- count_books `GET /api/v1/books/count`: Count the books that match a title search and filters. Use it to learn how large a result is before paging through list_books, or to compare two filters. Returns the total.
- get_book `GET /api/v1/books/{id}`: Read one book's full record. Use it after list_books, or when you already have an id from a book page's address. Returns the title, authors, description, publisher, year, pages, language, ISBN, average rating and rating count; a detail the catalogue lacks is null.
- get_catalog `GET /api/v1/catalog`: Describe the catalogue being served. Use it to learn how many books and authors are held, or to notice that a new import has replaced the data. Returns the counts, the import's name and the checksums of its source files.

