# Dailymotion 关键词搜索 API (dailymotion.search)

- Canonical page: [https://everyinfra.com/dailymotion-api/search](https://everyinfra.com/dailymotion-api/search?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "dailymotion", "action": "search", "params": {...}}
- Price: $0.001389 per call ($1.39 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 10, max 100 per call
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=dailymotion&action=search

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| keyword | not declared | yes | not declared | Dailymotion 视频搜索词。该动作只按词搜视频；频道和播放列表请改用对应 URL 动作。 |
| date_range | enum: month / today / week / year | no | not declared | 视频上传时间窗：today 日级、week 周级、month 月级、year 年级。它不是自定义起止日期，也不保证完整历史；具体边界由平台的时间筛选决定。建议只传 date_range，不与兼容名 upload_date 同传。 |
| sort | enum: most_viewed / newest / relevance | no | not declared | 视频搜索排序：relevance 相关度、newest 最近发布、most_viewed 播放量。不能将这组值解释为 comments 的评论时间或帮助度排序。 |
| upload_date | enum: month / today / week / year | no | not declared | date_range 的旧参数名，仍支持 today / week / month / year。它过滤视频上传时间，不是指定视频 ID；同时传两者时以 upload_date 为准，建议只用 date_range。 |
| limit | integer (1–100) | no | 10 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| description | 简介或描述，通常比 text 短。 |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| duration_sec | platform-native meaning |
| view_count | 浏览/播放数。null 表示不公开，不等于 0。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| comment_count | 评论数。null 表示不公开，不等于 0。 |
| category | 分类名称，取值为原平台的分类体系，未做跨平台归一。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |
| is_live | 是否为直播内容。 |
| thumbnail_url | 缩略图链接，分辨率低于 image_url。 |
| channel_id | 频道 ID。 |
| channel_name | 频道名。 |
| channel_url | 频道链接。 |
| created_at | 创建时间，格式同 posted_at。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## Example

```bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "dailymotion",
  "action": "search",
  "params": {
    "keyword": "space documentary"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "dailymotion",
        "action": "search",
        "params": {
            "keyword": "space documentary",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 10. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "dailymotion",
  "action": "search",
  "results": [
    {
      "id": "xba07m2",
      "url": "https://www.dailymotion.com/video/xba07m2",
      "title": "Star Courier - Complete Episode | Space Cowboys & Monster Survival [Full Movie]",
      "duration_seconds": 2997,
      "is_live": false,
      "thumbnail_url": "https://s1.dmcdn.net/v/efNoA1gibq-6J0Y_Z/x240",
      "channel_id": "x675jvq",
      "channel_name": "ReplicationDrama",
      "channel_url": "https://www.dailymotion.com/ReplicationDrama",
      "created_at": "2026-09-19T05:42:49+00:00",
      "platform": "dailymotion"
    },
    {
      "id": "xbbhjxa",
      "url": "https://www.dailymotion.com/video/xbbhjxa",
      "title": "Love Lost in the Space - Full [Full Movie]",
      "duration_seconds": 2093,
      "is_live": false,
      "thumbnail_url": "https://s1.dmcdn.net/v/eotOU1gj8TrDkL3BU/x240",
      "channel_id": "x68473q",
      "channel_name": "DependencyInjectionWatch",
      "channel_url": "https://www.dailymotion.com/DependencyInjectionWatch",
      "created_at": "2026-09-22T15:12:02+00:00",
      "platform": "dailymotion"
    }
  ],
  "count": 10,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=dailymotion
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
