Discover/Douban API
live

Douban APIbook.douban.com

Access Douban Books data via 9 endpoints: book search, metadata, ratings, long reviews, short comments, Top 250, tag browsing, and monthly charts.

Endpoint health
verified 1d ago
get_book_short_comments
search_books
get_top250
get_book_detail
get_tag_list
9/9 passing latest checkself-healing
Endpoints
9
Updated
22d ago

What is the Douban API?

The Douban Books API provides 9 endpoints covering book search, detailed metadata, user reviews, short comments, curated charts, and tag-based browsing from book.douban.com. The get_book_detail endpoint returns structured publication metadata — author, publisher, ISBN, page count, binding — alongside a 10-point average rating and vote count. Whether you're building a reading tracker, recommendation engine, or research tool, this API gives you direct access to one of China's largest book community datasets.

Try it
Tag name to browse (e.g. '小说', '文学', '历史'). Browse available tags via get_tag_list endpoint.
Sort order. Accepted values: 'T' (popular), 'R' (recent), 'S' (top rated).
Pagination offset (number of items to skip).
api.parse.bot/scraper/25fc1543-1fce-4d05-a285-00e4d45dad81/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/25fc1543-1fce-4d05-a285-00e4d45dad81/get_books_by_tag?tag=%E5%B0%8F%E8%AF%B4&sort=T&start=0' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace book-douban-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: Douban Books SDK — bounded, re-runnable; every call capped."""
from parse_apis.douban_books_api import DoubanBooks, TagSort, BookNotFound

client = DoubanBooks()

# Browse Top 250 — limit caps total items fetched
for book in client.topbooks.list(limit=3):
    print(book.title, book.rating, book.quote)

# Search by keyword, take first result, then drill into full detail
result = client.searchresults.search(query="三体", limit=1).first()
if result:
    detail = result.details()
    print(detail.title, detail.rating, detail.tags)

# Discover tags by category
cat = client.tagcategories.list(limit=1).first()
if cat:
    print(cat.category, [t.name for t in cat.tags[:3]])

# Constructible tag: browse books by tag with sort enum
for book in client.tag("小说").books(sort=TagSort.TOP_RATED, limit=3):
    print(book.title, book.rating, book.count)

# Sub-resources: get a book's reviews
target = client.book("1007305")
for review in target.reviews.list(limit=2):
    print(review.user, review.rating, review.date)

# Typed error handling
try:
    client.books.get(id="9999999999")
except BookNotFound as exc:
    print(f"Book not found: {exc}")

print("exercised: topbooks.list / searchresults.search / tagcategories.list / tag.books / book.reviews.list / books.get")
All endpoints · 9 totalmissing one? ·

Fetch a paginated list of books for a given tag. Returns books with title, rating, publication info, and reader count. Paginated via offset; each page returns up to 20 books.

Input
ParamTypeDescription
tagrequiredstringTag name to browse (e.g. '小说', '文学', '历史'). Browse available tags via get_tag_list endpoint.
sortstringSort order. Accepted values: 'T' (popular), 'R' (recent), 'S' (top rated).
startintegerPagination offset (number of items to skip).
Response
{
  "type": "object",
  "fields": {
    "tag": "string, the tag name queried",
    "books": "array of book objects with keys: title, url, id, image, pub, rating, count, desc",
    "start": "integer, pagination offset used"
  },
  "sample": {
    "data": {
      "tag": "小说",
      "books": [
        {
          "id": "35494160",
          "pub": "[美] 安迪·威尔 / 耿辉 / 译林出版社 / 2021-9 / 68.00",
          "url": "https://book.douban.com/subject/35494160/",
          "desc": "科技宅男+跨星系好(基)友联袂上演太空大救援",
          "count": "25880",
          "image": "https://img9.doubanio.com/view/subject/s/public/s33958826.jpg",
          "title": "挽救计划",
          "rating": "9.1"
        }
      ],
      "start": 0
    },
    "status": "success"
  }
}

About the Douban API

Book Metadata and Search

The search_books endpoint accepts a keyword query and returns matching books with id, title, author_name, year, and a cover image URL. Once you have a subject ID, get_book_detail returns the full record: a metadata object keyed by Chinese publication labels (作者, 出版社, 出版年, ISBN, 页数, 装帧, 定价), a rating string out of 10, votes, tags array, intro, and author_intro. Subject IDs are numeric strings like '1007305'.

Charts, New Releases, and Tag Browsing

get_top250 returns the Douban Books Top 250 list, paginated in groups of 25 via the start parameter (0, 25, 50, … 225). Each book entry includes title, id, pub, rating, votes, and a one-line quote. get_monthly_hot_chart and get_new_books require no inputs and return current trending and recently published titles respectively, each with title, id, info, and rating fields.

For tag-based discovery, get_tag_list returns the full tag cloud organized into named categories — 文学, 流行, 文化, 生活, 经管, 科技 — each with a list of tags and their associated book counts. get_books_by_tag then takes a tag string and an optional sort parameter (T for popular, R for recent, S for top rated) plus a start offset for pagination, returning title, url, id, image, pub, rating, count, and desc for each book.

Reviews and Comments

Two endpoints cover user-generated content. get_book_reviews returns long-form reviews for a given book ID, each with user, rating, title, content (excerpt), and date. get_book_short_comments returns brief user comments with user, rating, time, content, and a votes count indicating how many readers found the comment useful. Both endpoints require the Douban subject id as input.

Reliability & maintenanceVerified

The Douban API is a managed, monitored endpoint for book.douban.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when book.douban.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official book.douban.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
1d ago
Latest check
9/9 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a Chinese book recommendation engine using tag categories and Top 250 ratings from get_top250 and get_tag_list
  • Populate a reading list app with full publication metadata — ISBN, publisher, page count — via get_book_detail
  • Aggregate sentiment for a title by collecting long reviews from get_book_reviews alongside short comments from get_book_short_comments
  • Track monthly trending books in China using get_monthly_hot_chart for content or market research
  • Seed a book database with cover images, author names, and publication years using search_books and get_book_detail
  • Analyze the distribution of reader ratings across genre tags by combining get_books_by_tag with the rating and count fields
  • Monitor new releases in the Chinese book market using the get_new_books endpoint
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Douban provide an official developer API for book data?+
Douban had a public API (api.douban.com) that covered books among other content types, but access has been heavily restricted and new registrations for the book API have been effectively closed for years. The Parse API covers the data exposed on book.douban.com without requiring API credentials from Douban.
What does `get_book_detail` return and how granular is the publication metadata?+
It returns a metadata object whose keys are the Chinese field labels shown on the book page — typically 作者 (author), 出版社 (publisher), 出版年 (publication year), ISBN, 页数 (pages), 装帧 (binding), and 定价 (price). Not all fields are present for every book; coverage depends on what the source record includes. The endpoint also returns rating, votes, intro, author_intro, tags, and a cover image URL.
How does pagination work for tag browsing and the Top 250?+
get_books_by_tag and get_top250 both use a start integer offset. For get_top250 valid values are 0 through 225 in steps of 25, giving 25 books per page. For get_books_by_tag you increment start by the number of results returned per page. There is no limit parameter — page size is fixed by the source.
Does the API return user reading lists, want-to-read counts, or personal bookshelves?+
Not currently. The API covers public book metadata, community ratings, reviews, short comments, tag browsing, and curated charts. Personal bookshelf data and want-to-read/have-read/currently-reading counts per user are not exposed. You can fork this API on Parse and revise it to add an endpoint targeting user shelf pages if that data is relevant to your use case.
Are the reviews and comments returned in full, or only excerpts?+
get_book_reviews returns a content field that is an excerpt of each long-form review, not the full text. get_book_short_comments returns the complete short comment since those are inherently brief. Full review body text is not currently returned by get_book_reviews. You can fork the API on Parse and revise it to retrieve the full review text from individual review pages.
Page content last updated . Spec covers 9 endpoints from book.douban.com.
Related APIs in Reviews RatingsSee all →
barnesandnoble.com API
Search for books and discover detailed information including metadata, pricing, and customer reviews from Barnes & Noble's catalog. Browse bestsellers by category and access comprehensive book details to find your next read or compare prices and ratings.
librarything.com API
Search millions of books and retrieve detailed metadata, reviews, and author information from LibraryThing's vast catalog. Access member libraries, trending titles, author works, and tag-based book collections to explore one of the web's largest book cataloging communities.
top.baidu.com API
Access real-time trending search data from Baidu's Top platform. Retrieve ranked hot search terms, novels, movies, and TV dramas, with support for genre and category filtering across all board tabs.
novelbin.me API
Search and browse novels by title, genre, or popularity, and explore trending, completed, or recently updated works. Access full novel details, chapter listings, chapter content, author information, related titles, and reader comments. Authenticated users can manage bookmarks with reading-status tracking and subscribe to novels for update notifications.
booksrun.com API
Search millions of books and get instant buyback quotes on BooksRun. Browse bestsellers and categories, view detailed book information, and check condition guidelines to understand buyback prices and acceptance criteria.
abebooks.com API
Search for books by title or ISBN, view detailed listing information, and discover available sellers offering new and used copies. Find the best deals by comparing prices across multiple sellers and browsing their inventory.
booksamillion.com API
Access Books-A-Million's catalog to retrieve bestseller lists across fiction, nonfiction, manga, YA, and kids' categories, fetch detailed book information and customer reviews, search books by keyword, and look up nearby store locations. Returns structured data including titles, authors, pricing, availability, cover images, and paginated review content.
bookshop.org API
Search for books by keyword or category, view detailed information like metadata and pricing, discover curated reading lists, and find independent bookstores near you on Bookshop.org. Filter results by format and browse new releases to discover your next read.