Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

Zhihu User Pins

Документация API
https://api.sandbase.ai/v1/api/zhihu/web/user-pins

Returns a list of pins or moments posted by a specific Zhihu user. Supports pagination controls using offset and limit parameters.

Цена
$0.001USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 2 необязательных

Песочница

Ввод
User ID
Number of pins per page
Offset
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

Zhihu User Pins API

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.

Use cases

  • Build a timeline of short posts from a Zhihu creator's profile.
  • Archive a user's pins page by page with offset.
  • Check whether a Zhihu account has posted any pins before you fetch more data.
  • Collect pin IDs to pass to a pin detail or pin comments lookup.

Request

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.

Parameters

NameTypeRequiredDescription
user_url_tokenstringYesUser ID
limitstringNoNumber of pins per page
offsetstringNoOffset

Example response

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
  }
}

Response fields

FieldMeaning
dataList of pins on the current page. It is an empty list when the user has no pins, as in the example response.
paging.totalsTotal number of pins the response reports for this user. It is 0 in the example.
paging.is_end / paging.is_startBooleans that show whether this page is the last page or the first page of the list.
paging.nextURL for the next page. It carries the limit and offset values for that page.
paging.previousURL for the previous page. It carries the limit and offset values for that page.

Notes

  • user_url_token is the slug in a Zhihu profile URL, for example excited-vczh in zhihu.com/people/excited-vczh.
  • The next and previous links in paging show a default page size of 20 and step the offset by that amount.
  • Stop paging when paging.is_end is true.
  • To read one pin in full, call Zhihu Pin Detail. For its replies, call Zhihu Pin Comments.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
Zhihu User PinsЭтот API
Zhihu
$0.001 за запросJSON
Zhihu$0.005 за запросJSON
Zhihu$0.001 за запросJSON
Zhihu$0.001 за запросJSON
Zhihu$0.001 за запросJSON
Zhihu$0.001 за запросJSON

Руководства:Best Zhihu API in 2026: Pricing Compared

Вопросы

FAQ

Как использовать API Zhihu User Pins?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/zhihu/web/user-pins, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API Zhihu User Pins?

$0.001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API Zhihu User Pins?

Обязательные: user_url_token (string). Необязательные: limit (string) и offset (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API Zhihu User Pins?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика Zhihu или API key?

Нет. Zhihu User Pins работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Zhihu.