brand_namestringobligatoire
Brand info
https://api.sandbase.ai/v1/api/douyin/index/brand-linesReturns brand trend line metrics and popularity trends over time for a specified brand name and date range across supported platforms.
[
{
"data": {
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "系统异常"
}
}
}
]Sélectionnez un exemple pour charger ses entrées et son résultat dans le playground.
Fetch historical brand popularity trends by passing brand_name, start_date, and end_date, with an optional app_name filter.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/brand-lines" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"brand_name": "华为", "end_date": "20260412", "start_date": "20260406"}'
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD |
brand_name | string | Yes | Brand info |
start_date | string | Yes | Start date YYYYMMDD |
app_name | string | No | Platform |
start_date and end_date require date formats in YYYYMMDD.app_name accepts either aweme or toutiao.Flat price per call. Failed calls, including lookups whose target does not exist, 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/douyin/index/brand-lines" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"app_name": "aweme",
"end_date": "20260412",
"brand_name": "华为",
"start_date": "20260406"
}'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.
brand_namestringobligatoireBrand info
end_datestringobligatoireEnd date YYYYMMDD
start_datestringobligatoireStart date YYYYMMDD
app_namestringPlatform
Par défaut : "aweme"
Valeurs possibles : aweme, toutiao
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
[
{
"data": {
"BaseResp": {
"StatusCode": -1,
"StatusMessage": "系统异常"
}
}
}
]Explorer plus
| API | Prix | Réponse |
|---|---|---|
Douyin Brand Trend LinesCette API Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Douyin | $0.001 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/douyin/index/brand-lines 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.001 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : brand_name (string), end_date (string) et start_date (string). Facultatif : app_name (l’un de aweme, toutiao). 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).
Non. Douyin Brand Trend Lines 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 Douyin séparément.