resource_idintegerobrigatório
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": []
}
}
]Selecione um exemplo para carregar as entradas e o resultado no playground.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
resource_idintegerobrigatórioResource ID
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"data": []
}
}
]Explorar mais
| API | Preço | Resposta |
|---|---|---|
Douyin Xingtu Resource ListEsta API Douyin | $0.001 por chamada | JSON |
Douyin | $0.002 por chamada | JSON |
Douyin | $0.002 por chamada | JSON |
Douyin | $0.01 por chamada | JSON |
Douyin | $0.003 por chamada | JSON |
Douyin | $0.001 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/douyin/xingtu-v2/resource-list com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.001 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: resource_id (integer). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Douyin Xingtu Resource List funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Douyin separadamente.