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

> 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-biblio-com-api-1de752dc/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-biblio-com-api-1de752dc/get_book_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-biblio-com-api-1de752dc/search_books \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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>"}'
```
