Bookplates
A book’s price, on your page
A Bookplate is a card for one book on your own site, with its cover, title and author, a starting price in each reader’s currency, and a button to find a copy on Near Fine. You paste it in, like the paper kind, and it keeps its price up to date.
The code
<script type="module" src="https://nearfine.com/bookplates.js"></script>
<near-fine-bookplate isbn="9780141439518">
<a href="https://nearfine.com/search?q=9780141439518">Pride and Prejudice on Near Fine</a>
</near-fine-bookplate>
Load the script once per page, then add an element for each book. Whatever you put inside the element shows until the card draws, and to readers without JavaScript, so make it a link.
Try it
That isn’t an ISBN. An ISBN has 13 digits, or 10, the last of which can be an X.
The switch only previews the card on a light or dark page. The code is the same.
Its code
<script type="module" src="https://nearfine.com/bookplates.js"></script>
<near-fine-bookplate isbn="9780141439549">
<a href="https://nearfine.com/search?q=9780141439549">Find your copy on Near Fine</a>
</near-fine-bookplate>
What it does
- Its links go only to Near Fine’s search, never to a shop or to Amazon, so your page needs no affiliate disclosure for it.
- There’s no key and no sign-up. It sets no cookies and loads no analytics.
- It takes your page’s font and text colour, and brings its own layout.
- The price is the cheapest print copy from AbeBooks and the shops whose stock we hold, before shipping, and it’s refreshed every few hours.
- Each reader sees the price for their own country, in their own currency.
Who it’s for
Book bloggers and reviewers, newsletters with a web edition, authors with a page for each book, and reading groups with a list for the month.
Reference
Each reader sees their own country, found the way Near Fine’s own pages find it, with no cookies. The element takes two attributes.
isbn- Required. An ISBN-13 or ISBN-10, hyphens allowed.
country-
Optional. Show one country’s prices to every reader, as an ISO 3166-1 alpha-2 code such as
GB. Without it, each reader gets their own.
Look
The card uses your page’s font and text colour, its button too, with a light or dark label to suit, and brings its own layout. The card is in a shadow root, so your page’s classes can’t reach inside it, and these hooks are the way in.
Set --bookplate-accent for the button’s colour, --bookplate-border for the card’s border
and --bookplate-background for its background, on the element. Or style a part with
::part(): card, cover, title, author,
price and button.
near-fine-bookplate { --bookplate-accent: #0a5; }
near-fine-bookplate::part(title) { font-family: Georgia, serif; }
Prices
The card’s price is a starting price: the cheapest print copy of that edition among the booksellers Near Fine can ask without troubling them, AbeBooks and the shops whose stock we hold, by the copy’s own price before shipping, converted to the reader’s currency, with sellers in their country first and shops that don’t ship there left out. The book’s offers are fetched once and kept for six hours, and each country’s card is made from them. The button opens the full search, which asks every bookseller serving the reader and prices delivery. Ebooks and audiobooks are on the search page too.
Content Security Policy
If your site sets one, allow script-src https://nearfine.com, connect-src
https://nearfine.com and img-src https://nearfine.com https://covers.openlibrary.org.
Links
The card links to Near Fine, never to a shop or to Amazon, so your page needs no affiliate disclosure for it. Its
links carry rel="nofollow", as Google asks of links in widgets.
Privacy
The card sets no cookies and loads no analytics. Your readers’ country comes from Cloudflare, as on Near Fine itself, and isn’t kept.
The data
GET https://nearfine.com/bookplates/9781399826112.json?country=GB
Returns what the card draws, and a little more, for your own markup. Without country, it redirects to
the reader’s.
{
"isbn": "9781399826112",
"country": "GB",
"title": "Black Bag",
"author": "Luke Kennard",
"cover": "https://nearfine.com/covers/…",
"from": { "price": 9.98, "currency": "GBP", "condition": "used", "seller": "World of Books" },
"from_new": { "price": 14.2, "currency": "GBP", "seller": "AbeBooks" },
"sellers": 3,
"checked_at": "2026-11-13T21:10:00Z",
"search_url": "https://nearfine.com/search?country=GB&q=9781399826112"
}
Prices are the copies’ own, before shipping, in the reader’s currency. from and
from_new are absent when those sources had no copy, and from_new when the cheapest copy
is new. The data is kept for six hours and served from Cloudflare’s edge, so readers’ views don’t count against the
limits. A site that needs more, or a card in another shape,
should write to hello@nearfine.com.