user_url_tokenstringbắt buộc
User ID
https://api.sandbase.ai/v1/api/zhihu/web/user-follow-topicsReturns the list of topics followed by a specific Zhihu user. Filter and paginate results using user token, limit, and offset values.
Đầu ra của bạn sẽ xuất hiện ở đây
Hoàn tất đầu vào, rồi nhấp Run.
Returns the topics a Zhihu user follows, with each topic's name data, follower count, and discussion count. It needs the user's user_url_token, and it accepts limit and offset for paging.
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/user-follow-topics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"user_url_token": "excited-vczh"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
user_url_token | string | Yes | User ID |
limit | string | No | Number of topics per page |
offset | string | No | Offset |
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://pica.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 | ID of the followed topic, returned as a string. |
data[].topic.category | Category label for the topic, such as basic or n_game. |
data[].topic.introduction / data[].topic.excerpt | Description text of the topic. Both can be an empty string when the topic has no description. The text may be cut with an ellipsis. |
data[].topic.followers_count | Number of followers of the topic, as a number. |
data[].topic.discuss_count | Number of discussions in the topic, as a string. |
data[].topic.foot_line.content | Display summary of followers and discussions, for example 2065 关注 · 1.2 万讨论. |
data[].topic.avatar_url | URL of the topic's image. |
data[].contributions_count | Contribution count attached to the topic entry. It is 0 in the sample. |
paging.is_end / paging.is_start | Flags that show whether the page is the last or the first one. |
paging.totals | Total number of followed topics for the user. It is 50 in the sample. |
user_url_token from the Zhihu profile URL of the user, for example excited-vczh.offset by the limit value. The sample paging.next link uses offset=20&limit=20.paging.is_end is true.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/user-follow-topics" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"user_url_token": "excited-vczh"
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
user_url_tokenstringbắt buộcUser ID
limitstringNumber of topics per page
offsetstringOffset
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
Chưa có phản hồi đã lưu nào được công bố. Chạy API trong Playground để xem phản hồi.
Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Zhihu User Followed TopicsAPI này Zhihu | $0.001 mỗi lần gọi | JSON |
Zhihu | $0.005 mỗi lần gọi | JSON |
Zhihu | $0.001 mỗi lần gọi | JSON |
Zhihu | $0.001 mỗi lần gọi | JSON |
Zhihu | $0.001 mỗi lần gọi | JSON |
Zhihu | $0.001 mỗi lần gọi | JSON |
Hướng dẫn:Best Zhihu API in 2026: Pricing Compared
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/zhihu/web/user-follow-topics với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi. Mỗi tổ chức được 100 lần gọi miễn phí mỗi ngày UTC, dùng chung cho các API SandBase đủ điều kiện, bao gồm API này; sau đó mỗi lần gọi sẽ được tính theo mức giá này từ số dư SandBase của bạn. Không có gói đăng ký.
Bắt buộc: user_url_token (string). Tùy chọn: limit (string) và offset (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Zhihu User Followed Topics chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Zhihu.