ABCProxy Docs
繁体中文
繁体中文
  • 概述
  • 代理
    • 動態住宅代理
      • 介紹
      • 代理管理器提取IP使用
      • 網頁個人中心提取IP使用
      • 入門指南
      • 賬密認證
      • API提取
      • 基本查詢
      • 選擇國家/地區
      • 選擇州
      • 選擇城市
      • 會話保持
    • 動態住宅代理(Socks5)
      • 入門指南
      • 代理管理器提取IP使用
    • 無限量住宅代理
      • 入門指南
      • 賬密認證
      • API提取
    • 靜態住宅代理
      • 入門指南
      • 賬密認證
      • API提取
    • ISP 代理
      • 入門指南
      • 帳密認證
    • 數據中心代理
      • 入門指南
      • 帳密認證
      • API提取
  • 高级代理解决方案
    • 網頁解鎖器
      • 開始使用
      • 發送請求
        • JavaScript渲染
        • 地理位置選擇
        • 會話保持
        • Header
        • Cookie
        • 屏蔽資源加載
    • APM-ABC代理管理器
      • 如何使用
  • SERP API
    • 開始使用
    • Google
      • Google 搜尋 API
      • Google 購物 API
      • Google 本地 API
      • Google 視頻 API
      • Google 新聞 API
      • Google 航班 API
      • Google 產品 API
      • Google 圖片 API
      • Google 鏡象圖片 API
      • Google Play 商店 API
      • Google Play 產品 API
      • Google Play 遊戲商店 API
      • Google Play 圖書商店 API
      • Google Play 電影商店 API
      • Google工作 API
      • Google學者API
      • Google學者作者 API
      • Google學者引用API
      • Google學者簡介API
      • Google財經 API
      • Google財經市場 API
      • Google 專利 API
      • Google 專利詳情 API
    • Bing
      • Bing 搜尋 API
      • Bing 圖片 API
      • Bing 影片 API
      • Bing 新聞 API
      • Bing 購物 API
      • Bing 地圖 API
    • Yahoo
      • Yahoo 搜尋 API
      • Yahoo 圖片 API
      • Yahoo 購物 API
      • Yahoo 影片 API
    • DuckDuckGo
      • DuckDuckGo 搜尋 API
      • DuckDuckGo 新聞 API
      • DuckDuckGo 地圖 API
    • Ebay
      • EBay 搜尋 API
    • Walmart
      • 沃爾瑪產品 API
      • 沃爾瑪商品評論 API
      • 沃爾瑪搜尋API
    • Yelp
      • Yelp 評論 API
    • Youtube
      • YouTube 搜尋 API
      • YouTube 影片 API
      • YouTube 視頻批量下載 API
        • YouTube 單個下載任務資訊 API
        • YouTube 批次下載任務資訊 API
  • 參數
    • Google GL 參數:受支持的 Google 國家 / 地區
    • Google 廣告透明度中心地區
    • Google HL 參數:受支持的 Google 語言
    • Google Lens 國家參數:受支持的 Google Lens 國家 / 地區
    • Google 本地服務工作類型
    • Google 趨勢類別
    • 受支持的 DuckDuckGo 地區
    • Google 趨勢位置
    • 受支持的 eBay 域名
    • 受支持的 eBay 位置選項
    • 受支持的 eBay 排序選項
    • 透過 cr 參數受支持的 Google 國家 / 地區
    • 受支持的 Google 域名
    • 透過 lr 參數受支持的 Google 語言
    • 受支持的 Google 專利國家代碼
    • 受支持的 Google Play 應用程式類別
    • 受支持的 Google Play 圖書類別
    • 受支持的 Google Play 遊戲類別
    • 受支持的 Google Play 電影類別
    • 受支持的 Google Scholar地區 (數據)
    • 受支持的 Google 旅遊貨幣代碼
    • 受支持的位置API
    • 受支持的 Yahoo! 國家 / 地區
    • 受支持的 Yahoo! 域名
    • 受支持的 Yahoo! 檔案格式
    • 受支持的 Yahoo! 語言
    • 受支持的 Yandex 域名
    • 受支持的 Yandex 語言
    • 受支持的 Yandex 位置
    • 受支持的 Yelp 域名
    • 受支持的 Yelp 評論語言
    • 沃爾瑪商店位置
  • 集成與使用
    • 瀏覽器集成
      • Proxy SwitchyOmega
      • BP Proxy Switcher
      • Brave Browser
    • 防檢測瀏覽器集成
      • AdsPower
      • BitBrowser(比特浏览器)
      • Hubstudio
      • Morelogin
      • Incogniton
      • ClonBrowser
      • Helium Scraper
      • ixBrowser
      • VMlogin
      • Antbrowser
      • Dolphin{anty}
      • lalimao(拉力猫指紋瀏覽器)
      • Gologin
    • 企業計划使用教程
      • 如何使用企業計劃CDKEY
  • 幫助
    • 使用問題
      • 客戶端提示:"please start the proxy first"
      • 客戶端登錄無反應
    • 退款政策
    • 聯絡我們
由 GitBook 提供支持
在本页
  • Google 視頻 API
  • API 詳情
  • 回應
  • 錯誤回應
  1. SERP API
  2. Google

Google 視頻 API

上一页Google 本地 API下一页Google 新聞 API

最后更新于6天前

Google 視頻 API

API 詳情

端點 GET https://serpapi.abcproxy.com/search

説明

我們的 Google視頻 API 允許您從 Google 視頻 頁面抓取結果。此 API 可透過以下端點存取:/search?engine=google_videos。

使用者可以使用 GET 請求查詢以下網址:https://serpapi.abcproxy.com/search?engine=google_videos。請前往 查看即時互動演示。


請求

HTTP 請求

curl -X GET "https://serpapi.abcproxy.com/search" \
  -d "engine=google_videos" \
  -d "q=Coffee" \
  -d "no_cache=false" \
  -d "api_key=YOUR_API_KEY"
import requests

params = {
    "engine": "google_videos",
    "q": "Coffee",
    "no_cache": "false",
    "api_key": "YOUR_API_KEY"
}
response = requests.get("https://serpapi.abcproxy.com/search", params=params)
print(response.json())
const axios = require('axios');

const params = {
  engine: "google_videos",
  q: "Coffee",
  no_cache: "false",
  api_key: "YOUR_API_KEY"
};

axios.get("https://serpapi.abcproxy.com/search", { params })
  .then(response => console.log(response.data));
GET /search?engine=google_videos&q=Coffee&no_cache=false&api_key=YOUR_API_KEY HTTP/1.1
Host: serpapi.abcproxy.com
<?php
$client = new \GuzzleHttp\Client();
$response = $client->get('https://serpapi.abcproxy.com/search', [
    'query' => [
        'engine' => 'google_videos',
        'q' => 'Coffee',
        'no_cache' => 'false',
        'api_key' => 'YOUR_API_KEY'
    ]
]);
echo $response->getBody();
package main

import (
    "net/http"
    "io/ioutil"
    "log"
)

func main() {
    client := &http.Client{}
    req, _ := http.NewRequest("GET", "https://serpapi.abcproxy.com/search", nil)
    
    q := req.URL.Query()
    q.Add("engine", "google_videos")
    q.Add("q", "Coffee")
    q.Add("no_cache", "false")
    q.Add("api_key", "YOUR_API_KEY")
    req.URL.RawQuery = q.Encode()

    resp, _ := client.Do(req)
    body, _ := ioutil.ReadAll(resp.Body)
    log.Println(string(body))
}
using System;
using System.Net.Http;

class Program
{
    static async Task Main()
    {
        var client = new HttpClient();
        var query = System.Web.HttpUtility.ParseQueryString(string.Empty);
        query["engine"] = "google_videos";
        query["q"] = "Coffee";
        query["no_cache"] = "false";
        query["api_key"] = "YOUR_API_KEY";
        
        var response = await client.GetAsync(
            $"https://serpapi.abcproxy.com/search?{query}"
        );
        Console.WriteLine(await response.Content.ReadAsStringAsync());
    }
}
import java.net.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {
        String url = "https://serpapi.abcproxy.com/search" +
            "?engine=google_videos" +
            "&q=Coffee" +
            "&no_cache=false" +
            "&api_key=YOUR_API_KEY";
        
        HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();
        conn.setRequestMethod("GET");
        
        BufferedReader in = new BufferedReader(
            new InputStreamReader(conn.getInputStream())
        );
        String response = in.lines().collect(Collectors.joining());
        System.out.println(response);
    }
}

API 參數

搜索查詢

名稱
類型
必填項
描述
範例

q

字符串

是

該參數定義您要搜索的查詢內容。您可以使用在常規Google 視頻搜索中使用的任何內容。例如 book、game。我們還支援高級搜索查詢參數,如 as_dt 和 as_eq。請參閱 完整列表 了解支援的高級搜索查詢參數。

coffee

地理位置

名稱
類型
必填項
描述
範例

location

字符串

否

Japan-Tokyo

uule

字符串

否

該參數是您要用於搜索的谷歌編碼位置。

-

語言地區

名稱
類型
必填項
描述
範例

google_domain

字符串

否

-

gl

字符串

否

Amgola-ao

hl

字符串

否

Akan-ak

lr

字符串

否

該參數定義限制搜索的一種或多種語言。它使用 lang_{雙字母語言代碼} 來指定語言,並使用 `

作為分隔符。(例如,lang_fr

高級篩選器

名稱
類型
必填項
描述
範例

tbs

字符串

否

(待搜索)該參數定義了常規查詢字段中無法實現的高級搜索參數。(例如,對專利、日期、新聞、視頻、圖像、應用程序或文本內容的高級搜索)

-

safe

字符串

否

該參數定義成人內容的過濾級別。它可以設置為 active 或 off,預設情況下,谷歌會模糊顯示明確內容。

Active 或 Off

nfpr

布爾值

否

當原始查詢拼寫錯誤時,該參數定義自動糾正從查詢中排除的結果

true 或 false

filter

布爾值

否

該參數定義“相似結果”和“省略結果”的篩選器是開啟還是關閉。它可以設置為 1(預設)以啟用這些篩選器,或設置為 0 以禁用這些篩選器

true 或 false

分頁

名稱
類型
必填項
描述
範例

start

數值

否

該參數定義結果偏移量。它會跳過指定數量的結果。用於分頁。(例如,0(預設)是第一頁結果,10 是第二頁結果,20 是第三頁結果,依此類推)。

0

num

數值

否

該參數定義要返回的最大結果數。(例如,10(預設)返回 10 個結果,40 返回 40 個結果,100 返回 100 個結果)。

10

SerpApi 參數

名稱
類型
必填項
描述
範例

engine

字符串

是

將參數設置為 google_videos 以使用谷歌視頻 API 引擎。

google_videos

no_cache

布爾值

否

該參數將強制 SerpApi 獲取谷歌視頻結果,即使已經存在緩存版本。只有當查詢和所有參數完全相同時,才會提供緩存。緩存 1 小時後過期。緩存搜索是免費的,不計入您每月的搜索次數。它可以設置為 false(預設)以允許使用緩存結果,或設置為 true 以禁止使用緩存結果。no_cache 和 async 參數不應同時使用。

true 或 false

api_key

字符串

是

該參數定義要使用的 SerpApi 私鑰。

YOUR_API_KEY


回應

成功 200

回應主體

{
  "code": 200,
  "search_metadata":
    {
        "google_url":"https://www.google.com/search?filter=0&q=coffee&udm=7",
        "raw_html_file":"https://webserp.abcproxy.com/files/dfea92b11ed6a437/3443f61c-77a5-4577-9c0b-13e964642ae1.html",
        "xray_html_file":"https://webserp.abcproxy.com/files/dfea92b11ed6a437/3443f61c-77a5-4577-9c0b-13e964642ae1.xray",
        "total_time_taken":"5.3540",
        "id":"3443f61c-77a5-4577-9c0b-13e964642ae1",
        "json_endpoint":"https://webserp.abcproxy.com/files/dfea92b11ed6a437/3443f61c-77a5-4577-9c0b-13e964642ae1.json",
        "created_at":"2025-04-02 16:41:51",
    },
  "search_parameters":
    {
        "engine":"google_videos",
        "q":"Coffee",
        "location_requested":"Austin, Texas, United States",
        "location_used":"Austin,Texas,United States",
        "google_domain":"google.com",
        "api_key":"YOUR_API_KEY",
        "hl":"en",
        "gl":"us",
    },
    "video_results":
    {
        "position":1,
        "displayed_link":"www.youtube.com › watch",
        "snippet":"I think all coffee geeks have to have hair that defies gravity. 13:57 Go to channel How a coffee champion actually brews at home",
        "thumbnail":"https://i.ytimg.com/vi/e747SIBmWPE/mqdefau....EFCJQBEFM&rs=AMzJL3lov-aVyHMSnF8kNeWtFYv19aZtbA",

        "link":"https://www.youtube.com/watch?v=e747SIBmWPE",
        "video_link":"#",
        "key_moments":
        [
            {
                "title":"Mindset",
                "time":"00:00",
                "link":"https://www.youtube.com/watch?v=e747SIBmWPE&t=0",
                "thumbnail":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSKBhatF_lT__NJ_x1LRa4K8sKCG_ipqcpHct6DLAz7Tw&s",
            },
            {
                "link":"https://www.youtube.com/watch?v=e747SIBmWPE&t=68",
                "thumbnail":"https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd....un9MdXzm7QITq-7jg&s",
                "title":"Kopi Luwak",
                "time":"01:08",
            },
            ......
        ],
            ......
     },
  }
}

響應字段

名稱
類型
備註

search_metadata

對象

包含 計時 和 狀態資訊

search_parameters

對象

包含查詢 參數 和 搜索上下文

video_results

對象數組

視頻 結果區域

related_searches

對象數組

用戶還搜索 - 區域

錯誤回應

常見錯誤

HTTP 狀態
錯誤代碼
描述

200

400

API 私鑰不能為空

200

401

參數錯誤

200

402

API 私鑰錯誤

200

403

餘額不足

200

404

扣費失敗

200

405

記錄使用次數失敗

200

406

不支援的引擎

200

407

網路錯誤

200

408

檔案未找到

200

409

限制參數錯誤

200

410

構建 URL 錯誤

200

411

查詢最近記錄失敗

200

412

未找到 JSON 檔案

200

413

獲取 HTML 錯誤

200

414

HTML 為空

200

429

請求過多

錯誤範例

{
  "code": 400,
  "message": "API Key can not be empty"
}

該參數定義搜索的發起位置。如果有多個位置與請求的位置匹配,我們將選擇最受歡迎的一個。如果您需要更精確的控制,請訪問 。location 和 uule 參數不能同時使用。建議在城市級別指定位置,以模擬真實用戶的搜索。如果省略位置,搜索可能會採用代理的位置。

該參數定義要使用的谷歌域名。預設為 google.com。請訪問 查看支持的谷歌域名的完整列表。

該參數定義用於谷歌搜索的國家。它是一個雙字母國家代碼。(例如,us 代表美國,uk 代表英國,fr 代表法國)。請訪問 查看支持的谷歌國家的完整列表。

該參數定義用於谷歌搜索的語言。它是一個雙字母語言代碼。(例如,en 代表英語,es 代表西班牙語,fr 代表法語)。請訪問 查看支持的谷歌語言的完整列表。

工作臺
/locations.json API
谷歌域名頁面
谷歌國家頁面
谷歌語言頁面