# Books catalogue search API

Search Open Library via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, and retrieve structured data including work identifier, work title, reported edition count, source digital-access category, and next catalogue page for reading catalogue, and record matching, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/books/books-catalogue-search-api/e4445437-fe7e-469e-8654-0b66a1d06791/
API ID: e4445437-fe7e-469e-8654-0b66a1d06791
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/books/v1/search
Page update time: 2026-12-03T02:44:39.436Z
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.341Z. 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 Search API

q, title, author and isbn support different catalogue queries. language uses a three-letter MARC code such as eng; person, place and time filter subjects. has\_fulltext includes readable or borrowable digital copies, while ebook\_access distinguishes public, borrowable and printdisabled. page defaults to 1 and limit to 20, maximum 100.

## 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 |
| --- | --- |
| `items[].work_id` | Work identifier |
| `items[].title` | Work title |
| `items[].edition_count` | Reported edition count |
| `items[].ebook_access` | Source digital-access category |
| `items[].has_fulltext` | Readable or borrowable digital-copy flag |
| `next_page` | Next catalogue page |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Books catalogue search 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": {
        "q": {
          "type": "string",
          "description": "Keywords."
        },
        "title": {
          "type": "string",
          "description": "Title."
        },
        "author": {
          "type": "string",
          "description": "Author."
        },
        "subject": {
          "type": "string",
          "description": "Subject."
        },
        "publisher": {
          "type": "string",
          "description": "Publisher."
        },
        "language": {
          "type": "string",
          "description": "Language (3-letter MARC code: eng, fre, spa, ger...)."
        },
        "from_year": {
          "type": "integer",
          "description": "First published in or after."
        },
        "to_year": {
          "type": "integer",
          "description": "First published in or before."
        },
        "sort": {
          "type": "string",
          "description": "Sort order.",
          "enum": [
            "relevance",
            "new",
            "old",
            "rating",
            "editions",
            "title",
            "random"
          ]
        },
        "limit": {
          "type": "integer",
          "description": "Per page (default 20, max 100)."
        },
        "page": {
          "type": "integer",
          "description": "Page (default 1)."
        },
        "isbn": {
          "type": "string",
          "description": "ISBN-10 or ISBN-13."
        },
        "person": {
          "type": "string",
          "description": "Person the book is about or features, e.g. sherlock holmes."
        },
        "place": {
          "type": "string",
          "description": "Place the book is about or set in, e.g. london."
        },
        "time": {
          "type": "string",
          "description": "Time period the book is about, e.g. 19th century."
        },
        "has_fulltext": {
          "type": "boolean",
          "description": "true: books with a readable or borrowable digital copy; false: without."
        },
        "ebook_access": {
          "type": "string",
          "description": "Minimum e-book access: public (free to read), borrowable (public or borrowable) or printdisabled (any digital copy).",
          "enum": [
            "public",
            "borrowable",
            "printdisabled"
          ]
        },
        "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."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "applied_filters": {
      "type": "object",
      "properties": {
        "author": {
          "type": "null"
        },
        "from_year": {
          "type": "null"
        },
        "language": {
          "type": "null"
        },
        "publisher": {
          "type": "null"
        },
        "subject": {
          "type": "null"
        },
        "title": {
          "type": "null"
        },
        "to_year": {
          "type": "null"
        }
      }
    },
    "attribution": {
      "type": "string"
    },
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "already_read": {
                "type": "integer"
              },
              "authors": {
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      }
                    },
                    {
                      "type": "string"
                    }
                  ]
                }
              },
              "cover": {
                "type": "string"
              },
              "ebook_access": {
                "type": "string"
              },
              "edition_count": {
                "type": "integer"
              },
              "first_publish_year": {
                "type": "integer"
              },
              "goodreads_ids": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "has_fulltext": {
                "type": "boolean"
              },
              "isbn": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "languages": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "pages_median": {
                "type": "integer"
              },
              "publishers": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "rating": {
                "type": "number"
              },
              "ratings_count": {
                "type": "integer"
              },
              "subjects": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "subtitle": {
                "type": "null"
              },
              "title": {
                "type": "string"
              },
              "url": {
                "type": "string"
              },
              "want_to_read": {
                "type": "integer"
              },
              "work_id": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "next_page": {
      "type": "integer"
    },
    "page": {
      "type": "integer"
    },
    "query": {
      "type": "string"
    },
    "sort": {
      "type": "string"
    },
    "total": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/books/v1/search?output=json&q=dune' \
  -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
{
  "applied_filters": {
    "author": null,
    "from_year": null,
    "language": null,
    "publisher": null,
    "subject": null,
    "title": null,
    "to_year": null
  },
  "attribution": "Source: Open Library (openlibrary.org), Internet Archive",
  "cached": false,
  "count": 20,
  "credits_used": 1,
  "items": [
    {
      "already_read": 853,
      "authors": [
        {
          "id": "OL26320A",
          "name": "J.R.R. Tolkien"
        }
      ],
      "cover": "https://covers.openlibrary.org/b/id/14627509-M.jpg",
      "ebook_access": "borrowable",
      "edition_count": 482,
      "first_publish_year": 1937,
      "goodreads_ids": [
        "289901",
        "4506446",
        "… 193 more"
      ],
      "has_fulltext": true,
      "isbn": [
        "3763252088",
        "9782253049418",
        "… 8 more"
      ],
      "languages": [
        "bre",
        "yid",
        "… 30 more"
      ],
      "pages_median": 310,
      "publishers": [
        "Астролябія",
        "Công ty văn hóa & truyền thông Nhã Nam",
        "… 8 more"
      ],
      "rating": 4.2978306,
      "ratings_count": 507,
      "subjects": [
        "Fantasy",
        "Arkenstone",
        "… 13 more"
      ],
      "subtitle": null,
      "title": "The Hobbit",
      "url": "https://openlibrary.org/works/OL27482W",
      "want_to_read": 4080,
      "work_id": "OL27482W"
    },
    {
      "already_read": 40,
      "authors": [
        {
          "id": "OL2453782A",
          "name": "Charles Dixon"
        },
        {
          "id": "OL758306A",
          "name": "Sean Deming"
        },
        "… 1 more"
      ],
      "cover": "https://covers.openlibrary.org/b/id/8406766-M.jpg",
      "ebook_access": "printdisabled",
      "edition_count": 10,
      "first_publish_year": 1990,
      "goodreads_ids": [
        "1490430",
        "1823681",
        "… 5 more"
      ],
      "has_fulltext": true,
      "isbn": [
        "0345445600",
        "0044408129",
        "… 8 more"
      ],
      "languages": [
        "ita",
        "spa",
        "… 1 more"
      ],
      "pages_median": 144,
      "publishers": [
        "Eclipse Books",
        "Del Rey",
        "… 6 more"
      ],
      "rating": 4.2702703,
      "ratings_count": 37,
      "subjects": [
        "Middle Earth (Imaginary place)",
        "Comic books, strips",
        "… 4 more"
      ],
      "subtitle": null,
      "title": "The Hobbit",
      "url": "https://openlibrary.org/works/OL219602W",
      "want_to_read": 106,
      "work_id": "OL219602W"
    },
    "… 18 more"
  ],
  "next_page": 2,
  "page": 1,
  "query": "The Hobbit",
  "sort": "relevance",
  "total": 461
}
```

## 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
### Which language code format is expected?
A three-letter MARC code such as eng, fre, spa or ger.

### Does has_fulltext=true mean anyone can read it freely?
No. It includes readable or borrowable copies; check ebook_access and source conditions.

### What are the ebook_access levels?
public means free to read, borrowable includes public or borrowable copies, and printdisabled includes any digital copy under the documented filter.

### How do I continue results?
Use next_page as page; limit defaults to 20 and allows up to 100.

### 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-catalogue-search-api/e4445437-fe7e-469e-8654-0b66a1d06791/

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