Skip to content

Last updated

Changelog

gutenberg.org API

HealthyRead-only

Structured data from gutenberg.org. Generated from www.gutenberg.org.

Base URL
https://api.maviapi.com/v1/sites/gutenberg
5
Endpoints
13 min ago
Last verified
100%
Uptime / 7d
1745ms
p50 latency
GET/get_book1 credit per call

Get Book

Full catalogue record of one eBook: title, authors/contributors, languages, subjects, bookshelves, summary, release date, download count, rights and every downloadable file.

Bearer auth. Pass your key as Authorization: Bearer <key> on every request.
integerOptionalin query

Project Gutenberg eBook number (as in https://www.gutenberg.org/ebooks/1342)

idinteger
urlstring
titlestring
alternative_titlesstring[]
agentsobject[]7 fields
idinteger
namestring
rolestring
birth_yearinteger
death_yearinteger
aliasesstring[]
webpagesstring[]
issuedstring
languagesstring[]
typestring
subjectsstring[]
loccstring[]
bookshelvesstring[]
summarystring
reading_easestring
creditsstring
descriptionsstring[]
downloads_last_30_daysinteger
rightsstring
filesobject[]4 fields
urlstring
formatsstring[]
size_bytesinteger
modifiedstring
fetched_atstring
ageinteger
Try itLive
GET
https://api.maviapi.com/v1/sites/gutenberg/get_book?book_id=1342
Request
curl "https://api.maviapi.com/v1/sites/gutenberg/get_book?book_id=1342" \
-H "Authorization: Bearer $MAVI_KEY"
Example848 B
{
  "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.

How to connect
https://mcp.maviapi.com/mcp

Or 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 import

Paste 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_book

    Full 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
    NameType / locationRequiredDescription
    book_idinteger / queryNoProject Gutenberg eBook number (as in https://www.gutenberg.org/ebooks/1342)
    Response fields
    FieldTypeDescription
    idinteger
    urlstring
    titlestring
    alternative_titlesstring[]
    agentsobject[]
    agents[].idinteger
    agents[].namestring
    agents[].rolestring
    agents[].birth_yearinteger
    agents[].death_yearinteger
    agents[].aliasesstring[]
    agents[].webpagesstring[]
    issuedstring
    languagesstring[]
    typestring
    subjectsstring[]
    loccstring[]
    bookshelvesstring[]
    summarystring
    reading_easestring
    creditsstring
    descriptionsstring[]
    downloads_last_30_daysinteger
    rightsstring
    filesobject[]
    files[].urlstring
    files[].formatsstring[]
    files[].size_bytesinteger
    files[].modifiedstring
    fetched_atstring
    ageinteger
  • Recent Books 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.

  • Search Books GET /search_books

    Pages of eBooks from the full Project Gutenberg catalogue matching the filters, with total count.

    Parameters and response fields for GET /search_books
    Request parameters
    NameType / locationRequiredDescription
    querystring / queryNowords matched anywhere in title, authors, subjects and bookshelves (like the site's search box)
    authorstring / queryNowords that must appear in an author name, e.g. "austen jane"
    titlestring / queryNowords that must appear in the title
    subjectstring / queryNowords that must appear in one subject heading, e.g. "science fiction"
    bookshelfstring / queryNowords that must appear in one bookshelf name, e.g. "Category: Romance" or "harvard classics"
    languagestring / queryNoISO 639 language code, e.g. "en", "fr", "de" (empty = any)
    typestring / queryNo"Text", "Sound", "Image", "Dataset", "StillImage", "MovingImage", "Collection" (empty = any)
    sortstring / queryNoone of release_date (newest first), release_date_asc, id, id_desc, title
    pageinteger / queryNo1-based page number
    per_pageinteger / queryNoresults per page, 1-100
    Response fields
    FieldTypeDescription
    totalinteger
    pageinteger
    per_pageinteger
    resultsobject[]
    results[].idinteger
    results[].titlestring
    results[].authorsstring[]
    results[].typestring
    results[].issuedstring
    results[].languagesstring[]
    results[].subjectsstring[]
    results[].loccstring[]
    results[].bookshelvesstring[]
    results[].urlstring
    paginationobject
    pagination.countinteger
    pagination.has_moreboolean
    pagination.next_cursorstring
    fetched_atstring
    ageinteger
  • List Bookshelves GET /list_bookshelves

    All bookshelves (the site's curated categories) with how many eBooks each holds, largest first.

    Parameters and response fields for GET /list_bookshelves
    Request parameters
    NameType / locationRequiredDescription
    querystring / queryNooptional words that must appear in the bookshelf name, e.g. "category"
  • Get Book Text 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.

    Parameters and response fields for GET /get_book_text
    Request parameters
    NameType / locationRequiredDescription
    book_idinteger / queryNoProject Gutenberg eBook number
    offsetinteger / queryNocharacter position to start from (0 = beginning, which includes the PG header)
    lengthinteger / queryNonumber of characters to return, 1-200000
    Response fields
    FieldTypeDescription
    idinteger
    total_lengthinteger
    offsetinteger
    body_starts_atinteger
    body_ends_atinteger
    textstring
    fetched_atstring
    ageinteger

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.

ListCSV columns
Search BooksGET /search_booksid, 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
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.

  • 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…