resource_idintegerbắt buộc
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": []
}
}
]Chọn một ví dụ để nạp đầu vào và kết quả của nó vào 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.
Bắt đầu xây dựng
Endpoint API của nền tảng với xác thực và theo dõi mức sử dụng thống nhất.
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
}'Đặt SandBase API key của bạn trong môi trường máy chủ. Các request sử dụng xác thực Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Giữ key của bạn trên máy chủ. Không hiển thị trong mã chạy trên trình duyệt.
resource_idintegerbắt buộcResource ID
Đây là phản hồi ví dụ đã lưu cho API này; không có request thực nào được gửi khi xem mục này.
[
{
"data": {
"base_resp": {
"status_code": 0,
"status_message": ""
},
"data": []
}
}
]Khám phá thêm
| API | Giá | Phản hồi |
|---|---|---|
Douyin Xingtu Resource ListAPI này Douyin | $0.001 mỗi lần gọi | JSON |
Douyin | $0.002 mỗi lần gọi | JSON |
Douyin | $0.002 mỗi lần gọi | JSON |
Douyin | $0.01 mỗi lần gọi | JSON |
Douyin | $0.003 mỗi lần gọi | JSON |
Douyin | $0.001 mỗi lần gọi | JSON |
Câu hỏi
Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/xingtu-v2/resource-list với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.
$0.001 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.
Bắt buộc: resource_id (integer). Bảng Parameters và Playground trên trang này liệt kê mọi trường.
Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.
Không. Douyin Xingtu Resource List chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Douyin.