objectIdstringobligatoire
WeChat Channels video object id.
https://api.sandbase.ai/v1/api/wechat-channels/video-titleGet lightweight title information for a WeChat Channels video by object ID and optional nonce ID. Use it to identify known video content without requesting downloadable media.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
Returns the title, the posting account's name and username, and a media type code for one WeChat Channels video. It needs the video objectId, and you can add objectNonceId as an optional second input.
objectId from a saved list or log points to.#早安中国 from a video title for topic tagging.username before fetching more account data.curl -X POST "https://api.sandbase.ai/v1/api/wechat-channels/video-title" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"objectId": "14941130915890399732"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
objectId | string | Yes | WeChat Channels video object id. |
objectNonceId | string | No | Optional WeChat Channels object nonce id. Supplying it can improve lookup accuracy. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"media_type": 4,
"nickname": "人民日报",
"title": "6月11日,星期四。花开如瀑,金波荡漾。微风轻拂,芬芳满怀。愿您岁月安然,惬意从容。#早安中国",
"username": "v2_060000231003b20faec8c6e4811dc1d4c602ee30b0771bbcf220c67926bb76ab7702ac335a53@…"
}
| Field | Meaning |
|---|---|
title | The video title text as posted. It can include hashtags, like #早安中国 in the sample. |
nickname | Display name of the account that posted the video. The sample shows 人民日报. |
username | Internal username of the posting account. It ends in @finder. |
media_type | Numeric code for the media type. The sample returns 4. The response does not say what each code means. |
objectId is required. Add objectNonceId if you have it, since it can improve lookup accuracy.$0.021429 per successful call. Failed calls are not charged.
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/wechat-channels/video-title" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"objectId": "14941130915890399732"
}'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.
objectIdstringobligatoireWeChat Channels video object id.
objectNonceIdstringOptional WeChat Channels object nonce id. Supplying it can improve lookup accuracy.
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 |
|---|---|---|
WeChat Channels Video TitleCette API WeChat Channels | $0.021429 par appel | JSON |
WeChat Channels | $0.071429 par appel | JSON |
WeChat Channels | $0.021429 par appel | JSON |
WeChat Channels | $0.071429 par appel | JSON |
WeChat Channels | $0.114286 par appel | JSON |
WeChat Channels | $0.01 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/wechat-channels/video-title 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.021429 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : objectId (string). Facultatif : objectNonceId (string). 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. WeChat Channels Video Title 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 WeChat Channels séparément.