Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Youku Video Search

เอกสาร API
https://api.sandbase.ai/v1/api/youku/search-video

Search Youku videos by keyword with page-based pagination. Use it to discover videos related to a topic, title, creator, or other search term.

ราคา
$0.014286USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 1 ไม่บังคับ

Playground

อินพุต
Keyword to search for.
Page number for pagination, starting from 1.
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

API README

Youku Video Search API

Returns Youku search results for a keyword, including result cards for movies and shows with titles, categories, cast notes, and poster images. It needs one input, keyword, and accepts an optional page number.

Use cases

  • Find Youku movies and shows that match a topic or title keyword.
  • Collect the showid of search hits to look up each title in detail.
  • Read the cast and director line of each hit to match titles to a person.
  • Build a list of filter options such as duration and sort order that Youku offers for a query.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youku/search-video" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "电影"}'

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

Parameters

NameTypeRequiredDescription
keywordstringYesKeyword to search for.
pageintegerNoPage number for pagination, starting from 1.

Example response

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

{
  "api": "mtop.youku.soku.yksearch",
  "data": {
    "data": {
      "action": {
        "report": {
          "pageName": "page_searchresults",
          "trackInfo": {
            "aaid": "9fbffd5aabe0f1eeaa005d2258486410",
            "eid": "212c455717936920795481822ec135",
            "engine": "expid~req.ugc105.sort1004.rank105.qa0$eid~212c455717936920795481822ec135$bts~sok…",
            "k": "电影",
            "search_from": "1",
            "searchtab": "0",
            "source_from": "home"
          }
        }
      },
      "displaySearchTerms": "电影",
      "filter": {
        "cate": [
          {
            "id": "0",
            "title": "全部"
          }
        ],
        "duration": [
          {
            "title": "全部",
            "value": "0-0"
          }
        ],
        "format": [
          {
            "title": "全部",
            "value": 0
          }
        ],
        "newType": true,
        "tab": [
          {
            "id": "0",
            "orders": [
              {
                "title": "综合排序",
                "value": 0
              }
            ],
            "title": "综合排序"
          }
        ]
      },
      "globalControlParam": {
        "closeRetentionPop": true
      },
      "highlightWord": "电影",
      "hitNFMode": true,
      "isEnd": 0,
      "isModule": true,
      "pg": 1,
      "pz": 30,
      "rstate": 0,
      "status": "success"
    },
    "id": 0,
    "level": 0,
    "more": true,
    "nodes": [
      {
        "data": {
          "cateId": 7,
          "docSource": 15,
          "filters": [
            {
              "key": "3",
              "type": "0",
              "values": [
                {
                  "title": "综合",
                  "value": "sort~#0"
                }
              ]
            }
          ],
          "logCate": "programset",
          "schema": "15",
          "schemeName": "15"
        },
        "hasAfterSplitLine": true,
        "id": 0,
        "level": 1,
        "more": false,
        "nodes": [
          {
            "id": 0,
            "level": 2,
            "more": false,
            "nodes": [
              {
                "data": {
                  "areaTitle": "<em>电影</em>-影视",
                  "limitTitle": "电影"
                },
                "id": 0,
                "level": 3,
                "more": false,
                "style": [
                  {
                    "type": 0
                  }
                ],
                "type": 9003
              }
            ],
            "render": [
              {
                "type": "gaiax",
                "url": "youku://gaiax?templateId=pflix_search_component_1003&templateVersion=0.0.1&bizId…"
              }
            ],
            "style": [
              {
                "type": 0
              }
            ],
            "type": 9003
          }
        ],
        "style": [
          {
            "type": 0
          }
        ],
        "type": 1004
      }
    ],
    "type": 0
  },
  "ret": [
    "SUCCESS::调用成功"
  ],
  "traceId": "212c455717936920795481822ec135",
  "v": "2.0"
}

Response fields

FieldMeaning
data.data.totalTotal number of results for the keyword.
data.data.pg / data.data.pzCurrent page number and page size. In this response they are 1 and 30.
data.data.isEndFlag for the end of the results. It is 0 here, so more pages exist.
data.nodes[].nodes[].nodes[].data.action.report.trackInfo.object_titleTitle of the result item, such as 空枪.
data.nodes[].nodes[].nodes[].data.action.report.trackInfo.object_urlYouku app link for the item. It contains the showid of the title.
data.nodes[].nodes[].nodes[].data.catsCategory label of the item, such as 电影 (movie).
data.nodes[].nodes[].nodes[].data.noticeText line with the director and lead cast of the item.
data.nodes[].nodes[].nodes[].data.posterDTO.vThumbUrlURL of the poster image for the item.
data.nodes[].nodes[].nodes[].data.posterDTO.labelInfo.text.title / data.nodes[].nodes[].nodes[].data.posterDTO.labelInfo.text.subTitleLabel shown on the poster, such as a rating source and score (豆瓣, 8.0分) or a ranking tag (热度榜, TOP).
data.data.filter.tab[].orders[]Sort options with a title and a value, such as 综合排序 (0), 新发布 (1) and 播放多 (2).

Notes

  • Set page to 2 or higher to get later pages. The first page is 1.
  • The response is deeply nested. Result cards sit in the nodes tree under data.nodes.
  • The showid appears in object_url and in item_log as show_id. Use it to look up a title with Youku Video Details.

Pricing

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

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Youku Video SearchAPI นี้
Youku
$0.014286 ต่อการเรียกJSON
Youku$0.014286 ต่อการเรียกJSON
Youku$0.014286 ต่อการเรียกJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Youku Video Search API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/youku/search-video โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Youku Video Search API ราคาเท่าไร?

$0.014286 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Youku Video Search API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: keyword (string). ตัวเลือก: page (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Youku Video Search API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Youku ไหม?

ไม่จำเป็น Youku Video Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Youku API แยกต่างหาก