Dailymotion频道资料 API

POST

接口健康状态

24h 健康值
正常
24h 平均耗时
—
  • 健康 / 正常
  • 可用
  • 少量可用
  • 基本不可用
正常

频道资料:返回单个对象;主要字段 channel_id、username、name、display_name、description、url。

Dailymotion 频道资料按频道页 url 读取一个频道的公开资料:频道 ID、用户名、名称与显示名、简介、头像、粉丝数、视频总数、创建时间和近期视频。它回答「这个频道由谁运营、体量多大」,适合在合作或投放广告前评估 Dailymotion 上的媒体和创作者,也适合给监测中的每个频道建一份基础档案。

video_count 是频道累计发布的视频数,结合 created_at 能估出更新频率;follower_count 为 null 表示粉丝数没有公开,别记成 0。description 是频道自己写的简介。名称有两个:display_name 是页面上显示的名字,username 是账号用户名,两者可能不同。

单价 $1.39 / 千次(每次 $0.001389),失败与空结果不扣费。 同步返回;慢任务可在请求体加 "mode": "async",先拿 job_id 再轮询。

AI 提示词

复制下面这段给你常用的 AI 助手:里面写好了这个接口的参数、返回字段和示例请求,它会先问清你的需求,再帮你写采集脚本。

请帮我用 EveryInfra 的「Dailymotion 频道资料」接口(dailymotion/channel)写一个数据采集脚本。

接口约定:
- 请求:POST https://api.everyinfra.com/api/v1/social,请求头 Authorization: Bearer <API Key>;Key 从环境变量 EVERYINFRA_API_KEY 读取,不要写进代码。
- 请求体里 platform 填 dailymotion,action 填 channel,参数放在 params 里。
- 必填参数:
  - url:Dailymotion 频道页完整链接,用于读取频道资料;不接受单条视频链接。
- 返回一个对象,主要字段:channel_id(频道 ID)、username、name、display_name、description、url、avatar_url、follower_count、video_count(视频数:channel 是频道视频…)、created_at、recent_videos。
- 示例请求体:
{
  "platform": "dailymotion",
  "action": "channel",
  "params": {
    "url": "https://www.dailymotion.com/euronews-en"
  }
}
- 计费:$1.39 / 千次;失败和空结果不扣费。
- 一次要采几十上百个时,在请求体加 "mode": "async":先拿到 job_id,再轮询 GET https://api.everyinfra.com/api/v1/jobs/{job_id} 取结果。
- 返回 422 时,按错误信息里的候选参数和允许值修正;返回 429 或 503 时,按 Retry-After 等待后重试。

写代码前,先问清楚我要采哪些对象、一共多少个、需要哪些字段、结果存成什么格式,再把方案和大概花费讲给我确认。

请求参数

参数名位置类型必填默认值说明
Authorizationheaderstring是-Bearer 加你的 API Key。在控制台创建;不要放进网址或代码仓库。
platformbodystring是dailymotion平台标识,固定值。
actionbodystring是channel能力标识,固定值。
urlbody.params未声明是-Dailymotion 频道页完整链接,用于读取频道资料;不接受单条视频链接。

代码示例

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": "channel",
  "params": {
    "url": "https://www.dailymotion.com/euronews-en"
  }
}'

[OpenAPI 定义 (JSON)]示例从环境变量 EVERYINFRA_API_KEY 读取 Key,复制出去的代码不含你的 Key。

响应示例

真实返回样例

2026年9月26日 16:56(北京时间)用上方代码示例的参数真实调用所得。results 与 count 是那次的真实返回,已隐去名字、账号、头像、主页链接、联系方式等个人信息;id、billing、quota 每次调用都不同,只给结构。

json
{
  "id": "req_…",
  "platform": "dailymotion",
  "action": "channel",
  "results": {
    "channel_id": "xm13vs",
    "username": "(已隐去)",
    "name": "euronews (in English)",
    "display_name": "(已隐去)",
    "description": "euronews on Dailymotion brings you a daily dose of international news curated and explained.<br /><br />Beyond headlines and sensationalism, euronews offers in-depth coverage and analysis from correspondents and bureaus all over the world.<br /><br />Subscribe to euronews and rec…",
    "url": "https://www.dailymotion.com/euronews-en",
    "avatar_url": "https://s1.dmcdn.net/(已隐去)",
    "follower_count": 17449,
    "video_count": 100472,
    "recent_videos": [
      {
        "id": "xbd8npa",
        "url": "https://www.dailymotion.com/video/xbd8npa",
        "title": "Trump and Xi declare harmony, no confrontation, as US state visit ends",
        "description": "Trump and Xi declare harmony, no confrontation, as US state visit ends<br /><br />Chinese president Xi Jinping’s state visit to Washington ends on a high note of pomp and less confrontation, as key details of his talks with US president Donald Trump are still to emerge<br /><br /…",
        "duration_seconds": 67,
        "view_count": 6,
        "like_count": 0,
        "comment_count": 0,
        "category": "NEWS",
        "tags": [
          "World News",
          "9:16",
          "World"
        ],
        "is_live": false,
        "thumbnail_url": "https://s1.dmcdn.net/v/e-6B-1gju294XZKRy/x720",
        "channel_id": "xm13vs",
        "channel_name": "euronews (in English)",
        "channel_url": "https://www.dailymotion.com/euronews-en",
        "created_at": "2026-09-26T08:14:37+00:00"
      },
      {
        "id": "xbd8mvy",
        "url": "https://www.dailymotion.com/video/xbd8mvy",
        "title": "Trump and Xi declare harmony, no confrontation, as US state visit ends",
        "description": "Trump and Xi declare harmony, no confrontation, as US state visit ends<br /><br />Chinese president Xi Jinping’s state visit to Washington ends on a high note of pomp and less confrontation, as key details of his talks with US president Donald Trump are still to emerge<br /><br /…",
        "duration_seconds": 67,
        "view_count": 19,
        "like_count": 0,
        "comment_count": 0,
        "category": "NEWS",
        "tags": [
          "World News",
          "16:9",
          "World"
        ],
        "is_live": false,
        "thumbnail_url": "https://s1.dmcdn.net/v/e-5xU1gju2BAaiipS/x720",
        "channel_id": "xm13vs",
        "channel_name": "euronews (in English)",
        "channel_url": "https://www.dailymotion.com/euronews-en",
        "created_at": "2026-09-26T08:14:29+00:00"
      },
      {
        "id": "xave0ru",
        "url": "https://www.dailymotion.com/video/xave0ru",
        "title": "The secret behind the Sagrada Familia's final towers: Stone, steel and 21st-century glue",
        "description": "The secret behind the Sagrada Familia's final towers: Stone, steel and 21st-century glue<br /><br />An innovative modular construction system and 24 tonnes of structural adhesive have dramatically accelerated work on Gaudí's Sagrada Familia. More than 140 years after construction…",
        "duration_seconds": 166,
        "view_count": 131,
        "like_count": 0,
        "comment_count": 0,
        "category": "NEWS",
        "tags": [
          "Design",
          "16:9",
          "Culture news"
        ],
        "is_live": false,
        "thumbnail_url": "https://s1.dmcdn.net/v/dBk9g1gjtSMUf_7Rz/x720",
        "channel_id": "xm13vs",
        "channel_name": "euronews (in English)",
        "channel_url": "https://www.dailymotion.com/euronews-en",
        "created_at": "2026-09-26T07:40:55+00:00"
      }
    ],
    "platform": "dailymotion"
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}

返回字段

业务数据在 results 里;下表是每条记录可能包含的字段,平台没有提供的值不会被补造。

字段含义
channel_id频道 ID。
username用户名(@handle)。
name名称。用于账号/商品/商家类能力,指该对象本身的名字。
display_name显示名,可能与 username 不同。
description简介或描述,通常比 text 短。
url该记录在原平台上的可访问链接。
avatar_url头像图片链接。部分平台给的是带尺寸参数的 CDN 链接,可能有时效。
follower_count粉丝数。null 表示不公开,不等于 0。
video_count视频数:channel 是频道视频总数,playlist 是该播放列表里的视频数。
created_at创建时间,格式同 posted_at。
recent_videos最近发布的视频列表,每项是一个视频(标题、链接、播放数、时长等);没有时不出现这个字段。
platform数据来源平台标识,与请求里的 platform 一致(如 xiaohongshu、tiktok)。

常见问题

url 能填单条视频的链接吗?

不能。要填频道页的完整链接,例如 https://www.dailymotion.com/euronews-en,路径里带 /video/ 的单条视频链接不接受。手里只有视频时,先用 Dailymotion 视频详情读取它,结果里的频道链接就是这里要传的地址。

频道名称应该存哪个字段?

展示给人看用 display_name,也就是页面上的名字;拼链接用 username。做关联和去重请用 channel_id,频道改名后它依然指向同一个频道。

怎么拿到频道里每条视频的数据?

这个能力描述的是频道整体,只给出视频总数 video_count。要逐条看播放、点赞、评论、时长和标签,把同一个频道链接交给 Dailymotion 频道视频,它每条视频返回一行。

错误与计费

401
缺少 Key 或 Key 无效。先鉴权再校验参数,未鉴权的请求拿不到参数结构。
422
参数名或取值不对。错误信息会列出这项能力支持的参数、允许值和最接近的候选,按它改即可;发生在扣费之前。
402
余额不足,请先充值。
429
超过账户的每分钟请求上限(名下所有 Key 合计;Key 自设了更低上限时先按它算),按 Retry-After 等待后再试。需要更高上限可在控制台买提速包。
503
暂时无法完成。已预扣的费用按原账本退回;响应里的 billing 与 refund 写明实际结果,结果未知时会明确标出,不要直接重发。
200 空结果
请求完成但没有数据,不扣费(billing.reason = empty_result_refunded)。

官方资料参照

只用于核对对象与术语,不表示平台对 EveryInfra 的授权或背书。

  • Dailymotion API v2:Profile 资料字段 ↗

    Dailymotion 官方 API v2 定义按 profile_id 获取一个 Profile,并列出 description、display_name、name、profile_id、social_links 等资料字段。EveryInfra 从频道 URL 定位对象是自身适配;官方文档使用 profile_id、要求 profile.read,不证明 recent_videos、匿名访问、字段完整性或所有频道 URL 都可解析。

    核对于 2026-09-05