> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Youku Videos API

> Youku videos with title, URL, type, likes and comments. Search by keyword.

`POST /v1/data/youku/videos/run`

**Pricing:** $0.01 per video ($12.50 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**queries** `string[]` *required*

One or more search keywords. One request reads them all.

**maxResults** `integer` (default: 100)

How many videos to return in total. Defaults to 100; use 0 for all.

**publishedWithin** `string` (default: all)

Published Within to use. All time by default.

Allowed values: `all` (All time), `last_day` (Last 24 hours), `last_week` (Last 7 days), `last_two_weeks` (Last 14 days), `last_month` (Last 30 days).

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/youku/videos/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "queries": [
      "庆余年",
      "舌尖上的中国",
      "故宫"
    ],
    "maxResults": 10
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/youku/videos/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "queries": [
        "庆余年",
        "舌尖上的中国",
        "故宫"
    ],
    "maxResults": 10
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/youku/videos/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "queries": [
    "庆余年",
    "舌尖上的中国",
    "故宫"
  ],
  "maxResults": 10
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one video, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `videoId` | Video ID | text |
| `title` | Title | text |
| `videoUrl` | Video URL | url |
| `query` | Query | text |
| `type` | Type | text |
| `likes` | Likes | number |
| `comments` | Comments | number |
| `durationS` | Duration S | number |
| `published` | Published | text |
| `category` | Category | text |
| `paid` | Paid | boolean |
| `showId` | Show ID | text |
| `showName` | Show Name | text |
| `thumbnail` | Thumbnail | url |
| `channel` | Channel | text |
| `channelId` | Channel ID | text |
| `subscribers` | Subscribers | number |
| `channelAvatar` | Channel Avatar | image |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "youku/videos",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "paid": false,
      "videoUrl": "https://v.youku.com/v_show/id_XNjU3NjI5OTYyMA==.html",
      "published": "2026-11-01T19:15:45+08:00",
      "showName": null,
      "likes": 0,
      "category": "其他",
      "subscribers": null,
      "comments": 0,
      "videoId": "XNjU3NjI5OTYyMA==",
      "query": "庆余年",
      "channel": "酷友1746967480377447",
      "showId": null,
      "title": "庆余年第二季：范闲假死真相#庆余年2#好剧推荐#范闲#因为一个片段看了整部剧#影视解说",
      "thumbnail": "https://m.ykimg.com/054104086AE71D1C1F004E01A4007958",
      "channelAvatar": "https://static.youku.com/user/avatar/1350/29.png?x-oss-process=image/resize,m_fill,limit_0,h_310,w_310",
      "durationS": 196,
      "channelId": "UMTc1MjAzODgxMTI=",
      "type": "ugc_video"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.