Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Douyin Video Search Suggestions

Tài liệu API
https://api.sandbase.ai/v1/api/douyin/index/item-sug

Returns search suggestions and related video items based on a keyword query. Includes video titles, URLs, like counts, and author nicknames.

Giá
$0.001USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
Search keyword
Đầu raVí dụ
Phản hồioutputs · 5.0 KB · 82 dòng
[
  {
    "data": {
      "BaseResp": {
        "StatusCode": 0,
        "StatusMessage": ""
      },
      "data": [
        {
          "avatarUrl": "https://p6-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-i-0813c001_oQZcr3AHeAIVtOACAG7UedEoeIBaLBAyCPAQhP~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=6ZugbbF6E7nTH1KfeTrtbkHBPoY%3D",
          "category_name": "科技",
          "index": "65809",
          "itemId": "7673819479272361262",
          "likes": "42329",
          "nickname": "科技财经派",
          "thumbnail": "https://p6-byteindex-sign.byteimg.com/tos-cn-p-0015/oAaqhpu3eAEfJiGPDeu7OygAdL2vcfXAKMIgCc~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=PSyVvcp9zH4Ev0ZOwdeI4Erd5XE%3D",
          "title": "AI机器人再进化,SDU Soft的全新软体机器人#机器人  #具身智能  #人工智能  #科技  #AI",
          "url": "https://www.douyin.com/video/7673819479272361262"
        },
        {
          "avatarUrl": "https://p6-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-i-0813c000-ce_oE67eA7FVOAmYIQSAPLeJFgMjrSA9aIK7AGeBz~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=gs1onuOUJ4ziBopRRKcSKB2cWBg%3D",
          "category_name": "游戏",
          "index": "38952",
          "itemId": "7674210150537891113",
          "likes": "428425",
          "nickname": "鲤鱼Ace",
          "thumbnail": "https://p6-byteindex-sign.byteimg.com/tos-cn-p-0015/oYaM2he6Q0OGQEWAVPdAfjH8L6V7CpBAAQB2fU~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=85T%2FM3zcH9h5up%2F4SUqTLkNpLYE%3D",
          "title": "飞机安检模拟器 飞机安检模拟器\n⛔请勿相信其他任何自称是我(鲤鱼Ace)的言论或求助\n⛔我不会在任何社交平台上创建官方社群或添加好友\n⛔请勿相信由人为模仿或人工智能生成关于我(鲤鱼Ace)的任何内容\n⛔内容仅供娱乐,与现实中任何事件无关,请勿代入并联想,请勿模仿\n⛔未经授权,禁止转载",
          "url": "https://www.douyin.com/video/7674210150537891113"
        },
        {
          "avatarUrl": "https://p6-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-avt-0015_fb8c6d6a3901cccfc5575b70a1b86084~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=I5S7TX1rn7zNSnQx2KfoKfa5%2FwI%3D",
          "category_name": "科技",
          "index": "20999",
          "itemId": "7674146814232260475",
          "likes": "17941",
          "nickname": "技敦敦(江西)网络信息技术有限公司",
          "thumbnail": "https://p6-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/o81yC1smfAB6BRBJA91AWlIwuie0AQb65oiEES~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=%2F2rlVXJMhUgn%2FyIkQK7rh5%2B4ceg%3D",
          "title": "把握未来的时代机遇,会机器人调试维修的人才更受欢迎。 把时代风口变成自身底气。#工业机器人前景 #工业机器人 #推动中国机器人发展 #人工智能与就业 #学技术",
          "url": "https://www.douyin.com/video/7674146814232260475"
        },
        "… 17 more items in the full response"
      ],
      "itemSugResult": [
        {
          "avatarUrl": "https://p6-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-i-0813c001_oQZcr3AHeAIVtOACAG7UedEoeIBaLBAyCPAQhP~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=6ZugbbF6E7nTH1KfeTrtbkHBPoY%3D",
          "category_name": "科技",
          "index": "65809",
          "itemId": "7673819479272361262",
          "likes": "42329",
          "nickname": "科技财经派",
          "thumbnail": "https://p6-byteindex-sign.byteimg.com/tos-cn-p-0015/oAaqhpu3eAEfJiGPDeu7OygAdL2vcfXAKMIgCc~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=PSyVvcp9zH4Ev0ZOwdeI4Erd5XE%3D",
          "title": "AI机器人再进化,SDU Soft的全新软体机器人#机器人  #具身智能  #人工智能  #科技  #AI",
          "url": "https://www.douyin.com/video/7673819479272361262"
        },
        {
          "avatarUrl": "https://p6-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-i-0813c000-ce_oE67eA7FVOAmYIQSAPLeJFgMjrSA9aIK7AGeBz~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=gs1onuOUJ4ziBopRRKcSKB2cWBg%3D",
          "category_name": "游戏",
          "index": "38952",
          "itemId": "7674210150537891113",
          "likes": "428425",
          "nickname": "鲤鱼Ace",
          "thumbnail": "https://p6-byteindex-sign.byteimg.com/tos-cn-p-0015/oYaM2he6Q0OGQEWAVPdAfjH8L6V7CpBAAQB2fU~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=85T%2FM3zcH9h5up%2F4SUqTLkNpLYE%3D",
          "title": "飞机安检模拟器 飞机安检模拟器\n⛔请勿相信其他任何自称是我(鲤鱼Ace)的言论或求助\n⛔我不会在任何社交平台上创建官方社群或添加好友\n⛔请勿相信由人为模仿或人工智能生成关于我(鲤鱼Ace)的任何内容\n⛔内容仅供娱乐,与现实中任何事件无关,请勿代入并联想,请勿模仿\n⛔未经授权,禁止转载",
          "url": "https://www.douyin.com/video/7674210150537891113"
        },
        {
          "avatarUrl": "https://p6-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-avt-0015_fb8c6d6a3901cccfc5575b70a1b86084~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=I5S7TX1rn7zNSnQx2KfoKfa5%2FwI%3D",
          "category_name": "科技",
          "index": "20999",
          "itemId": "7674146814232260475",
          "likes": "17941",
          "nickname": "技敦敦(江西)网络信息技术有限公司",
          "thumbnail": "https://p6-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/o81yC1smfAB6BRBJA91AWlIwuie0AQb65oiEES~tplv-obj.image?rk3s=c8d089e8&x-expires=1787240807&x-signature=%2F2rlVXJMhUgn%2FyIkQK7rh5%2B4ceg%3D",
          "title": "把握未来的时代机遇,会机器人调试维修的人才更受欢迎。 把时代风口变成自身底气。#工业机器人前景 #工业机器人 #推动中国机器人发展 #人工智能与就业 #学技术",
          "url": "https://www.douyin.com/video/7674146814232260475"
        },
        "… 17 more items in the full response"
      ]
    }
  }
]

Ví dụ

Chọn một ví dụ để nạp đầu vào và kết quả của nó vào playground.

README API

Douyin Video Search Suggestions API

Returns a list of Douyin videos that match a search keyword. Each item has the video title, URL, like count, author nickname, category and thumbnail. It needs one input, the query keyword.

Use cases

  • Find popular Douyin videos that mention a topic such as 人工智能.
  • Collect video URLs and itemId values to feed into other Douyin video lookups.
  • Compare which content categories a keyword appears in, using category_name.
  • Rank videos for a keyword by likes to spot the most engaging posts.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/item-sug" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "人工智能"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
querystringYesSearch keyword

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "BaseResp": {
    "StatusCode": 0,
    "StatusMessage": ""
  },
  "data": [
    {
      "avatarUrl": "https://p6-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-avt-0015_c71d4aad59827…",
      "category_name": "美食",
      "index": "173099",
      "itemId": "7703073570793225579",
      "likes": "5052",
      "nickname": "康喜搞笑社",
      "thumbnail": "https://p6-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/oMgVNnCfoAzND7BfgIWwz…",
      "title": "“人工智能打饭机”#万万想不到 #当代大学生精神状态 #哈哈哈哈哈哈我要笑死了 #人类迷惑行为 #剪映 视频中是可使用食材 可能引人不适谨慎观看 视频效果无不良…",
      "url": "https://www.douyin.com/video/7703073570793225579"
    }
  ],
  "itemSugResult": [
    {
      "avatarUrl": "https://p6-byteindex-sign.byteimg.com/aweme-avatar/tos-cn-avt-0015_c71d4aad59827…",
      "category_name": "美食",
      "index": "173099",
      "itemId": "7703073570793225579",
      "likes": "5052",
      "nickname": "康喜搞笑社",
      "thumbnail": "https://p6-byteindex-sign.byteimg.com/tos-cn-p-0015c000-ce/oMgVNnCfoAzND7BfgIWwz…",
      "title": "“人工智能打饭机”#万万想不到 #当代大学生精神状态 #哈哈哈哈哈哈我要笑死了 #人类迷惑行为 #剪映 视频中是可使用食材 可能引人不适谨慎观看 视频效果无不良…",
      "url": "https://www.douyin.com/video/7703073570793225579"
    }
  ]
}

Response fields

FieldMeaning
data[]List of matching video items for the keyword. Each entry holds the fields below.
data[].titleVideo caption text, including hashtags.
data[].urlLink to the video page on Douyin.
data[].itemIdID of the video. It is also the last part of url.
data[].likesLike count for the video, returned as a string.
data[].nicknameDisplay name of the video author.
data[].category_nameContent category of the video, for example 美食 or 教育校园.
data[].indexNumeric index value for the video, returned as a string.
data[].avatarUrl / data[].thumbnailSigned image URLs for the author avatar and the video cover.
itemSugResult[]Same list of video items as data[], with the same fields.

Notes

  • Pass the search keyword in query. The request has no pagination parameter.
  • data and itemSugResult hold the same items in this response, so read either one.
  • likes and index arrive as strings. Convert them to numbers before sorting.
  • To search videos with more filters, try Douyin Index Video Search.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON
Douyin$0.001 mỗi lần gọiJSON

Hướng dẫn:Best Douyin API in 2026: Pricing Compared

Câu hỏi

FAQ

Làm thế nào để dùng API Douyin Video Search Suggestions?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/douyin/index/item-sug 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.

API Douyin Video Search Suggestions có giá bao nhiêu?

$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ý.

API Douyin Video Search Suggestions chấp nhận những tham số nào?

Bắt buộc: query (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Douyin Video Search Suggestions trả về gì?

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.

Tôi có cần tài khoản nhà phát triển hoặc API key của Douyin không?

Không. Douyin Video Search Suggestions 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.