# Biblio — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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.

> Access data from biblio.com.

**Category:** Marketplaces | **Website:** [www.biblio.com/](https://www.biblio.com/) | **Docs:** [parse.bot/marketplace/1de752dc-c7ea-418d-8ce2-a0902c22cdbe/biblio-com-api](https://parse.bot/marketplace/1de752dc-c7ea-418d-8ce2-a0902c22cdbe/biblio-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/biblio/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get book details

Retrieve complete public details for a specific book listing by its numeric ID (obtained from search_books results). Returns bibliographic information, edition details, condition, price, shipping, seller info, and classification data.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `book_id` | string | Yes | Numeric book listing ID from search_books results (e.g. 1774141736). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/biblio/get-book-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"book_id":"<string>"}'
```

### Search books

Search for used, rare, and out-of-print books across independent booksellers. Supports filtering by author, title, keywords, ISBN, publisher, binding, condition, publication year range, price range, and special attributes (first edition, signed, dust jacket). Results are auto-iterated; each page returns up to the configured results_per_page items. At least one of author, title, keywords, isbn, or publisher is required.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `author` | string | No | Author name to search for. |
| `binding` | string | No | Filter by book binding type. |
| `condition` | string | No | Minimum condition filter. |
| `dust_jacket` | boolean | No | When true, returns only copies with dust jacket. |
| `first_edition` | boolean | No | When true, returns only first editions. |
| `isbn` | string | No | ISBN (10 or 13 digit) to search for. |
| `keywords` | string | No | Keywords to search for in book listings. |
| `max_price` | string | No | Maximum price in USD (numeric, e.g. 500). |
| `max_year` | string | No | Maximum publication year (4-digit year, e.g. 2023). |
| `min_price` | string | No | Minimum price in USD (numeric, e.g. 10). |
| `min_year` | string | No | Minimum publication year (4-digit year, e.g. 1920). |
| `page` | integer | No | Page number (1-based). |
| `publisher` | string | No | Publisher name to filter results. |
| `results_per_page` | integer | No | Number of results per page. Accepted values: 20, 30, 50, 100, 200. |
| `signed` | boolean | No | When true, returns only signed copies. |
| `sort` | string | No | Sort order for results. |
| `title` | string | No | Book title to search for. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/biblio/search-books \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"author":"<string>","binding":"<string>","condition":"<string>","dust_jacket":"<boolean>","first_edition":"<boolean>","isbn":"<string>","keywords":"<string>","max_price":"<string>","max_year":"<string>","min_price":"<string>","min_year":"<string>","page":"<integer>","publisher":"<string>","results_per_page":"<integer>","signed":"<boolean>","sort":"<string>","title":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.