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

> Discover independent bookstores near you, search for books across curated bestseller and Indie Next lists, and explore book recommendations from IndieBound's community. Access detailed book information, find locally-owned bookstores, and browse the latest indie bookstore news and events.

**Category:** E-commerce | **Website:** [indiebound.org/](https://indiebound.org/) | **Docs:** [parse.bot/marketplace/34104d08-ee4f-4c18-b5ef-f095ad2dcc2d/indiebound-org-api](https://parse.bot/marketplace/34104d08-ee4f-4c18-b5ef-f095ad2dcc2d/indiebound-org-api)

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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/indiebound/`
**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

### Find indie bookstores

Search for independent bookstores near a location by submitting a form to IndieBound's store finder. Returns store names, cities, states, distances, coordinates, and info window HTML with addresses and website links.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | Yes | ZIP code, city name, or address to search near (e.g. '10001', 'New York'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiebound/find-indie-bookstores \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"location":"<string>"}'
```

### Get blog posts

Retrieve IndieBound blog posts with titles, links, and image URLs. Returns paginated results starting at page 0.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination, starting at 0. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiebound/get-blog-posts \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>"}'
```

### Get book details

Get price and availability details for a specific book by ISBN. Redirects to Bookshop.org and extracts title, author, pricing, and availability information from the product page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `isbn` | string | Yes | ISBN-13 of the book (e.g. '9780441013593'). |

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

### Get bookstore day info

Retrieve information about Independent Bookstore Day, including the page title and full text content about the annual event celebrating independent bookstores nationwide.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiebound/get-bookstore-day-info \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get indie bestsellers

Retrieve the current weekly Indie Bestseller lists organized by category (Hardcover Fiction, Hardcover Nonfiction, Trade Paperback Fiction). Each category contains ranked books with titles, authors, image URLs, and buy-local links. Returns all categories in a single response.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiebound/get-indie-bestsellers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get indie next list

Retrieve the current monthly Indie Next List recommendations. Returns the featured #1 Great Read with a bookseller quote, plus a list of recommended books with titles, authors, images, and buy-local links.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiebound/get-indie-next-list \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search books

Search for books by keyword, title, author, or ISBN on IndieBound.org. Returns up to 10 results per page with book titles, authors, ISBNs, format/publisher info, and buy-local links. Pagination starts at page 0.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination, starting at 0. |
| `query` | string | Yes | Search keyword, title, author name, or ISBN to search for. |
| `search_by` | string | No | Filter search by a specific field. Accepted values: 'title', 'author', 'isbn'. Omitting searches all fields. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/indiebound/search-books \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","search_by":"<string>"}'
```

## Next steps

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