Douyin Billboard City List
https://api.sandbase.ai/v1/api/douyin/billboard/city-listReturns the list of Chinese cities supported by Douyin billboard rankings. Use this data to populate regional filters for location-specific trending lists.
- Harga
- $0.001USD / panggilan
- Metode
- POST
- Respons
- JSON
- Parameter
- 0 wajib · 0 opsional
Playground
[
{
"data": {
"code": 0,
"data": [
{
"label": "北京",
"value": 110000
},
{
"label": "上海",
"value": 310000
},
{
"label": "广州",
"value": 440100
},
"… 391 more items in the full response"
],
"extra": {
"now": 1790689523000
},
"message": ""
}
}
]Contoh
Pilih contoh untuk memuat input dan hasilnya ke playground.
README API
Douyin Billboard City List API
Returns the list of Chinese cities that Douyin billboard rankings support. Each city has a display name and a numeric code. The API takes no input.
Use cases
- Fill a city dropdown in a dashboard that shows local Douyin trending lists.
- Store the city codes so you can pass them to city-based billboard queries.
- Check whether a city is supported before you build a regional report.
Request
curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/city-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
The result is returned in outputs[0].data.
Example response
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"code": 0,
"data": [
{
"label": "北京",
"value": 110000
}
],
"extra": {
"now": 1793691103000
},
"message": ""
}
Response fields
| Field | Meaning |
|---|---|
code | Status code of the response. The sample shows 0. |
data[] | One entry for each supported city. |
data[].label | City name in Chinese, such as 北京 or 上海. |
data[].value | Numeric code for the city, such as 110000 for 北京. Use it to identify the city in other requests. |
extra.now | Timestamp of the response as a number, in the form of 13 digits (milliseconds). |
message | Message text. It is an empty string in the sample. |
Notes
- Send an empty JSON object
{}as the request body. The API has no parameters. - Call Douyin City Hot List next to get city-based rankings.
- The
valuecodes look like Chinese administrative region codes, for example110000and440100.
Pricing
$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Mulai membangun
Kirim permintaan pertama Anda
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/billboard/city-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'2. Autentikasi
Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
3. Parameter
Tidak ada schema parameter yang dipublikasikan untuk API ini.
4. Respons
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
[
{
"data": {
"code": 0,
"data": [
{
"label": "北京",
"value": 110000
},
{
"label": "上海",
"value": 310000
},
{
"label": "广州",
"value": 440100
},
"… 391 more items in the full response"
],
"extra": {
"now": 1790689523000
},
"message": ""
}
}
]Jelajahi lebih lanjut
API Terkait
| API | Harga | Respons |
|---|---|---|
Douyin Billboard City ListAPI ini Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Douyin | $0.001 per panggilan | JSON |
Pertanyaan
FAQ
Bagaimana cara menggunakan API Douyin Billboard City List?
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/douyin/billboard/city-list 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 Billboard City List?
$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 Billboard City List?
Douyin Billboard City List tidak memiliki parameter input; kirim body JSON kosong.
Apa yang dikembalikan API Douyin Billboard City List?
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 Billboard City List 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.
