user_url_tokenstringwajib
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.
Output Anda akan muncul di sini
Lengkapi input, lalu klik 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.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
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"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
user_url_tokenstringwajibUser ID
limitstringNumber of topics per page
offsetstringOffset
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Zhihu User Followed TopicsAPI ini Zhihu | $0.001 per panggilan | JSON |
Zhihu | $0.005 per panggilan | JSON |
Zhihu | $0.001 per panggilan | JSON |
Zhihu | $0.001 per panggilan | JSON |
Zhihu | $0.001 per panggilan | JSON |
Zhihu | $0.001 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/zhihu/web/user-follow-topics dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
$0.001 per panggilan. Setiap organisasi mendapat 100 panggilan gratis per hari UTC, dibagi di seluruh API SandBase yang memenuhi syarat termasuk yang ini; setelah itu setiap panggilan ditagihkan dengan harga ini dari saldo SandBase Anda. Tidak ada langganan.
Wajib: user_url_token (string). Opsional: limit (string) dan offset (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.
Tidak. Zhihu User Followed Topics berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Zhihu secara terpisah.