Google Shorts 搜索 API
API 健康状态
健康 可用 受限 大多不可用 无数据
正在加载健康状态...
获取 Google Shorts 搜索数据,包括视频元数据和排名,用于短视频内容追踪和趋势分析。
标签: Google Shorts
请求参数
| 名称 | 必填 | 类型 | 默认值 | 说明 |
|---|---|---|---|---|
query | 是 | string | Google Shorts 的搜索查询(例如 '烹饪技巧'、'旅行窍门')。 | |
start | 否 | integer | 0 | 结果偏移量,用于跳过特定数量的条目(例如,设置为 12 以跳过前 12 个结果)。 |
html | 否 | boolean | false | 设置为 true 以返回 Google 搜索结果页面的原始 HTML 以及结构化数据。 |
country | 否 | string | us | 设置目标国家代码(例如 'us'、'uk')以本地化结果。请参阅 Google 国家/地区。 |
domain | 否 | string | google.com | 用于搜索的 Google 域名(例如 'google.com'、'google.co.uk')。请参阅 Google 域名。 |
language | 否 | string | en | 使用其两位字母代码设置结果语言(例如 'en' 表示英语,'fr' 表示法语)。请参阅 Google 语言。 |
lr | 否 | string | 使用 'lang_{language_code}' 格式(例如 'lang_en')将结果限制为一种或多种语言。请参阅 Google LR 语言。 | |
uule | 否 | string | 用于精确定位 Google 搜索结果的编码位置字符串 (UULE)。这是一个高级/技术参数——如果您不熟悉,可以留空并省略。 | |
tbs | 否 | string | 用于应用 Google 结果过滤器(例如时间范围)的高级搜索过滤器参数 (tbs)。这是一个高级参数——如果您不熟悉,可以留空。 | |
safe | 否 | string | OFF | SafeSearch 过滤器设置。 可用值: - ACTIVE:过滤成人内容。也接受旧值 active。- OFF:禁用 SafeSearch 过滤。也接受旧值 off。 |
nfpr | 否 | string | INCLUDE_CORRECTED_RESULTS | 控制 Google 的自动更正。 可用值: - INCLUDE_CORRECTED_RESULTS:包含更正后的结果。也接受旧值 0。- EXCLUDE_CORRECTED_RESULTS:排除更正后的结果。也接受旧值 1。 |
复制请求
bash
curl -X GET "https://api.justserpapi.com/api/v1/google/shorts/search?query=coffee" \
-H "X-API-Key: YOUR_API_KEY"js
const res = await fetch("https://api.justserpapi.com/api/v1/google/shorts/search?query=coffee", {
headers: { "X-API-Key": "YOUR_API_KEY" }
});
const data = await res.json();
console.log(data);python
import requests
url = "https://api.justserpapi.com/api/v1/google/shorts/search"
headers = { "X-API-Key": "YOUR_API_KEY" }
params = {
"query": "coffee"
}
response = requests.get(url, headers=headers, params=params)
print(response.json())php
<?php
$url = "https://api.justserpapi.com/api/v1/google/shorts/search?query=coffee";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"X-API-Key: YOUR_API_KEY"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;go
package main
import (
"fmt"
"io"
"net/http"
)
func main() {
client := &http.Client{}
req, _ := http.NewRequest("GET", "https://api.justserpapi.com/api/v1/google/shorts/search?query=coffee", nil)
req.Header.Set("X-API-Key", "YOUR_API_KEY")
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}响应
正在加载最新响应示例...
