resource_idintegerwymagane
Resource ID
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/resource-listReturns marketing activity resources from Douyin Xingtu. Queries resource details using a specific resource identifier.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"data": []
}
}
]Wybierz przykład, aby wczytać jego dane wejściowe i wynik do playgroundu.
Returns marketing activity resources from Douyin Xingtu for a given resource_id. The data list holds one JSON string per resource, such as a case study article with a title, link and cover image.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/resource-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"resource_id": 1052}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
resource_id | integer | Yes | Resource ID |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": ""
},
"data": [
"{\"title\":\"2024巨量星图CNY「生意星龙」IP圆满收官,助力众多品牌龙年首战告捷!\",\"create_time\":\"1709350920\",\"nam…"
]
}
| Field | Meaning |
|---|---|
base_resp.status_code | Request status code. The value 0 in the sample means the call succeeded. |
base_resp.status_message | Status text for the request. It is an empty string in the sample. |
data[] | One resource per list item. Each item is a string that holds a JSON object, so parse it again after reading the response. Keys seen inside the sample strings include title, name, link, url, cover_url, image, slogan, industries, create_time and id. |
data is a JSON string. Decode it to read inner keys such as title, link, cover_url and industries.industries holds comma-separated numeric codes, for example 1930,1903,1933. create_time and id arrive as strings.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/resource-list" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"resource_id": 1
}'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.
resource_idintegerwymaganeResource ID
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"data": []
}
}
]Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Douyin | $0.001 za wywołanie | JSON |
Douyin | $0.002 za wywołanie | JSON |
Douyin | $0.002 za wywołanie | JSON |
Douyin | $0.01 za wywołanie | JSON |
Douyin | $0.003 za wywołanie | JSON |
Douyin | $0.001 za wywołanie | JSON |
Przewodniki:Best Douyin API in 2026: Pricing Compared
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/douyin/xingtu-v2/resource-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.
$0.001 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: resource_id (integer). Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Odpowiedź JSON zwrócona w tym samym żądaniu HTTP (synchronicznie). README na tej stronie zawiera przykładową odpowiedź.
Nie. Douyin Xingtu Resource 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.