# Aozora Bunko Works by Author API

> Works by one author in Aozora Bunko, the Japanese digital library, with title, source edition, text files and dates.

- Page: https://cleanedweb.com/catalog/aozora-gr-jp-works-api/
- Contract (JSON): https://cleanedweb.com/catalog/aozora-gr-jp-works-api/contract.json
- Source: aozora.gr.jp (https://www.aozora.gr.jp/)
- Category: News & content
- Countries: Japan
- Languages: Japanese
- Updated: 2026-12-01

## About

Aozora Bunko is a Japanese digital library of works whose copyright has ended or whose rights holders allow free reading. One record is one work by the chosen author.

Each record has the work title and link, the writing style of the edition, the source book with publisher and first edition date, the text and ebook files, and editorial notes. Values are in Japanese.

Choose the author with the author_id input, such as person35.html. With enrich_records on, each work page is read too. max_items limits how many records a run returns.

## Typical uses

- List the works of an author
- Link text files for language study
- Record which printed edition a text follows

A run reads until the source ends or your `max_items`, `timeout_seconds` or budget stops it.

## Key fields

| Field | Type | Sample value |
| --- | --- | --- |
| `title` | string | `ア、秋` |
| `source.title` | string | `太宰治全集3` |
| `parent_source.title` | string | `筑摩全集類聚版太宰治全集` |
| `author.name` | string | `太宰 治` |
| `files.text.name` | string | `236_ruby_19995.zip` |
| `files.ebook.name` | string | `236.ebk` |
| `url` | string | `https://www.aozora.gr.jp/cards/000035/card236.html` |
| `files.xhtml.name` | string | `236_19996.html` |

Sample values come from one saved record, not a live run. Every field with its type, and the schemas, are in https://cleanedweb.com/catalog/aozora-gr-jp-works-api/contract.json

## Inputs

- `author_id` (string, required): Free text: any author id the site serves, written with letters, digits, underscores, hyphens and dots, up to 128 characters. A name the site does not serve is refused. For example: person35.html, person1777.html. Pattern: `^[A-Za-z0-9_][A-Za-z0-9_\.\-]{0,127}$`.

`enrich_records` is on by default and adds the fields that only appear on each record's detail page. Send `false` to read list fields only. See https://cleanedweb.com/docs/run-api/

## Request

`POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_bbf8e901b833bd2d169542c0/endpoints/generated_bbf8e901b833bd2d169542c0_search/run`

```bash
curl -X POST https://api.cleanedweb.com/v1/catalog/public/apis/generated_bbf8e901b833bd2d169542c0/endpoints/generated_bbf8e901b833bd2d169542c0_search/run \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Idempotency-Key: UNIQUE_REQUEST_ID" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "author_id": "person35.html"
  },
  "version": 2,
  "max_items": 25
}'
```

Send an `Idempotency-Key` header with every run and save it before you send. Reuse it only to retry the same request. If the run does not end within `wait_seconds`, read the result with the same API key and key:

`GET https://api.cleanedweb.com/v1/catalog/public/apis/generated_bbf8e901b833bd2d169542c0/endpoints/generated_bbf8e901b833bd2d169542c0_search/result`

## Versions

Current: `2.0`. Pin a major with "version": N in the run body (an integer). Leave it out and the call runs on the latest major. A sunset major runs on the latest major and the response says rerouted. An unknown major answers 404 catalog_version_not_found and lists the available majors.

- v2: current, newest minor `2.0`
- v1: deprecated, newest minor `1.0`, sunsets 2027-01-30

### Changelog

- `2.0` (major) 2026-12-01
  - Records are now grouped: related fields sit under shared keys, so 29 field(s) have new paths (each listed below). Callers pinned to the previous major keep the previous shape until its sunset.
  - Field \`spec_6e614baf\` is now \`title_reading\`.
  - Field \`spec_b5a82cd9\` is now \`author.display_name\`.
  - Field \`spec_a5bac498_spec_97a6591d\` is now \`classification\`.
  - Field \`spec_05b3d047_spec_97a6591d\` is now \`author.role\`.
  - Field \`spec_8176d8cb\` is now \`publication.original_publication\`.
  - Field \`spec_36cdb9f1\` is now \`text_notation\`.
  - Field \`spec_f12fac71\` is now \`author.name\`.
  - Field \`spec_674de29b\` is now \`author.name_reading\`.
  - Field \`spec_645a3e4d\` is now \`author.name_latin\`.
  - Field \`spec_b5e7c634\` is now \`author.birth_date\`.
  - Field \`spec_2b4f7e3e\` is now \`author.death_date\`.
  - Field \`spec_1dd609a1\` is now \`author.biography\`.
  - Field \`spec_4b8bcc3c\` is now \`source.title\`.
  - Field \`spec_e995cd9e\` is now \`source.publisher\`.
  - Field \`spec_a5f2a884\` is now \`source.publication_date\`.
  - Field \`spec_fe23a3a3\` is now \`credits.first\`.
  - Field \`spec_674f84b8\` is now \`credits.second\`.
  - Field \`spec_ab65db5e\` is now \`source.reprint_date\`.
  - Field \`parent_source_text\` is now \`parent_source.title\`.
  - Field \`parent_source_publisher\` is now \`parent_source.publisher\`.
  - Field \`parent_source_first_edition_date\` is now \`parent_source.first_edition_date\`.
  - Field \`text_file_name\` is now \`files.text.name\`.
  - Field \`text_file_size\` is now \`files.text.size\`.
  - Field \`text_file_initial_registration_date\` is now \`files.text.initial_registration_date\`.
  - Field \`text_file_updated_date\` is now \`files.text.updated_date\`.
  - Field \`ebook_file_name\` is now \`files.ebook.name\`.
  - Field \`ebook_file_size\` is now \`files.ebook.size\`.
  - Field \`xhtml_file_name\` is now \`files.xhtml.name\`.
  - Field \`xhtml_file_size\` is now \`files.xhtml.size\`.
- `1.0` (major) 2026-11-29

The same changelog, as data, is in https://cleanedweb.com/catalog/aozora-gr-jp-works-api/contract.json

## Use it from an AI agent

MCP server: https://api.cleanedweb.com/mcp?profile=catalog (Streamable HTTP). Sign in with a CleanedWeb account when the client asks (OAuth), or send an API key with the `read` and `run` scopes as `Authorization: Bearer`. Call `get_api` with `api_id` `generated_bbf8e901b833bd2d169542c0`, then `run_api` with the `run_with` arguments it returns. See https://cleanedweb.com/docs/mcp/

## Run it

Reading the catalog needs no credential. Running needs a CleanedWeb account and an API key with the `run` scope; the first 5,000 records are free, then $1 per 1,000 records. See https://cleanedweb.com/docs/run-catalog-api/

CleanedWeb is not affiliated with Aozora Bunko.
