# Douban API

Search Douban film, book, and music entries to retrieve long reviews, short reviews, and group discussions.

Subject type filters accept all, movie, book, or music, while discussion items require explicit URL inputs.

- Request: POST https://api.everyinfra.com/api/v1/social with `{"platform": "douban", "action": "<action>", "params": {...}}`
- Canonical page: [https://everyinfra.com/en/douban-api](https://everyinfra.com/en/douban-api?utm_medium=ai_doc&utm_campaign=page_md)
- Each capability uses the price recorded in the public catalog. The response includes the amount charged. Authentication failures, invalid parameters, failed calls, and empty results are not charged.

## Actions

### search — Search
Look up films, books and albums on Douban by title or topic. Get year, director and cast, author or artist, rating, number of raters and cover. Limit results to movies, books or music with `search_type`. `type` overrides it when you send both.
- Sync delivery · Price: $1.39 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `keyword` (required): Specifies the title or topic search query to discover Douban media items across movies, books, and music. Does not perform full-text searching inside long reviews or group topics.
  - `search_type` (optional): Filters item category discovery using all (default), movie, book, or music. When type is provided simultaneously, type takes precedence; unrecognized values fall back to all. One of: all, book, movie, music.
  - `type` (optional): Overrides search_type to filter item discovery by category (all, movie, book, or music). Filters catalog entry types only and does not select between reviews (long reviews) and comments (short comments), which are governed by action type. One of: all, book, movie, music.
- Returns fields: id, url, title, subject_type, year, director, cast, author, artist, rating, rating_scale, rating_count, cover_url, platform
- Capability page: [https://everyinfra.com/en/douban-api/search](https://everyinfra.com/en/douban-api/search?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douban-api/search.md)

### reviews — Reviews
Read long-form Douban reviews of a film, book or album from its subject link. Each review has title, text, rating label, reviewer and reply count. Each rating belongs to its review. The batch does not always hold every review of the title.
- Sync delivery · Price: $24 per 1,000 requests (each row counts as one call)
- Catalog values: defaultLimit=15, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `url` (required): Specifies the target subject URL formatted as /subject/<ID>/ on movie.douban.com, book.douban.com, or music.douban.com for reviews or comments actions, or as www.douban.com/group/topic/<ID>/ for group_topic. Long reviews, short comments, and group topic replies are handled by separate action endpoints.
- Returns fields: id, url, subject_id, subject_name, subject_type, title, text, rating, rating_scale, rating_label, author_name, author_url, author_avatar_url, reply_count, posted_at, platform
- Capability page: [https://everyinfra.com/en/douban-api/reviews](https://everyinfra.com/en/douban-api/reviews?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douban-api/reviews.md)

### comments — Comments
List short Douban comments on a film, book or album from its subject link, each with text, rating label, commenter, vote count and date. These brief comments are separate from the long-form write-ups returned by `reviews`.
- Sync delivery · Price: $1.39 per 1,000 requests (every 20 rows count as one call)
- Catalog values: defaultLimit=20, maxLimit=200. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `url` (required): Specifies the target subject URL formatted as /subject/<ID>/ on movie.douban.com, book.douban.com, or music.douban.com for reviews or comments actions, or as www.douban.com/group/topic/<ID>/ for group_topic. Long reviews, short comments, and group topic replies are handled by separate action endpoints.
- Returns fields: id, subject_id, subject_name, subject_type, text, rating, rating_scale, rating_label, author_name, author_url, author_avatar_url, vote_count, posted_at, platform
- Capability page: [https://everyinfra.com/en/douban-api/comments](https://everyinfra.com/en/douban-api/comments?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douban-api/comments.md)

### group_topic — Group topic
Read a Douban group discussion from its topic link. Get the opening post, group name and link, author, reply count and the replies. `max_replies` sets how many replies to fetch, from 1 to 100 (default 20). Closed groups are out of reach, and the thread may be incomplete.
- Sync delivery · Price: $1.39 per 1,000 requests (every 10 rows count as one call)
- Catalog values: defaultLimit=10, maxLimit=50. For some actions a limit controls pages or per-parent expansion, so it is not always the final row count.
- Parameters:
  - `url` (required): Specifies the target subject URL formatted as /subject/<ID>/ on movie.douban.com, book.douban.com, or music.douban.com for reviews or comments actions, or as www.douban.com/group/topic/<ID>/ for group_topic. Long reviews, short comments, and group topic replies are handled by separate action endpoints.
  - `max_replies` (optional): Limits the number of topic replies fetched by group_topic per request, accepting integers from 1 to 100 (default 20). Out-of-bounds values are clamped to boundary limits, non-parseable values revert to the default, and returned counts do not guarantee retrieval of all historical replies.
- Returns fields: id, url, title, text, group_id, group_name, group_url, author_name, author_url, reply_count, replies, posted_at, platform
- Capability page: [https://everyinfra.com/en/douban-api/group_topic](https://everyinfra.com/en/douban-api/group_topic?utm_medium=ai_doc&utm_campaign=page_md) (Markdown: https://everyinfra.com/en/douban-api/group_topic.md)

## Douban API questions

### What can I retrieve with the Douban API?

Set `platform` to `douban`. The current catalog lists search, reviews, comments, and group topic. These action names identify different Douban objects or views; they are not interchangeable search modes.

### Which input starts the Douban `search` request?

Specifies the title or topic search query to discover Douban media items across movies, books, and music. Does not perform full-text searching inside long reviews or group topics. Send it as `keyword` inside `params`.

### Which fields can Douban `search` return?

Its declared schema includes `title`, `subject_type`, `year`, and `director`. A declared field can still be absent from an individual record, and every other action has its own field list.

### Does every Douban action return immediately?

Actions labeled asynchronous return a job ID you poll. Every other action can also run asynchronously: add `"mode": "async"` to the request body to receive a job ID immediately, useful for slow tasks or large limits. The current catalog contains sync delivery.

## Also

- Machine catalog (no key): https://everyinfra.com/openapi.json · GET /api/v1/social/catalog?platform=douban
- API guide for AI clients: https://everyinfra.com/llms.txt · agents guide: https://everyinfra.com/agents.md
