Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Zhihu User Pins

Docs 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.

Prix
$0.001USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 2 facultatifs

Bac à sable

Entrée
User ID
Number of pins per page
Offset
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Zhihu$0.001 par appelJSON
Zhihu$0.005 par appelJSON
Zhihu$0.001 par appelJSON
Zhihu$0.001 par appelJSON
Zhihu$0.001 par appelJSON
Zhihu$0.001 par appelJSON

Guides :Best Zhihu API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Zhihu User Pins ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/zhihu/web/user-pins avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Zhihu User Pins ?

$0.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Zhihu User Pins accepte-t-elle ?

Obligatoire : user_url_token (string). Facultatif : limit (string) et offset (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Zhihu User Pins ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Zhihu ?

Non. Zhihu User Pins fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Zhihu séparément.