# Books work and editions API

Get Open Library Work & Editions 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 open Library work identifier, work title, work author identities, work subjects, and source-reported edition count for reading catalogue, and record matching.

Documentation: https://openany.si/books/books-work-and-editions-api/d5d2948b-f6f8-43a6-8b8b-ce17c80887fd/
API ID: d5d2948b-f6f8-43a6-8b8b-ce17c80887fd
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/books/v1/work
Page update time: 2026-12-03T02:44:39.474Z
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.
Contract update time: 2026-12-03T02:44:38.546Z. 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": []
  }
}
```

## Usage and limits
## Open Library Work & Editions API

id is the work identifier returned by search, distinct from an edition ID. editions\_limit defaults to 20 and is capped at 100. edition\_count can exceed the included list, so treat editions as a selected portion rather than a complete catalogue when the limit is reached.

## What You Can Build

- **Reading catalogue**: Retain the returned source IDs and bibliographic links when adding entries to a reading catalogue.
- **Record matching**: Use resource identity and related author or edition records to match catalogue entries.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | Open Library work identifier |
| `title` | Work title |
| `authors` | Work author identities |
| `subjects` | Work subjects |
| `edition_count` | Source-reported edition count |
| `editions[].id` | Included edition identifier |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Books work and editions 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": "Open Library work id (from search)."
        },
        "editions_limit": {
          "type": "integer",
          "description": "Editions to include (default 20, max 100)."
        },
        "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": {
    "attribution": {
      "type": "string"
    },
    "authors": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "covers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "credits_used": {
      "type": "integer"
    },
    "description": {
      "type": "string"
    },
    "edition_count": {
      "type": "integer"
    },
    "editions": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "by_statement": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "classifications": {
                "type": "object",
                "properties": {}
              },
              "contributions": {
                "type": "array",
                "items": {}
              },
              "contributors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string"
                    },
                    "role": {
                      "type": "string"
                    }
                  }
                }
              },
              "covers": {
                "type": "array",
                "items": {}
              },
              "description": {
                "type": "null"
              },
              "dewey": {
                "type": "array",
                "items": {}
              },
              "dimensions": {
                "type": "null"
              },
              "edition_name": {
                "type": "null"
              },
              "first_sentence": {
                "type": "null"
              },
              "full_title": {
                "type": "string"
              },
              "id": {
                "type": "string"
              },
              "identifiers": {
                "type": "object",
                "properties": {}
              },
              "internet_archive": {
                "type": "null"
              },
              "isbn_10": {
                "type": "array",
                "items": {}
              },
              "isbn_13": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "lc_classifications": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "lccn": {
                "type": "array",
                "items": {}
              },
              "notes": {
                "type": "null"
              },
              "ocaid": {
                "type": "null"
              },
              "oclc": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "pages": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "pagination": {
                "type": "string"
              },
              "physical_format": {
                "type": "null"
              },
              "publish_date": {
                "type": "string"
              },
              "publish_places": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "publishers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "series": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "subjects": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "subtitle": {
                "type": "null"
              },
              "table_of_contents": {
                "type": "array",
                "items": {}
              },
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "weight": {
                "type": "null"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "excerpt_count": {
      "type": "integer"
    },
    "first_publish_date": {
      "type": "null"
    },
    "id": {
      "type": "string"
    },
    "links": {
      "type": "array",
      "items": {}
    },
    "rating": {
      "type": "object",
      "properties": {
        "average": {
          "type": "number"
        },
        "count": {
          "type": "integer"
        },
        "counts": {
          "type": "object",
          "properties": {
            "1": {
              "type": "integer"
            },
            "2": {
              "type": "integer"
            },
            "3": {
              "type": "integer"
            },
            "4": {
              "type": "integer"
            },
            "5": {
              "type": "integer"
            }
          }
        }
      }
    },
    "subject_people": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "subject_places": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "subject_times": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "subjects": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "subtitle": {
      "type": "null"
    },
    "title": {
      "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/books/v1/work?id=OL45804W&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
{
  "attribution": "Source: Open Library (openlibrary.org), Internet Archive",
  "authors": [
    {
      "id": "OL34184A",
      "name": "Roald Dahl",
      "url": "https://openlibrary.org/authors/OL34184A"
    }
  ],
  "cached": false,
  "covers": [
    "https://covers.openlibrary.org/b/id/6498519-L.jpg",
    "https://covers.openlibrary.org/b/id/8904777-L.jpg",
    "… 33 more"
  ],
  "credits_used": 1,
  "description": "The main character of Fantastic Mr. Fox is an extremely clever anthropomorphized fox named Mr. Fox. He lives with his wife and four little f…",
  "edition_count": 161,
  "editions": [
    {
      "by_statement": "Roʾald Dal ; me-Anglit Binah Ofeḳ ; iyurim Ḳṿenṭin Bleiḳ",
      "classifications": {},
      "contributions": [],
      "contributors": [
        {
          "name": "Binah Ofeḳ",
          "role": "Translator"
        }
      ],
      "covers": [],
      "description": null,
      "dewey": [],
      "dimensions": null,
      "edition_name": null,
      "first_sentence": null,
      "full_title": "Mar shuʻal ha-mehulal",
      "id": "OL57649219M",
      "identifiers": {},
      "internet_archive": null,
      "isbn_10": [],
      "isbn_13": [],
      "languages": [
        "heb"
      ],
      "lc_classifications": [],
      "lccn": [],
      "notes": null,
      "ocaid": null,
      "oclc": [
        "62887933"
      ],
      "pages": 103,
      "pagination": "103 p.",
      "physical_format": null,
      "publish_date": "2005",
      "publish_places": [
        "Or Yehudah"
      ],
      "publishers": [
        "Zemorah-Bitan"
      ],
      "series": [
        "Marganit"
      ],
      "subjects": [],
      "subtitle": null,
      "table_of_contents": [],
      "title": "Mar shuʻal ha-mehulal",
      "url": "https://openlibrary.org/books/OL57649219M",
      "weight": null
    },
    {
      "by_statement": null,
      "classifications": {},
      "contributions": [],
      "contributors": [
        {
          "name": "Quentin Blake",
          "role": "Illustrator"
        }
      ],
      "covers": [],
      "description": null,
      "dewey": [],
      "dimensions": null,
      "edition_name": null,
      "first_sentence": null,
      "full_title": "Fantastic Mr Fox",
      "id": "OL51048152M",
      "identifiers": {},
      "internet_archive": null,
      "isbn_10": [],
      "isbn_13": [
        "9780241677377"
      ],
      "languages": [
        "eng"
      ],
      "lc_classifications": [
        "PZ7.D1515Fa 2024"
      ],
      "lccn": [],
      "notes": null,
      "ocaid": null,
      "oclc": [],
      "pages": null,
      "pagination": "96",
      "physical_format": null,
      "publish_date": "2024",
      "publish_places": [],
      "publishers": [
        "Penguin Books, Limited"
      ],
      "series": [],
      "subjects": [
        "Children's fiction"
      ],
      "subtitle": null,
      "table_of_contents": [],
      "title": "Fantastic Mr Fox",
      "url": "https://openlibrary.org/books/OL51048152M",
      "weight": null
    },
    "… 18 more"
  ],
  "excerpt_count": 0,
  "first_publish_date": null,
  "id": "OL45804W",
  "links": [],
  "rating": {
    "average": 3.950413223140496,
    "count": 121,
    "counts": {
      "1": 11,
      "2": 6,
      "3": 18,
      "4": 29,
      "5": 57
    }
  },
  "subject_people": [
    "Bean",
    "Boggis",
    "… 2 more"
  ],
  "subject_places": [
    "English countryside"
  ],
  "subject_times": [
    "20th Century"
  ],
  "subjects": [
    "Animals",
    "Hunger",
    "… 29 more"
  ],
  "subtitle": null,
  "title": "Fantastic Mr Fox",
  "url": "https://openlibrary.org/works/OL45804W"
}
```

## 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.

## Common questions
### Can I pass an edition ID?
Use a work ID from search; edition IDs belong in Edition.

### How many editions are included?
editions_limit defaults to 20 and allows up to 100.

### Is the included editions array always complete?
No. Compare its length with edition_count and the requested limit.

### How do I inspect one edition?
Use an editions[].id value with the Edition endpoint.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/books/books-work-and-editions-api/d5d2948b-f6f8-43a6-8b8b-ce17c80887fd/

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