end_datestringобязательно
End date YYYYMMDD
https://api.sandbase.ai/v1/api/douyin/index/portraitReturns crowd portrait analysis for a specific keyword over a defined date range. Allows querying data for Douyin or Toutiao platforms.
[
{
"data": {
"BaseResp": {
"StatusCode": 500,
"StatusMessage": "关键词不为空"
}
}
}
]Выберите пример, чтобы загрузить его входные данные и результат в playground.
Returns crowd portrait analysis for one keyword over a date range on Douyin or Toutiao. It needs a keyword, a start_date and an end_date. app_name is optional and picks the platform.
人工智能 attracts on Douyin.aweme) and Toutiao (toutiao).curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/portrait" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"end_date": "1735660799", "keyword": "人工智能", "start_date": "1730044800"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
end_date | string | Yes | End date YYYYMMDD |
keyword | string | Yes | The keyword to analyze |
start_date | string | Yes | Start date YYYYMMDD |
app_name | string | No | Platform, aweme=Douyin, toutiao=Toutiao |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"BaseResp": {
"StatusCode": 500,
"StatusMessage": "日期格式满足%Y%m%d"
}
}
| Field | Meaning |
|---|---|
BaseResp | Status block of the response. In the sample call it is the only top-level key. |
BaseResp.StatusCode | Numeric status of the call. The sample call returned 500, which means the request failed. |
BaseResp.StatusMessage | Text that explains the status. The sample call returned 日期格式满足%Y%m%d, which says the date must match the %Y%m%d format. |
start_date and end_date as YYYYMMDD strings, for example 20241101. The sample request used Unix-style numbers such as 1730044800, and the call failed with the date format error shown above.app_name to aweme for Douyin or toutiao for Toutiao.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Начните разработку
Конечная точка платформенного API с единообразной аутентификацией и учётом использования.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/portrait" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keyword": "example",
"end_date": "example",
"start_date": "example"
}'Укажите свой ключ SandBase API в окружении сервера. Запросы используют аутентификацию Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Храните ключ на сервере. Не раскрывайте его в коде браузера.
end_datestringобязательноEnd date YYYYMMDD
keywordstringобязательноThe keyword to analyze
start_datestringобязательноStart date YYYYMMDD
app_namestringPlatform, aweme=Douyin, toutiao=Toutiao
Возможные значения: aweme, toutiao
Сохранённый пример ответа для этого API; при просмотре живой запрос не выполняется.
[
{
"data": {
"BaseResp": {
"StatusCode": 500,
"StatusMessage": "关键词不为空"
}
}
}
]Посмотреть больше
| API | Цена | Ответ |
|---|---|---|
Douyin Keyword Crowd PortraitЭтот API Douyin | $0.001 за запрос | JSON |
Douyin | $0.001 за запрос | JSON |
Douyin | $0.001 за запрос | JSON |
Douyin | $0.001 за запрос | JSON |
Douyin | $0.001 за запрос | JSON |
Douyin | $0.001 за запрос | JSON |
Руководства:Best Douyin API in 2026: Pricing Compared
Вопросы
Отправьте POST-запрос на https://api.sandbase.ai/v1/api/douyin/index/portrait, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.
$0.001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.
Обязательные: end_date (string), keyword (string) и start_date (string). Необязательные: app_name (один из aweme, toutiao). В таблице Parameters и в Playground на этой странице перечислены все поля.
JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.
Нет. Douyin Keyword Crowd Portrait работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API Douyin.