搜索
抓取 YouTube 视频、频道、播放列表和电影的搜索结果,支持上传日期、时长、内容类型、分辨率、直播、字幕等筛选。
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "youtube_search",
"query": "how to make a website"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'youtube_search',
'query': 'how to make a website'
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('user', 'pass1'),
json=payload,
)
# Print the JSON response with the result.
pprint(response.json())查询参数
参数
描述
默认值
类型
过滤器

过滤器查询参数
参数
描述
默认值
类型
最后更新于
这有帮助吗?

