Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Douyin Keyword Crowd Portrait

Dokumentasi API
https://api.sandbase.ai/v1/api/douyin/index/portrait

Returns crowd portrait analysis for a specific keyword over a defined date range. Allows querying data for Douyin or Toutiao platforms.

Harga
$0.001USD / panggilan
Metode
POST
Respons
JSON
Parameter
3 wajib · 1 opsional

Playground

Input
End date YYYYMMDD
The keyword to analyze
Start date YYYYMMDD
Platform, aweme=Douyin, toutiao=Toutiao
OutputContoh
Responsoutputs · 120 B · 10 baris
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": 500,
        "StatusMessage": "关键词不为空"
      }
    }
  }
]

Contoh

Pilih contoh untuk memuat input dan hasilnya ke playground.

README API

Douyin Keyword Crowd Portrait API

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.

Use cases

  • Check which audience a search term such as 人工智能 attracts on Douyin.
  • Compare the crowd behind the same keyword on Douyin (aweme) and Toutiao (toutiao).
  • Run the same keyword over different date ranges to see how its audience changes.

Request

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.

Parameters

NameTypeRequiredDescription
end_datestringYesEnd date YYYYMMDD
keywordstringYesThe keyword to analyze
start_datestringYesStart date YYYYMMDD
app_namestringNoPlatform, aweme=Douyin, toutiao=Toutiao

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "BaseResp": {
    "StatusCode": 500,
    "StatusMessage": "日期格式满足%Y%m%d"
  }
}

Response fields

FieldMeaning
BaseRespStatus block of the response. In the sample call it is the only top-level key.
BaseResp.StatusCodeNumeric status of the call. The sample call returned 500, which means the request failed.
BaseResp.StatusMessageText that explains the status. The sample call returned 日期格式满足%Y%m%d, which says the date must match the %Y%m%d format.

Notes

  • Send 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.
  • Set app_name to aweme for Douyin or toutiao for Toutiao.
  • To pick dates that have data, call Douyin Index Valid Dates first.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON
Douyin$0.001 per panggilanJSON

Panduan:Best Douyin API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Douyin Keyword Crowd Portrait?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/index/portrait dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Douyin Keyword Crowd Portrait?

$0.001 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Douyin Keyword Crowd Portrait?

Wajib: end_date (string), keyword (string) dan start_date (string). Opsional: app_name (salah satu dari aweme, toutiao). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Douyin Keyword Crowd Portrait?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Douyin?

Tidak. Douyin Keyword Crowd Portrait berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Douyin secara terpisah.