SeerMarTech 文档控制台

YouTube Organic Live

POST/v3/serp/youtube/organic/live/advanced

实时获取 YouTube 视频搜索结果,含视频标题、频道、观看量、时长等。适用于视频 SEO 与竞品频道分析。

参考价:¥0.0320 / 次(实际以请求返回为准)

请求体

参数类型必填说明
keywordstring搜索关键词
location_codeinteger地理位置代码
language_codestring语言代码
depthinteger返回条数,默认 100

请求示例

curl

curl -X POST "https://api.seermartech.cn/v3/serp/youtube/organic/live/advanced" \ -H "Authorization: Bearer smt_live_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '[{"keyword": "seo tutorial", "location_code": 2840, "language_code": "en"}]'

Python

import requests resp = requests.post( "https://api.seermartech.cn/v3/serp/youtube/organic/live/advanced", headers={"Authorization": "Bearer smt_live_YOUR_KEY"}, json=[{"keyword": "seo tutorial", "location_code": 2840, "language_code": "en"}], timeout=60, ) for item in resp.json()["tasks"][0]["result"][0]["items"][:5]: print(item.get("title"), item.get("url"))

TypeScript

const resp = await fetch( "https://api.seermartech.cn/v3/serp/youtube/organic/live/advanced", { method: "POST", headers: { Authorization: "Bearer smt_live_YOUR_KEY", "Content-Type": "application/json", }, body: JSON.stringify([{ keyword: "seo tutorial", location_code: 2840, language_code: "en" }]), } ); const data = await resp.json(); console.log(data.tasks[0].result[0].items.slice(0, 5));

业务场景