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.
- Cena
- $0.001USD / wywołanie
- Metoda
- POST
- Odpowiedź
- JSON
- Parametry
- 0 wymaganych · 0 opcjonalnych
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": ""
}
}
]Przykłady
Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
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.
Zacznij tworzyć
Wyślij pierwsze żądanie
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
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. Uwierzytelnianie
Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
3. Parametry
Nie opublikowano schematu parametrów dla tego API.
4. Odpowiedź
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
[
{
"data": {
"code": 0,
"data": [
{
"label": "北京",
"value": 110000
},
{
"label": "上海",
"value": 310000
},
{
"label": "广州",
"value": 440100
},
"… 391 more items in the full response"
],
"extra": {
"now": 1790689523000
},
"message": ""
}
}
]Odkryj więcej
Powiązane APIs
| API | Cena | Odpowiedź |
|---|---|---|
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Przewodniki:Best Douyin API in 2026: Pricing Compared
Pytania
FAQ
Jak używać API Douyin Billboard City List?
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/douyin/billboard/city-list z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Ile kosztuje API Douyin Billboard City List?
$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Jakie parametry przyjmuje API Douyin Billboard City List?
Douyin Billboard City List nie przyjmuje żadnych parametrów wejściowych; wyślij pustą treść JSON.
Co zwraca API Douyin Billboard City List?
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Czy potrzebuję konta deweloperskiego Douyin lub klucza API?
Nie. Douyin Billboard City List działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Douyin.
