user_url_tokenstringbắt buộc
User ID
https://api.sandbase.ai/v1/api/zhihu/web/user-pinsReturns a list of pins or moments posted by a specific Zhihu user. Supports pagination controls using offset and limit parameters.
Đầ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 a page of pins (short posts or moments) published by one Zhihu user. The only required input is the user's user_url_token, and limit and offset control paging.
offset.curl -X POST "https://api.sandbase.ai/v1/api/zhihu/web/user-pins" \
-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 pins per page |
offset | string | No | Offset |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": [],
"paging": {
"is_end": true,
"is_start": true,
"next": "https://www.zhihu.com/api/v4/v2/pins/excited-vczh/moments?includes=data%5B%2A%5D…",
"previous": "https://www.zhihu.com/api/v4/v2/pins/excited-vczh/moments?includes=data%5B%2A%5D…",
"totals": 0
}
}
| Field | Meaning |
|---|---|
data | List of pins on the current page. It is an empty list when the user has no pins, as in the example response. |
paging.totals | Total number of pins the response reports for this user. It is 0 in the example. |
paging.is_end / paging.is_start | Booleans that show whether this page is the last page or the first page of the list. |
paging.next | URL for the next page. It carries the limit and offset values for that page. |
paging.previous | URL for the previous page. It carries the limit and offset values for that page. |
user_url_token is the slug in a Zhihu profile URL, for example excited-vczh in zhihu.com/people/excited-vczh.next and previous links in paging show a default page size of 20 and step the offset by that amount.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-pins" \
-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 pins 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 PinsAPI 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-pins 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, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiệ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 Pins 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.