# Project Gutenberg book API

Get Project Gutenberg Book data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including gutenberg ebook identifier, ebook title, author identities, ebook language codes, and source rights statement for reading catalogue, and record matching, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/market/apis/project-gutenberg/project-gutenberg-book-api/?offering=ebe81b2e-3630-437c-93c3-ae7e503653b1
API ID: ebe81b2e-3630-437c-93c3-ae7e503653b1
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/gutenberg/v1/book
Page update time: 2026-12-03T02:44:39.508Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:44:38.732Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Project Gutenberg book API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Ebook number, or a gutenberg.org/ebooks link."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      },
      "required": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "alternative_titles": {
      "type": "array",
      "items": {}
    },
    "authors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "aliases": {
            "type": "array",
            "items": {}
          },
          "birth_year": {
            "type": "integer"
          },
          "death_year": {
            "type": "integer"
          },
          "id": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "webpages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    },
    "bookshelves": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "cached": {
      "type": "boolean"
    },
    "contents": {
      "type": "array",
      "items": {}
    },
    "credits": {
      "type": "string"
    },
    "credits_used": {
      "type": "integer"
    },
    "downloads_last_30_days": {
      "type": "integer"
    },
    "files": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "modified": {
                "type": "string"
              },
              "size_bytes": {
                "type": "integer"
              },
              "type": {
                "type": "string"
              },
              "types": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "url": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "id": {
      "type": "integer"
    },
    "isbn": {
      "type": "string"
    },
    "languages": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "last_update": {
      "type": "string"
    },
    "links": {
      "type": "object",
      "properties": {
        "cover": {
          "type": "string"
        },
        "epub": {
          "type": "string"
        },
        "epub3": {
          "type": "string"
        },
        "epub_noimages": {
          "type": "string"
        },
        "html": {
          "type": "string"
        },
        "kindle": {
          "type": "string"
        },
        "rdf": {
          "type": "string"
        },
        "text": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        }
      }
    },
    "loc_classes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "notes": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "original_publication": {
      "type": "null"
    },
    "reading_level": {
      "type": "string"
    },
    "release_date": {
      "type": "string"
    },
    "rights": {
      "type": "string"
    },
    "series": {
      "type": "array",
      "items": {}
    },
    "subjects": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "id": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "scheme": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "summary": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/gutenberg/v1/book?id=1342&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "alternative_titles": [],
  "authors": [
    {
      "aliases": [],
      "birth_year": 1775,
      "death_year": 1817,
      "id": 68,
      "name": "Austen, Jane",
      "role": "author",
      "url": "https://www.gutenberg.org/ebooks/author/68",
      "webpages": [
        "https://en.wikipedia.org/wiki/Jane_Austen"
      ]
    }
  ],
  "bookshelves": [
    "Best Books Ever Listings",
    "Harvard Classics",
    "… 4 more"
  ],
  "cached": false,
  "contents": [],
  "credits": "Chuck Greif and the Online Distributed Proofreading Team at http://www.pgdp.net (This file was produced from images available at The Interne…",
  "credits_used": 1,
  "downloads_last_30_days": 220095,
  "files": [
    {
      "modified": "2026-10-01T09:21:03.148328",
      "size_bytes": 852590,
      "type": "text/html",
      "types": [
        "text/html"
      ],
      "url": "https://www.gutenberg.org/ebooks/1342.html.images"
    },
    {
      "modified": "2026-09-29T18:50:15.403591",
      "size_bytes": 806300,
      "type": "text/html",
      "types": [
        "text/html"
      ],
      "url": "https://www.gutenberg.org/files/1342/1342-h/1342-h.htm"
    },
    "… 12 more"
  ],
  "id": 1342,
  "isbn": "979-8-238-01342-8",
  "languages": [
    "en"
  ],
  "last_update": "2026-09-29",
  "links": {
    "cover": "https://www.gutenberg.org/cache/epub/1342/pg1342.cover.medium.jpg",
    "epub": "https://www.gutenberg.org/ebooks/1342.epub.images",
    "epub3": "https://www.gutenberg.org/ebooks/1342.epub3.images",
    "epub_noimages": "https://www.gutenberg.org/ebooks/1342.epub.noimages",
    "html": "https://www.gutenberg.org/ebooks/1342.html.images",
    "kindle": "https://www.gutenberg.org/ebooks/1342.kf8.images",
    "rdf": "https://www.gutenberg.org/cache/epub/1342/pg1342.rdf",
    "text": "https://www.gutenberg.org/ebooks/1342.txt.utf-8",
    "zip": "https://www.gutenberg.org/cache/epub/1342/pg1342-h.zip"
  },
  "loc_classes": [
    "PR: Language and Literatures: English literature"
  ],
  "notes": [
    "Wikipedia page about this book: https://en.wikipedia.org/wiki/Pride_and_Prejudice",
    "This title is also available as eBook #42671."
  ],
  "original_publication": null,
  "reading_level": "Reading ease score: 69.2 (8th & 9th grade). Neither easy nor difficult to read.",
  "release_date": "1998-06-01",
  "rights": "Public domain in the USA.",
  "series": [],
  "subjects": [
    {
      "id": 1702,
      "name": "England -- Fiction",
      "scheme": "LCSH",
      "url": "https://www.gutenberg.org/ebooks/subject/1702"
    },
    {
      "id": 2481,
      "name": "Young women -- Fiction",
      "scheme": "LCSH",
      "url": "https://www.gutenberg.org/ebooks/subject/2481"
    },
    "… 5 more"
  ],
  "summary": "\"Pride and Prejudice\" by Jane Austen is a novel published in 1813. It follows Elizabeth Bennet, who must learn to see past first impressions…",
  "title": "Pride and Prejudice",
  "type": "Text",
  "url": "https://www.gutenberg.org/ebooks/1342"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/project-gutenberg/project-gutenberg-book-api/?offering=ebe81b2e-3630-437c-93c3-ae7e503653b1

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
