综合搜索(原始数据,推荐使用V2)/General search (raw data, recommend V2)
YouTubeapi
About
综合搜索(原始数据,推荐使用V2)/General search (raw data, recommend V2)
Documentation
综合搜索(原始数据,推荐使用V2)/General search (raw data, recommend V2)
[中文]
⚠️ 推荐使用 V2 版本:
- 本接口返回 YouTube 原始数据结构,需要自行解析
- 清洗过的数据版本请使用
/get_general_search_v2接口,返回结构化的视频、Shorts、频道、播放列表数据
用途:
- YouTube综合搜索,支持多种过滤条件,可以精确筛选搜索结果
参数详解:
- search_query: 搜索关键字
- language_code: 语言代码,推荐使用zh-CN(中文)或en-US(英文)
- country_code: 国家代码,影响搜索结果的地区相关性
- time_zone: 时区设置
过滤条件 (选择一个值即可):
上传时间 (upload_time):
hour: 过去1小时内上传today: 今天上传week: 本周上传month: 本月上传year: 今年上传
视频时长 (duration):
short: 短视频(少于4分钟)medium: 中等时长(4-20分钟)long: 长视频(超过20分钟)
内容类型 (content_type):
video: 视频channel: 频道playlist: 播放列表movie: 电影
特征 (feature):
hd: 高清视频4k: 4K视频subtitles: 包含字幕live: 直播creative_commons: 知识共享许可360: 360度视频vr180: VR180视频3d: 3D视频hdr: HDR视频location: 包含位置信息purchased: 已购买内容
排序方式 (sort_by):
relevance: 相关性(默认)upload_date: 上传日期view_count: 观看次数rating: 评分
返回:
- 包含过滤条件的搜索结果
[English]
Purpose:
- YouTube comprehensive search with multiple filter options for precise result filtering
Parameters:
- search_query: Search keyword
- language_code: Language code (zh-CN for Chinese, en-US for English)
- country_code: Country code affecting regional relevance
- time_zone: Time zone setting
Filter Options (select one value for each):
Upload Time (upload_time):
hour: Uploaded in the past hourtoday: Uploaded todayweek: Uploaded this weekmonth: Uploaded this monthyear: Uploaded this year
Duration (duration):
short: Short videos (under 4 minutes)medium: Medium length (4-20 minutes)long: Long videos (over 20 minutes)
Content Type (content_type):
video: Videoschannel: Channelsplaylist: Playlistsmovie: Movies
Features (feature):
hd: High definition4k: 4K videossubtitles: With subtitleslive: Live streamscreative_commons: Creative Commons licensed360: 360-degree videosvr180: VR180 videos3d: 3D videoshdr: HDR videoslocation: With location infopurchased: Purchased content
Sort By (sort_by):
relevance: Relevance (default)upload_date: Upload dateview_count: View countrating: Rating
⚠️ Recommend using V2 version:
- This endpoint returns raw YouTube data structure that requires manual parsing
- For cleaned/structured data, use
/get_general_search_v2endpoint, which returns structured videos, Shorts, channels, and playlists data
Returns:
- Filtered search results
[示例/Examples]
基础搜索
GET /youtube_web/get_general_search?search_query=Python编程
搜索本周上传的Python编程短视频
GET /youtube_web/get_general_search?search_query=Python编程&upload_time=week&duration=short
搜索高清的Python教程视频,按观看次数排序
GET /youtube_web/get_general_search?search_query=Python tutorial&feature=hd&sort_by=view_count
搜索今天上传的4K编程直播
GET /youtube_web/get_general_search?search_query=programming&upload_time=today&feature=4k&content_type=video
Imported from a validated TikHub OpenAPI document. Pricing must be reviewed before enabling.
Try 综合搜索(原始数据,推荐使用V2)/General search (raw data, recommend V2)
Test this model in the Sandbase Playground with your own prompts.
Open in PlaygroundRelated Models
获取频道帖子列表/Get channel community postsYouTubeapi获取频道描述信息/Get channel descriptionYouTubeapi从频道URL获取频道ID /Get channel ID from URLYouTubeapi获取频道短视频列表/Get channel shortsYouTubeapi从频道ID获取频道URL/Get channel URL from channel IDYouTubeapi获取频道视频 /Get channel videosYouTubeapi综合搜索V2/General search V2YouTubeapi获取帖子评论回复/Get post comment repliesYouTubeapi