keywordstringobrigatório
Keyword to search for.
https://api.sandbase.ai/v1/api/youku/search-videoSearch Youku videos by keyword with page-based pagination. Use it to discover videos related to a topic, title, creator, or other search term.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
showid of search hits to look up each title in detail.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.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | Yes | Keyword to search for. |
page | integer | No | Page number for pagination, starting from 1. |
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"
}
| Field | Meaning |
|---|---|
data.data.total | Total number of results for the keyword. |
data.data.pg / data.data.pz | Current page number and page size. In this response they are 1 and 30. |
data.data.isEnd | Flag for the end of the results. It is 0 here, so more pages exist. |
data.nodes[].nodes[].nodes[].data.action.report.trackInfo.object_title | Title of the result item, such as 空枪. |
data.nodes[].nodes[].nodes[].data.action.report.trackInfo.object_url | Youku app link for the item. It contains the showid of the title. |
data.nodes[].nodes[].nodes[].data.cats | Category label of the item, such as 电影 (movie). |
data.nodes[].nodes[].nodes[].data.notice | Text line with the director and lead cast of the item. |
data.nodes[].nodes[].nodes[].data.posterDTO.vThumbUrl | URL of the poster image for the item. |
data.nodes[].nodes[].nodes[].data.posterDTO.labelInfo.text.title / data.nodes[].nodes[].nodes[].data.posterDTO.labelInfo.text.subTitle | Label 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). |
page to 2 or higher to get later pages. The first page is 1.nodes tree under data.nodes.showid appears in object_url and in item_log as show_id. Use it to look up a title with Youku Video Details.$0.014286 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/youku/search-video" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"page": 1,
"keyword": "电影"
}'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.
keywordstringobrigatórioKeyword to search for.
pageintegerPage number for pagination, starting from 1.
Padrão: 1
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Youku Video SearchEsta API Youku | $0.014286 por chamada | JSON |
Youku | $0.014286 por chamada | JSON |
Youku | $0.014286 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/youku/search-video 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.014286 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Obrigatórios: keyword (string). Opcionais: page (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. Youku Video Search 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 Youku separadamente.