userUrlTokenstringआवश्यक
Zhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`.
https://api.sandbase.ai/v1/api/zhihu/user-follow-topicsGet Zhihu topics followed by a user, with offset pagination. Use it to browse the topics associated with a known account's follow activity.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns the Zhihu topics a user follows, 20 per page by default. It needs the user's userUrlToken, the value in zhihu.com/people/{userUrlToken}. Each item includes the topic's name data such as description, follower count and discussion count.
category to see how their interests split.curl -X POST "https://api.sandbase.ai/v1/api/zhihu/user-follow-topics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userUrlToken": "excited-vczh"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
userUrlToken | string | Yes | Zhihu user URL token, such as the value in zhihu.com/people/{userUrlToken}. |
offset | integer | No | Start offset, begins with 0. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [
{
"contributions_count": 0,
"topic": {
"avatar_url": "https://pic1.zhimg.com/v2-40e779d5c5e6bcebda41e92d50594618.jpg?source=57bbeac9",
"category": "basic",
"discuss_count": "12858",
"excerpt": "天体生物学,是一门研究在宇宙中生命起源、生物演化、分布和未来发展的交叉学科,并不只限于地外生物,或包括对地球生物的研究。在天体物理学上,指研究天体上存在生物的条…",
"followers_count": 2065,
"foot_line": {
"content": "2065 关注 · 1.2 万讨论"
},
"id": "20015598",
"introduction": "天体生物学,是一门研究在宇宙中生命起源、生物演化、分布和未来发展的交叉学科,并不只限于地外生物,或包括对地球生物的研究。在天体物理学上,指研究天体上存在生物的条…"
}
}
],
"paging": {
"is_end": false,
"is_start": true,
"next": "https://www.zhihu.com/api/v5.1/topics/excited-vczh/following_topics_contribution…",
"previous": "https://www.zhihu.com/api/v5.1/topics/excited-vczh/following_topics_contribution…",
"totals": 50
}
}
| Field | Meaning |
|---|---|
data[].topic.id | Topic ID as a string. |
data[].topic.category | Topic category label, such as basic or n_game. |
data[].topic.excerpt / data[].topic.introduction | Short text describing the topic. Both can be empty for some topics. |
data[].topic.followers_count | Number of followers of the topic, as an integer. |
data[].topic.discuss_count | Number of discussions on the topic, returned as a string. |
data[].topic.foot_line.content | Display text that combines the follower and discussion counts, for example 2065 关注 · 1.2 万讨论. |
data[].topic.avatar_url | Image URL for the topic avatar. |
data[].contributions_count | Contribution count attached to each followed topic. It is 0 in all items shown. |
paging.totals | Total number of followed topics for this user. |
paging.is_end / paging.is_start | Flags that show whether this page is the last or the first page. |
userUrlToken from the profile URL, as in zhihu.com/people/excited-vczh.offset, which starts at 0. The paging.next URL shows the next page uses offset=20 with limit=20.paging.is_end is true.$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/zhihu/user-follow-topics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"offset": 0,
"userUrlToken": "excited-vczh"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
userUrlTokenstringआवश्यकZhihu user URL token, such as the value in `zhihu.com/people/{userUrlToken}`.
offsetintegerStart offset, begins with 0.
डिफ़ॉल्ट: 0
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Zhihu User Follow Topicsयह API Zhihu | $0.014286 प्रति कॉल | JSON |
Zhihu | $0.014286 प्रति कॉल | JSON |
Zhihu | $0.028571 प्रति कॉल | JSON |
Zhihu | $0.014286 प्रति कॉल | JSON |
Zhihu | $0.014286 प्रति कॉल | JSON |
Zhihu | $0.014286 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/zhihu/user-follow-topics पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.014286 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: userUrlToken (string)। वैकल्पिक: offset (integer)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Zhihu User Follow Topics SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Zhihu API access के लिए आवेदन करने की आवश्यकता नहीं है।