# Open Library — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search millions of books by title on Open Library to discover authors, publication years, subjects, and cover images. Find comprehensive book metadata in seconds to research titles, build reading lists, or compare editions.

**Category:** Education | **Website:** [openlibrary.org/](https://openlibrary.org/) | **Docs:** [parse.bot/marketplace/b458bb1a-1803-4163-a558-31c7e704aabf/openlibrary-org-api](https://parse.bot/marketplace/b458bb1a-1803-4163-a558-31c7e704aabf/openlibrary-org-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-openlibrary-org-api-b458bb1a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### search_books

Search books by title. Returns paginated results with each book's title, authors, first publish year, subjects, and cover ID. The cover image URL can be constructed as https://covers.openlibrary.org/b/id/<cover_id>-<size>.jpg where size is S, M, or L.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `limit` | integer | No | Maximum number of results to return per page. |
| `page` | integer | No | Page number for pagination (1-based). |
| `title` | string | Yes | Book title to search for. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-openlibrary-org-api-b458bb1a/search_books \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"limit":"<integer>","page":"<integer>","title":"<string>"}'
```
