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.
- Prezzo
- $0.001USD / chiamata
- Metodo
- POST
- Risposta
- JSON
- Parametri
- 0 obbligatori · 0 opzionali
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": ""
}
}
]Esempi
Seleziona un esempio per caricare i suoi input e il risultato nel 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.
Inizia a costruire
Invia la tua prima richiesta
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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. Autenticazione
Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
3. Parametri
Non è stato pubblicato alcuno schema dei parametri per questa API.
4. Risposta
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
[
{
"data": {
"code": 0,
"data": [
{
"label": "北京",
"value": 110000
},
{
"label": "上海",
"value": 310000
},
{
"label": "广州",
"value": 440100
},
"… 391 more items in the full response"
],
"extra": {
"now": 1790689523000
},
"message": ""
}
}
]Esplora altro
API correlate
| API | Prezzo | Risposta |
|---|---|---|
Douyin Billboard City ListQuesta API Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Douyin | $0.001 per chiamata | JSON |
Domande
FAQ
Come uso l'API Douyin Billboard City List?
Invia una richiesta POST a https://api.sandbase.ai/v1/api/douyin/billboard/city-list con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
Quanto costa l'API Douyin Billboard City List?
$0.001 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Quali parametri accetta l'API Douyin Billboard City List?
Douyin Billboard City List non accetta parametri di input; invia un body JSON vuoto.
Cosa restituisce l'API Douyin Billboard City List?
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
Mi serve un account sviluppatore o una chiave API Douyin?
No. Douyin Billboard City List funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Douyin.
