ThriftBooks
ThriftBooks Search API
Search ThriftBooks by keywords or browse the catalog with the bestsellers, deals and new releases presets, filtered by format, condition, language, genre, price and collectible, signed or first edition: each work with its lowest copy for sale, price range and copies available. Costs 1 credit.
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringSearch keywords (title, author, subject), 1-200 characters. Leave out to browse the whole catalog with list, genre or other filters. An ISBN is a 400 that points to isbn.
Example: project hail mary
listenum<string>A preset that combines with query and the filters.
Example: bestsellers
bestsellers— The site's bestseller order.deals— ThriftBooks Deals.new_releases— New Releases.
sortenum<string>default:most_popularThe site's sort menu.
Example: newest
most_popular— Most popular (default; bestsellers with list bestsellers).relevance— Top matches.bestsellers— Bestsellers.title_asc— Title, A to Z.title_desc— Title, Z to A.newest— Newest publication date first.oldest— Oldest publication date first.
pageintegerdefault:1Results page, 1-based, up to 1,000. page x page_size must stay within 10,000 (the site's search depth).
Example: 2
page_sizeintegerdefault:25Works per page, 1 to 50.
Example: 10
formatstring | string[]Formats, one or a list (at most 10): paperback, hardcover, mass_market_paperback, library_binding, audio_cd, mp3_cd, audio_cassette, perfect_paperback and more, or a format id an answer lists (format_id).
Example: ["hardcover"]
conditionstring | string[]Conditions, one or a list: new, like_new, very_good, good, acceptable.
Example: ["like_new", "very_good"]
languagestring | string[]Languages, one or a list: english, spanish, french, german, italian, chinese, russian, portuguese and more, or a language id from facets.languages.
Example: ["english"]
genreinteger | integer[]Genre ids, one or a list, as an answer lists them in facets.genres[].id (13207 Fiction, 13564 Horror, 15013 Science Fiction & Fantasy) or facets.age_ranges[].id.
Example: [13207]
min_priceintegerLowest price in whole US dollars, 0 to 10,000.
Example: 5
max_priceintegerHighest price in whole US dollars, 0 to 10,000.
Example: 10
dealsbooleanThriftBooks Deals only (the same as list deals).
Example: true
new_releasesbooleanNew Releases only (the same as list new_releases).
Example: true
collectiblebooleanCollectibles only.
Example: true
signedbooleanSigned books only.
Example: true
first_editionbooleanFirst editions only.
Example: true
large_printbooleanLarge print only.
Example: true
include_out_of_stockbooleandefault:falseAlso list works with no copy for sale now (the site leaves them out).
Example: true
Notes
ThriftBooks. ThriftBooks (thriftbooks.com, the US online used-book seller): its US storefront in US dollars and English, so every answer carries store (thriftbooks), host, country (us), currency (USD) and language (en), and there is no country parameter. Prices are ThriftBooks' own, per format and per condition (New, Like New, Very Good, Good, Acceptable), as a visitor who is not signed in sees them: no member or cart prices. ThriftBooks has no public API. Every endpoint costs 1 credit per call. A New copy quantity of 500 is the most ThriftBooks shows: 500 means 500 or more, so a total that includes it is a lower bound. On 2026-11-27 project hail mary read 3 works, Project Hail Mary first (work 26830049): 27 editions, 500 or more copies available, prices from 17.25 to 29.99 USD, and a New hardcover at 29.99 as the copy the result puts up for sale. With list bestsellers and no keywords, House of Flame and Shadow ranked first (an Acceptable hardcover at 11.59 USD, 277 copies across 20 editions), then A Court of Splintered Harmony (a New hardcover at 23.60). low_price and high_price are the price range ThriftBooks gives for the work across its editions and conditions; buy_now is the copy the search result puts up for sale (its condition, format and edition). available_copies counts copies across editions. facets lists the ids to send back as filters (genre ids from facets.genres[].id, format ids, language ids). ThriftBooks search does not match ISBNs: send one to isbn.
| Endpoint | Keyed by | Credits |
|---|---|---|
search | query, list or filters | 1 credit |
isbn | isbn | 1 credit |
work | work_id | 1 credit |
edition | edition_id | 1 credit |
copies | edition_id | 1 credit |
editions | work_id | 1 credit |
reviews | work_id | 1 credit |
suggestions | query | 1 credit |
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key", timeout=130)
d = client.thriftbooks.search(query="project hail mary", page_size=10)["data"]
print(d["total"], d["total_pages"])
for w in d["items"]:
b = w["buy_now"] or {}
print(w["work_id"], w["title"], w["low_price"], w["high_price"], b.get("condition"), b.get("price"))Response