# Open Library API reference

> Open Library is an open catalogue of books, authors and editions. Its API is plain URLs on https://openlibrary.org: add .json to a search or item URL to get JSON. An investigator can use it to look up an author's works or a book by title. No key is needed. The docs ask applications to send a…

Source: https://osinttools.io/apis/open-library/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/open-library/

- Base URL: https://openlibrary.org
- Authentication: No key needed.
- Free tier: yes
- Rate limits: 1 request per second by default; 3 per second when a User-Agent with app name and contact details is sent
- Vendor docs: https://openlibrary.org/developers/api

## Overview

Open Library is an open catalogue of books, authors and editions. Its API is plain URLs on `https://openlibrary.org`: add `.json` to a search or item URL to get JSON. An investigator can use it to look up an author's works or a book by title.

No key is needed. The docs ask applications to send a `User-Agent` with the app name and a contact email or phone number: unidentified clients get 1 request per second, identified ones 3 per second. Cache responses, do not scrape HTML, and use `search.json` rather than many single lookups. Monthly data dumps cover bulk use.

Only the search endpoints are described here. The docs also list work, edition, ISBN, subject, covers, lists and recent changes endpoints, and an interactive OpenAPI page at https://openlibrary.org/docs. The search docs say the result schema is not guaranteed to be stable.

## Search

### Search works by free text or by field such as title and author.

`GET /search.json`

- Takes: Name
- Footprint: passive (the target is not contacted)

Results are works by default. Add editions to fields to include matching editions. Paginate with offset and limit, or page and limit.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | no | Solr query string Example: the lord of the rings |
| `title` | query | string | no | Search the title field Example: the lord of the rings |
| `author` | query | string | no | Search the author field Example: tolkien |
| `fields` | query | string | no | Fields to return; * returns everything (use sparingly); add availability for archive.org availability Example: key,title,author_name |
| `sort` | query | string | no | Sort order; relevance by default Example: new One of: new, old, random, key |
| `lang` | query | string | no | Two-letter ISO 639-1 code that boosts matching editions Example: en |
| `page` | query | integer | no | Page number, starting at 1 Example: 1 |
| `limit` | query | integer | no | Results per page Example: 10 |

Response fields:

- `start` (integer): Offset of the first result
- `docs[].key` (string): Work key
- `docs[].title` (string): Title
- `docs[].author_name[]` (string): Author names
- `docs[].author_key[]` (string): Author keys
- `docs[].first_publish_year` (integer): First publication year
- `docs[].edition_count` (integer): Number of editions
- `docs[].has_fulltext` (boolean): Whether full text is available
- `docs[].cover_i` (integer): Cover ID
- `docs[].ia[]` (string): archive.org identifiers
- `docs[].public_scan_b` (boolean): Whether a public scan exists

```bash
curl 'https://openlibrary.org/search.json'
```

Example response (200):

```json
{
  "start": 0,
  "docs": [
    {
      "key": "/works/OL1W",
      "title": "Example Book",
      "author_name": [
        "Example Author"
      ],
      "author_key": [
        "OL1A"
      ],
      "first_publish_year": 1999,
      "edition_count": 3,
      "has_fulltext": true,
      "cover_i": 1234567,
      "ia": [
        "examplebook00exam"
      ],
      "public_scan_b": false
    }
  ]
}
```

### Search authors by name.

`GET /search/authors.json`

- Takes: Name
- Footprint: passive (the target is not contacted)

Returns author records with birth date, top work and subjects. Single authors are read by appending .json to the author key.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | query | string | yes | Author name query Example: example author |

Response fields:

- `numFound` (integer): Number of matches
- `start` (integer): Offset of the first result
- `numFoundExact` (boolean): Whether the count is exact
- `docs[].key` (string): Author key
- `docs[].name` (string): Author name
- `docs[].alternate_names[]` (string): Other names
- `docs[].birth_date` (string): Birth date
- `docs[].top_work` (string): Best-known work
- `docs[].work_count` (integer): Number of works
- `docs[].top_subjects[]` (string): Main subjects

```bash
curl 'https://openlibrary.org/search/authors.json?q=example%20author'
```

Example response (200):

```json
{
  "numFound": 1,
  "start": 0,
  "numFoundExact": true,
  "docs": [
    {
      "key": "OL1A",
      "type": "author",
      "name": "Example Author",
      "alternate_names": [
        "E. Author"
      ],
      "birth_date": "1 January 1900",
      "top_work": "Example Book",
      "work_count": 12,
      "top_subjects": [
        "Fiction"
      ]
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
