# BookDelivery — 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 for books on BookDelivery's US store and instantly get pricing, availability, condition details, and shipping information—whether you're looking up a specific ISBN or browsing by title. Find the best deals on books with real-time inventory and fast-shipping options all in one place.

**Category:** E-commerce | **Website:** [www.bookdelivery.com/us-en/book-hooked/9780008753832/p/64730477](https://www.bookdelivery.com/us-en/book-hooked/9780008753832/p/64730477) | **Docs:** [parse.bot/marketplace/bf4bde9b-367e-4bb2-a4b3-d9fde8b2186a/bookdelivery-com-api](https://parse.bot/marketplace/bf4bde9b-367e-4bb2-a4b3-d9fde8b2186a/bookdelivery-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-bookdelivery-com-api-bf4bde9b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_book_details

Get detailed information about a book from its product page URL on the international storefront. Returns title, author, publisher, ISBN, price, currency, condition (New/Used), stock availability, and whether the book qualifies for fast shipping (in local warehouse).

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | Product page URL. Accepts full URL (https://www.bookdelivery.com/int-en/book-{slug}/{isbn}/p/{product_id}) or relative path (/int-en/book-{slug}/{isbn}/p/{product_id}). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bookdelivery-com-api-bf4bde9b/get_book_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### search_by_isbn

Search for books by ISBN-13 on the international storefront. Returns matching book listings with title, author, ISBN, price, condition, stock status, and product page URL. When a single match is found, the site redirects to the product page and details are extracted from there.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `isbn` | string | Yes | 13-digit ISBN-13 number (e.g. 9786287638358). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bookdelivery-com-api-bf4bde9b/search_by_isbn \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"isbn":"<string>"}'
```
