keywordstringobligatoire
The search keyword to find users.
https://api.sandbase.ai/v1/api/kuaishou/search-userSearch public Kuaishou user accounts by keyword with page-number pagination. Use it to discover relevant creators or accounts before requesting profile and published-video data.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns a list of public Kuaishou user accounts that match a search keyword. Each account includes its ID, display name, bio, follower count, avatar and verification status. The only required input is keyword.
美食, and rank them by fansCount.user_id values to feed into profile and video list requests.kwaiId handles and bios to screen accounts for outreach.curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/search-user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "美食"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | The search keyword to find users. |
page | integer | No | Page number for results, starting from 1. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"extParams": {
"disablePhotoInsert": false,
"dynamicShard": false,
"isShowPymkUserPhotos": true,
"isShowScrollTopButton": false,
"rsRecoAfterPlayInterval": 2,
"searchTaskParam": {},
"sessionParams": "",
"streamExtParams": "{\"single\":false,\"predict\":false,\"searchDetailCost\":{\"filterItem\":0,\"getView\":14}…",
"subtagWithPic": false
},
"host-name": "public-bjmt-c26-kce-node826.idchb1az4.hb1.kwaidc.com",
"llsid": "2006455000852273746",
"pcursor": "1",
"portalFlag": true,
"recoPcursor": "no_more",
"recoPymkFlag": false,
"responseCode": 0,
"result": 1,
"userFoldIndex": -1,
"users": [
{
"extra": {
"userInfoExposed": {
"lineSecond": "2"
}
},
"fans": false,
"fansCount": 1229553,
"feedLogCtx": {
"stidContainer": "In8xfDIwMDY0NTUwMDA4NTIyNzM3NDZ8QkFTRTo0MDMwMDA1OHx7InBnIjoic3VmIn18eyJiaXoiOiJz…"
},
"following": false,
"headurl": "http://p4.a.yximgs.com/uhead/AB/2021/02/18/12/BMjAyMTAyMTgxMjA0MTRfNDAzMDAwNThfM…",
"headurls": [
{
"cdn": "p4.a.yximgs.com",
"url": "http://p4.a.yximgs.com/uhead/AB/2021/02/18/12/BMjAyMTAyMTgxMjA0MTRfNDAzMDAwNThfM…"
}
],
"isBanned": false,
"isFavorited": false,
"is_followed": 0,
"kwaiId": "kuaishoumeishi",
"messageLink": "kwai://message/40300058"
}
],
"ussid": "MV81NzQ1MDc3MzkyXzE3OTM2OTEzNzUxNjBfXzQ0NzU"
}
| Field | Meaning |
|---|---|
users[] | List of matching user accounts for the requested page, in search rank order. |
users[].user_id | Numeric ID of the account. Use it to request profile or video data. |
users[].user_name | Display name of the account. |
users[].kwaiId | Public Kuaishou handle of the account. |
users[].user_text | Bio text written by the account owner. |
users[].fansCount | Number of followers the account has. |
users[].user_sex | Gender code of the account. The response shows F and U. |
users[].verified | true if the account is verified. When verified, verifiedDetail.description holds the badge text. |
users[].headurl / users[].headurls[].url | Avatar image URL. headurls lists the same image on different CDN hosts. |
pcursor | Cursor value returned with the page. It was 1 for the first page. |
page to get more results. It starts at 1 and defaults to 1.user_id is a number. Pass it to Kuaishou User Profile or Kuaishou User Published Videos to get more about an account.$0.014286 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/api/kuaishou/search-user" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"keyword": "美食"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
keywordstringobligatoireThe search keyword to find users.
pageintegerPage number for results, starting from 1.
Par défaut : 1
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Kuaishou User SearchCette API Kuaishou | $0.014286 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Kuaishou | $0.001 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/kuaishou/search-user 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.
$0.014286 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : keyword (string). Facultatif : page (integer). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
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.
Non. Kuaishou User Search 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 Kuaishou séparément.