Last updated
Changeloggutenberg.org API
HealthyRead-onlyStructured data from gutenberg.org. Generated from www.gutenberg.org.
/get_book1 credit per callGet Book
Full catalogue record of one eBook: title, authors/contributors, languages, subjects, bookshelves, summary, release date, download count, rights and every downloadable file.
Authorization: Bearer <key> on every request.Parameters
Project Gutenberg eBook number (as in https://www.gutenberg.org/ebooks/1342)
Response fields
idurltitlealternative_titlesagents
idnamerolebirth_yeardeath_yearaliaseswebpagesissuedlanguagestypesubjectsloccbookshelvessummaryreading_easecreditsdescriptionsdownloads_last_30_daysrightsfiles
urlformatssize_bytesmodifiedfetched_atagecurl "https://api.maviapi.com/v1/sites/gutenberg/get_book?book_id=1342" \-H "Authorization: Bearer $MAVI_KEY"
{
"id": 0,
"url": "string",
"title": "string",
"alternative_titles": [
null
],
"agents": [
{
"id": 0,
"name": "string",
"role": "string",
"birth_year": 0,
"death_year": 0,
"aliases": [
null
],
"webpages": [
"string"
]
}
],
"issued": "string",
"languages": [
"string"
],
"type": "string",
"subjects": [
"string"
],
"locc": [
"string"
],
"bookshelves": [
"string"
],
"summary": "string",
"reading_ease": "string",
"credits": "string",
"descriptions": [
"string"
],
"downloads_last_30_days": 0,
"rights": "string",
"files": [
{
"url": "string",
"formats": [
"string"
],
"size_bytes": 0,
"modified": "string"
}
],
"fetched_at": "string",
"age": 0
}Get all the data, no code
Collect every page of GET /get_book into a dataset, for one request or for a whole list of them, then download it as CSV or JSON. A page costs the same as one call of the endpoint; the download is free.
Use gutenberg.org API from Claude, ChatGPT and your coding tools
Add this URL as a custom connector and sign in to maviapi. Nothing to install.
https://mcp.maviapi.com/mcpOr run it locally, with each endpoint of gutenberg.org API as its own tool:
claude mcp add maviapi -e MAVIAPI_TOOLS=gutenberg -- npx -y '@maviapi/mcp'Import gutenberg.org API into Postman and other tools
How to importPaste a link into Postman, Insomnia, an agent framework or a no-code tool to get every endpoint with its parameters and response fields. The link always serves the current endpoints, so importing it again picks up new ones.
- OpenAPI 3.1
https://api.maviapi.com/v1/apis/gutenberg/openapi.json - Postman
https://api.maviapi.com/v1/apis/gutenberg/postman.json
The Postman collection sends the shared demo key until you put your own key in its maviapi_key variable.
Build with the gutenberg.org API
Choose a starting endpoint
- Get Book
GET /get_bookFull catalogue record of one eBook: title, authors/contributors, languages, subjects, bookshelves, summary, release date, download count, rights and every downloadable file.
Parameters and response fields for GET /get_book
Request parameters Name Type / location Required Description book_id integer / query No Project Gutenberg eBook number (as in https://www.gutenberg.org/ebooks/1342) Response fields Field Type Description id integer url string title string alternative_titles string[] agents object[] agents[].id integer agents[].name string agents[].role string agents[].birth_year integer agents[].death_year integer agents[].aliases string[] agents[].webpages string[] issued string languages string[] type string subjects string[] locc string[] bookshelves string[] summary string reading_ease string credits string descriptions string[] downloads_last_30_days integer rights string files object[] files[].url string files[].formats string[] files[].size_bytes integer files[].modified string fetched_at string age integer - Recent Books
GET /recent_bookseBooks posted or updated on Project Gutenberg today (the site's nightly "Recently Posted or Updated EBooks" feed): id, title line, language and link.
- Search Books
GET /search_booksPages of eBooks from the full Project Gutenberg catalogue matching the filters, with total count.
Parameters and response fields for GET /search_books
Request parameters Name Type / location Required Description query string / query No words matched anywhere in title, authors, subjects and bookshelves (like the site's search box) author string / query No words that must appear in an author name, e.g. "austen jane" title string / query No words that must appear in the title subject string / query No words that must appear in one subject heading, e.g. "science fiction" bookshelf string / query No words that must appear in one bookshelf name, e.g. "Category: Romance" or "harvard classics" language string / query No ISO 639 language code, e.g. "en", "fr", "de" (empty = any) type string / query No "Text", "Sound", "Image", "Dataset", "StillImage", "MovingImage", "Collection" (empty = any) sort string / query No one of release_date (newest first), release_date_asc, id, id_desc, title page integer / query No 1-based page number per_page integer / query No results per page, 1-100 Response fields Field Type Description total integer page integer per_page integer results object[] results[].id integer results[].title string results[].authors string[] results[].type string results[].issued string results[].languages string[] results[].subjects string[] results[].locc string[] results[].bookshelves string[] results[].url string pagination object pagination.count integer pagination.has_more boolean pagination.next_cursor string fetched_at string age integer - List Bookshelves
GET /list_bookshelvesAll bookshelves (the site's curated categories) with how many eBooks each holds, largest first.
Parameters and response fields for GET /list_bookshelves
Request parameters Name Type / location Required Description query string / query No optional words that must appear in the bookshelf name, e.g. "category" - Get Book Text
GET /get_book_textA slice of the plain-text (UTF-8) edition of one eBook, with its total length so you can page through it.
Parameters and response fields for GET /get_book_text
Request parameters Name Type / location Required Description book_id integer / query No Project Gutenberg eBook number offset integer / query No character position to start from (0 = beginning, which includes the PG header) length integer / query No number of characters to return, 1-200000 Response fields Field Type Description id integer total_length integer offset integer body_starts_at integer body_ends_at integer text string fetched_at string age integer
Export gutenberg.org data to CSV
Each list below downloads as a CSV file with one row per record. Collect it into a dataset with "Get all the data, no code" under the console above. The dataset reads the list page by page, and you download it as CSV, JSON or JSONL.
| List | CSV columns |
|---|---|
Search BooksGET /search_books | id, title, authors, type, issued, languages, subjects, locc, bookshelves, url |
A nested value (a list or an object) is written as JSON in one cell. How datasets and exports work
gutenberg.org API questions
What you get, what it costs and how to call it.
Is there an official gutenberg.org API?
This gutenberg.org API is not official. It is an independent, hosted API from maviapi for the public data on gutenberg.org, and it is not made, endorsed or supported by gutenberg.org. Whether gutenberg.org offers a developer API of its own is a question for gutenberg.org. This one is ready to call with a maviapi key, and every endpoint and field it returns is documented on this page.
What data can I get from the gutenberg.org API?
The gutenberg.org API has 5 endpoints. Each returns JSON with the parameters and fields documented above:
- GET
/get_book: Full catalogue record of one eBook: title, authors/contributors, languages, subjects, bookshelves, summary, release date, download count, rights and every… - GET
/recent_books: eBooks posted or updated on Project Gutenberg today (the site's nightly "Recently Posted or Updated EBooks" feed): id, title line, language and link. - GET
/search_books: Pages of eBooks from the full Project Gutenberg catalogue matching the filters, with total count. - GET
/list_bookshelves: All bookshelves (the site's curated categories) with how many eBooks each holds, largest first. - GET
/get_book_text: A slice of the plain-text (UTF-8) edition of one eBook, with its total length so you can page through it.
How much does the gutenberg.org API cost?
Calls are paid in credits from your maviapi plan, and only successful calls are charged. Every endpoint of this API costs 1 credit per call. On the Basic plan ($19 a month for 25,000 credits), 1,000 calls cost about $0.76. Failed calls are free. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the gutenberg.org API?
Send an HTTPS request to the endpoint with your API key in the Authorization header. For example, GET /get_book:
curl 'https://api.maviapi.com/v1/sites/gutenberg/get_book' \
-H "Authorization: Bearer $MAVI_KEY"Create a key on your API keys page, or try any endpoint first in the console above with the free test key.
What are the ways to get gutenberg.org data as JSON?
Each way to get gutenberg.org data as JSON fits a different need:
- Your own scraper: Full control and no vendor, but the parsing, the blocked requests and the repairs after every change on gutenberg.org are yours. Better for a one-off pull from a page that rarely changes.
- Apify: A marketplace of Actors you run, where input, output and price are set by each Actor. Better when an Actor already returns what you need, or you want to host your own code. See maviapi vs Apify.
- RapidAPI: A hub of APIs added by many providers, called with one RapidAPI key and priced per API. Better when you already use the hub and one of its APIs covers what you need. Source: RapidAPI docs.
- maviapi: The gutenberg.org API on this page: 5 documented endpoints, a published response schema and one key for the whole catalog. Better when this data is part of your product and you do not want to maintain a scraper.
What happens when gutenberg.org changes its layout?
Your code does not change. maviapi keeps the gutenberg.org API working when gutenberg.org changes its pages, so you keep calling the same endpoints and get JSON in the shape documented here. See its current health on the status page and what changed in its changelog.
Will an update break my gutenberg.org API integration?
No. An endpoint you use never changes shape: new fields, optional parameters and endpoints are added beside it, and a change that would break a call ships as a new endpoint. Ignore response fields you do not know, and follow the changelog for what is new.
Related APIs
- Tripadvisor API
Trip-planning data from Tripadvisor: geo search plus attractions, restaurants and hotels by location (geo_id), with…
- Eventbrite API
Events listed on Eventbrite for a city and date range: dates, venue with address and coordinates, image and summary…
- Songkick Concerts API
Upcoming concerts and music festivals in any city from Songkick, for a date window, with venues, performers, prices…