# Douban Reviews API (douban.reviews)

- Canonical page: [https://everyinfra.com/en/douban-api/reviews](https://everyinfra.com/en/douban-api/reviews?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douban", "action": "reviews", "params": {...}}
- Price: $0.024 per call ($24 per 1,000 requests); failed calls and empty results are not charged
- Billing unit: each row you ask for counts as one call; rows that do not come back are refunded
- Returns: list, default 15, max 50 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=douban&action=reviews

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| url | not declared | yes | not declared | 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. |
| limit | integer (1–50) | no | 15 | The most rows to return in this call, an integer from 1 to 50. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| subject_id | platform-native meaning |
| subject_name | platform-native meaning |
| subject_type | platform-native meaning |
| title | Title. null when the platform has no titles (for example text-only posts). |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| rating | Rating. **The scale varies by platform**: rating_scale on the same row gives the maximum (usually 5; Booking, Douban, iQIYI and NAVER use 10). Convert with rating_scale before comparing across platforms, or the comparison can come out backwards. |
| rating_scale | Maximum of rating in the same row: 5 for five-star scales, 10 for ten-point scales. Present only when the row has a rating. |
| rating_label | platform-native meaning |
| author_name | Author's display name. |
| author_url | Link to the author's profile on the platform. |
| author_avatar_url | platform-native meaning |
| reply_count | Replies, usually replies to a comment. null means not disclosed. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "douban",
  "action": "reviews",
  "params": {
    "url": "https://book.douban.com/subject/2567698/"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "douban",
        "action": "reviews",
        "params": {
            "url": "https://book.douban.com/subject/2567698/",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 15. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "douban",
  "action": "reviews",
  "results": [
    {
      "id": "1342728",
      "url": "https://book.douban.com/review/1342728/",
      "subject_id": "2567698",
      "subject_name": "三体",
      "subject_type": "book",
      "title": "《三体》：当代史的科幻书写",
      "text": "评论刘慈欣的《三体》是件困难的事情，因为可以选择的角度太多。反复思量过后挑了这个角度，在我看来，写一部好的科幻小说，或者一部适合评论家们的科幻小说都不是难事，但是当作家的心思并不是用在这些上面，而是捎带着完成了这两件事的时候，就并不是那么容易了。很容易看出，刘慈欣在《三体》中表现出来的野心很大，不仅是试图将自己的作品序列进行系统化整理和某种程度上的超越，更重要的是试图给出一些达到“科幻”这个语词内涵之中的尝试。这些尝试的可贵之处勇气可嘉，以至于《三体》作为一部小说这样那样的问题都不足以稍稍削弱这种尝试中闪耀着的光芒。\n\n作为一部小说的《三体》，并不是一部…",
      "rating": 4,
      "rating_label": "推荐",
      "author_name": "•••",
      "author_url": "https://www.douban.com/•••",
      "author_avatar_url": "https://img3.doubanio.com/•••",
      "reply_count": 268,
      "posted_at": "2008-04-02T19:20:04+00:00",
      "platform": "douban",
      "rating_scale": 10
    },
    {
      "id": "1347293",
      "url": "https://book.douban.com/review/1347293/",
      "subject_id": "2567698",
      "subject_name": "三体",
      "subject_type": "book",
      "title": ",外星人，躲在暗处",
      "text": "三个质量相同或相近的物体，会在引力作用下进行着无规律、永不重复的复杂运动。《三体》那本书里，半人马座的三颗星，就是“三体运动”中的“三体”，三颗恒星的光和热蕴育了一种智慧生命。\n只是，太阳有3颗，是件麻烦事儿——有时太热，有时又太冷。那里的人把太阳正常的时期叫恒纪元，其他都是乱纪元。乱纪元时候，休眠；恒纪元的时候，才能繁衍生息，文明才能发展。经常地，当预言师拿出一份万年历，认为一段长期的恒纪元即将开始时，居民刚刚结束休眠，乱纪元却忽然出现，文明毁灭于大火或冰冻中。前191次被毁灭的文明都试图找到一份准确的万年历，直到第192次被毁灭的文明时，人们才终于明…",
      "rating": 5,
      "rating_label": "力荐",
      "author_name": "•••",
      "author_url": "https://www.douban.com/•••",
      "author_avatar_url": "https://img2.doubanio.com/•••",
      "reply_count": 149,
      "posted_at": "2008-04-08T01:25:48+00:00",
      "platform": "douban",
      "rating_scale": 10
    }
  ],
  "count": 15,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=douban
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
