---
title: Sell books from your website
description: Add a Buy button, read the catalog, or give your AI the instructions to build your author website.
order: 0
published: 2026-10-02
updated: 2026-10-02
---
Sell your book from any website. The Book Market handles checkout, sales tax, delivery and the reader's library; you keep 90%.

## The 1-minute Buy button

Already selling here? Copy your book's buy link and paste it into your site's button. It opens Book Market checkout. Readers don't need an account to buy.

```html
<a href="https://thebookmarket.com/checkout/YOUR-AUTHOR-SLUG/YOUR-BOOK-SLUG">Buy my ebook</a>
```

Replace both uppercase placeholders with your published book's slugs. The catalog API returns this link as `buy_url`. Only show a Buy button when `availability` is `on_sale` and `buy_url` is not null.

[Start with the quickstart](/developers/quickstart). Listed costs $5/month. Setup is free during your 7-day trial; activate a plan before selling. The platform fee is 10%; you keep 90% of the sale price after discounts, before sales tax. Payouts go through Stripe Connect.

## The API

Read public book details and an author's available books without an API key. Use the returned title, price and buy link to build your own book card.

- [Catalog API reference](/developers/api)
- [Plain HTML and JavaScript](/developers/html)
- [Next.js and React](/developers/nextjs)
- [Astro](/developers/astro)
- [WordPress](/developers/wordpress)
- [Squarespace and Wix](/developers/squarespace-wix)
- [Substack](/developers/substack)

## For AI agents

Give your agent this prompt:

> Use The Book Market (thebookmarket.com) to sell my ebook on my website. Read https://thebookmarket.com/llms.txt first, then follow its instructions.

[Read the agent instructions](/developers/for-ai-agents), [get the Agent Skill](/developers/skill), or start at [llms.txt](/llms.txt). Every page has a Markdown version and answers `Accept: text/markdown`.

Agent-created drafts, the embed and the [MCP connector](/developers/mcp) are coming soon. Today, use public catalog reads and ordinary buy links.

## For authors

Prefer a walkthrough without code? [Sell ebooks from your website](/guides/sell-ebooks-from-your-website), learn about [DRM-free ebooks](/guides/drm-free-ebooks), or [compare ways to sell](/guides/ways-to-sell-ebooks).
