← Back to marketplace

Douban Movies Books and Community Data

Douban movie, TV, book and music records, ratings, cast, reviews, member profiles and group topics, one row per entity.

media
by kaneliu101 endpoint100% uptime210ms avg

Endpoints

POST/v1/search
$0.0300/req

Search Douban movies, books, music and groups

Request schema

modestring

Mode. Leave on Automatic unless you want to force one data view. Automatic picks the view from the field you filled.

keywordsarray

Search terms. Titles, directors, authors or anything else you would type into Douban's search box, in Chinese or English. Each term is one input, and maxResults applies to each of them.

subjectIdsarray

Film, book or music IDs. Douban subject IDs such as 1292052, or full links such as https://movie.douban.com/subject/1292052/. Used only when Search terms is empty.

subjectTypestring

Subject type. Which Douban catalogue the IDs above belong to. Pick TV series for series IDs: Douban serves them on their own route.

celebrityIdsarray

People IDs. Douban person IDs such as 27253735, or links such as https://www.douban.com/personage/27253735/.

userIdsarray

Member IDs. Public Douban member IDs, as they appear in https://www.douban.com/people/<id>/. Email addresses and phone numbers are never published on this route and are not collected.

groupIdsarray

Group IDs. Douban group IDs, the number in https://www.douban.com/group/<id>/. Topic rows carry titles, abstracts and authors.

maxResultsinteger

Max rows per input (each listed URL, ID or keyword; a single target counts as one input). All row types share this allowance. Each plan caps the rows of one request (BASIC 10, PRO 70, ULTRA 200, MEGA 500); larger values are lowered to your plan's cap. You pay per delivered row (Rows).

includeReviewsboolean

Include long reviews. Add one row per long review of each subject. Each row is billed and counts toward Max rows per input.

includeInterestsboolean

Include short comments. Add one row per short comment (with the commenter's rating on Douban's 5-point scale).

includeCelebritiesboolean

Include cast and crew

includePhotosboolean

Include stills. Add one row per still, with the uploader's public profile and image links.

includeWorksboolean

Include filmography. For People mode: add one row per work of each person.

requestIdstring

Optional. Your id for this request: repeating it while the job runs returns the same job.

Response schema

{
  "allOf": [
    {
      "type": "object",
      "properties": {
        "jobId": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "running",
            "succeeded",
            "partial",
            "failed",
            "cancelled"
          ]
        },
        "done": {
          "type": "boolean"
        },
        "rowsAvailable": {
          "type": "integer"
        },
        "rowsDelivered": {
          "type": "integer",
          "description": "Rows already delivered (and billed) to you for this job."
        },
        "rowsLimit": {
          "type": "integer",
          "description": "Most rows this job can deliver."
        },
        "estimatedFinishSec": {
          "type": "integer",
          "description": "While running: estimated seconds until done."
        },
        "statusUrl": {
          "type": "string"
        },
        "resultsUrl": {
          "type": "string"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "retentionHours": {
          "type": "integer"
        },
        "error": {
          "$ref": "#/components/schemas/ErrorDetail"
        }
      }
    },
    {
      "type": "object",
      "properties": {
        "offset": {
          "type": "integer"
        },
        "nextOffset": {
          "type": "integer"
        },
        "hasMore": {
          "type": "boolean"
        },
        "rowCount": {
          "type": "integer"
        },
        "rowsBilled": {
          "type": "integer",
          "description": "Rows delivered by this response."
        },
        "rows": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/Row"
          }
        },
        "meta": {
          "type": "object",
          "additionalProperties": true
        }
      }
    }
  ]
}

Quick start

Easiest way: the APIHub CLI. Credits cover x402, no wallet needed.

# install and set up once
npx @apihubio/cli register
npx @apihubio/cli topup 10

# call this service
npx @apihubio/cli call "https://proxy.apihub.io/douban-com/v1/search" \
  -d '{"mode":"auto","keywords":["肖申克的救赎"],"subjectIds":["1292052"],"subjectType":"movie","celebrityIds":["string"],"userIds":["string"],"groupIds":["string"],"maxResults":3,"includeReviews":false,"includeInterests":false,"includeCelebrities":false,"includePhotos":false,"includeWorks":false,"requestId":"example requestId"}'

Or call the proxy directly (curl / any HTTP client):

curl -X POST https://proxy.apihub.io/douban-com/v1/search \
  -H "Authorization: Bearer ahk_your_key" \
  -H "Content-Type: application/json" \
  -d '{"mode":"auto","keywords":["肖申克的救赎"],"subjectIds":["1292052"],"subjectType":"movie","celebrityIds":["string"],"userIds":["string"],"groupIds":["string"],"maxResults":3,"includeReviews":false,"includeInterests":false,"includeCelebrities":false,"includePhotos":false,"includeWorks":false,"requestId":"example requestId"}'

# If credits available: charged automatically, returns 200
# Otherwise: returns 402 (pay via @x402/fetch or top up credits)

Pricing calculator

Estimate your monthly cost for Douban Movies Books and Community Data.

POST /v1/search$0.0300/req
-