subjectIdstringआवश्यक
The unique ID for a movie or TV subject on Douban.
https://api.sandbase.ai/v1/api/douban/movie-commentsShort comments (one-line reviews) on a Douban movie or TV subject with rating, user and location, sorted by time or score.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns short one-line comments for a Douban movie or TV subject. Each comment includes the text, the user's rating label, the user name and a location. The API needs the Douban subjectId.
subjectId 1292052 for sentiment analysis.sort between time and new_score.location to see which Chinese regions discuss a title.curl -X POST "https://api.sandbase.ai/v1/api/douban/movie-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subjectId": "1292052"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
subjectId | string | Yes | The unique ID for a movie or TV subject on Douban. |
page | integer | No | Page number for pagination. |
sort | string | No | Sort order for the result set. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"comments": [
{
"avatar": "https://img3.doubanio.com/icon/u210199036-3.webp",
"cid": "4980937286",
"content": "牢狱困得住躯体,困不住希望。安迪以漫长时光守住内心,告诉我们自由从不在高墙之外,而永不熄灭的信念本身就是救赎。",
"location": "安徽",
"rating": "推荐",
"time": "",
"username": "大喊一声啦啦啦",
"vote_count": 0
}
]
}
| Field | Meaning |
|---|---|
comments[] | List of short comments on the subject. Each item is one comment. |
comments[].cid | ID of the comment, returned as a string. |
comments[].content | Text of the short comment. |
comments[].rating | Rating label the user gave, such as 推荐 or 力荐. It is a text label, not a number. |
comments[].username | Display name of the user who wrote the comment. |
comments[].avatar | URL of the user's avatar image. |
comments[].location | Location shown for the user, such as a province name. |
comments[].vote_count | Number of votes the comment received. |
comments[].time | Time field of the comment. It was an empty string in the sample response. |
subjectId with Douban Recent Hot Movie or Douban Recent Hot Tv. Use Douban Subject Details for the title's own data.sort accepts time (default) or new_score. Use page to get more comments, starting at 1.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/douban/movie-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"sort": "time",
"subjectId": "1292052"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
subjectIdstringआवश्यकThe unique ID for a movie or TV subject on Douban.
sortstringSort order for the result set.
डिफ़ॉल्ट: "time"
संभावित मान: time, new_score
pageintegerPage number for pagination.
डिफ़ॉल्ट: 1
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Douban | $0.014286 प्रति कॉल | JSON |
Douban | $0.014286 प्रति कॉल | JSON |
Douban | $0.014286 प्रति कॉल | JSON |
Douban | $0.014286 प्रति कॉल | JSON |
Douban | $0.014286 प्रति कॉल | JSON |
Douban | $0.014286 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/douban/movie-comments पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.014286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: subjectId (string)। वैकल्पिक: sort (time, new_score में से एक) और page (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Douban Movie Short Comments SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Douban API access के लिए आवेदन करने की आवश्यकता नहीं है।