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 提供支持
在本页
  • API 詳情
  • 請求方式
  • 回應
  • 錯誤回應
  1. SERP API
  2. Google

Google財經 API

上一页Google學者簡介API下一页Google財經市場 API

API 詳情

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

說明

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

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


請求方式

HTTP 請求

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

params = {
    "engine": "google_finance",
    "q": "GOOGL:NASDAQ",
    "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_finance",
  q: "GOOGL:NASDAQ",
  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_finance&q=GOOGL:NASDAQ&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_finance',
        'q' => 'GOOGL:NASDAQ',
        '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_finance")
    q.Add("q", "GOOGL:NASDAQ")
    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_finance";
        query["q"] = "GOOGL:NASDAQ";
        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_finance" +
            "&q=GOOGL:NASDAQ" +
            "&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

字符串

是

此參數定義您想搜尋的查詢內容。可以是股票、指數、共同基金、貨幣或期貨。

GOOGL:NASDAQ

語言地區

名稱
類型
必填
說明
範例

hl

字符串

否

此參數定義 Google財經 搜尋所使用的語言。為兩位語言代碼(如英文為 en、西班牙文為 es、法文為 fr)。請參考 Google 語言頁面以取得完整支援語言清單。

en

分頁設定

名稱
類型
必填
說明
範例

start

數值

否

此參數定義結果的偏移值。會略過指定數量的結果,用於分頁。(例如:0(預設)是第一頁,20 是第二頁,40 是第三頁,以此類推)

20

num

數值

否

此參數定義要返回的結果數量。(例如:20(預設)返回 20 筆結果,40 返回 40 筆結果等)。最多可返回 100 筆結果。

20

進階 Google Finance 參數

名稱
類型
必填
說明
範例

window

字符串

否

此參數用於設定圖表的時間範圍,可設定為: 1D - 1 天(預設) 5D - 5 天 1M - 1 個月 6M - 6 個月 YTD - 年初至今 1Y - 1 年 5Y - 5 年 MAX - 最長時間

-

Serpapi 參數

名稱
類型
必填
說明
範例

engine

字符串

是

將此參數設為 google_finance 以使用 Google Finance API 引擎。

google_finance

no_cache

布林值

否

此參數會強制 SerpApi 即使已有快取版本仍重新抓取資料。僅當查詢與所有參數完全一致時才使用快取。快取於 1 小時後過期。使用快取的查詢不計入每月配額。可設為 false(預設,允許快取)或 true(不允許快取)。

true 或 false

api_key

字符串

是

此參數定義所使用的 SerpApi 私密金鑰。

123


回應

成功 200

回應內容

{
  "search_parameters": {
    "q": "GOOGL:NASDAQ",
    "engine": "google_finance",
    "no_cache": true,
    "api_key": "YOUR_API_KEY"
  },
  "markets": {
    "market": {
      "US": [
        {
          "price": "41,989.96",
          "price_movement": {
            "percentage": "Down by 0.028%",
            "value": "-11.80"
          },
          "link": "https://www.google.com/finance./quote/.DJI:INDEXDJX",
          "name": "Dow Jones"
        },
      ]
    }
  },
  "search_metadata": {
    "id": "a26dd8b2-ed41-4f55-af62-e70d2be70777",
    "json_endpoint": "https://webserp.abcproxy.com/files/c45e4a00ff6768b7/a26dd8b2-ed41-4f55-af62-e70d2be70777.json",
    "created_at": "2025-04-02 17:49:42",
    "google_finance_url": "https://www.google.com/finance/quote/GOOGL:NASDAQ?q=GOOGL%3ANASDAQ",
    "raw_html_file": "https://webserp.abcproxy.com/files/c45e4a00ff6768b7/a26dd8b2-ed41-4f55-af62-e70d2be70777.html",
    "xray_html_file": "https://webserp.abcproxy.com/files/c45e4a00ff6768b7/a26dd8b2-ed41-4f55-af62-e70d2be70777.xray",
    "total_time_taken": "7.0945"
  },
  "summary": {
    "percentage": "Up by 1.57%",
    "value": "+2.43 Today",
    "market": {
      "trading": "Pre-market:$156.81(0.17%)-0.26",
      "price": "$156.81",
      "percentage": "0.17%",
      "value": "-0.26"
    },
    "extensions": [
      "Closed: Apr 2, 5:42:50 AM GMT-4",
      "USD",
      "NASDAQ",
      "Disclaimer"
    ],
    "title": "Alphabet Inc Class A",
    "stock": "HomeGOOGL • NASDAQ",
    "price": "$157.07"
  },
  "compare_to": [
    {
      "change": "GOOG",
      "title": "Alphabet Inc Class C",
      "price": "$158.88",
      "label": "1.70%"
    },
  ],
  "news_results": [
    {
      "link": "https://nypost.com/2025/03/31/business/alphabets-isomorphic-labs-raises-600m-for-ai-drug-business/",
      "snippet": "Alphabet’s Isomorphic Labs raises $600M in first funding round for AI drug \nbusiness",
      "source": "New York Post",
      "date": "1 day ago",
      "thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcQYM_wdwUm4iX4rL_UnsnbMNw6jiih1y-1ICbIArXUMUWOr50jMs-b7nGiQ_qQ"
    },
    {
      "snippet": "Alphabet Stock Flirts With a Bottom: Here’s What Michael Morris Predicts \nAhead",
      "source": "TipRanks",
      "date": "1 day ago",
      "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQKJbGBj4tYScspnHfnQmqW-dqu2x_-_98hlSS6gqxl4CyeAb9FCO7_m4TV1zM",
      "link": "https://www.tipranks.com/news/alphabet-stock-flirts-with-a-bottom-heres-what-michael-morris-predicts-ahead"
    },
    {
      "link": "https://markets.businessinsider.com/news/stocks/aapl-googl-nvda-hedge-funds-dump-tech-stocks-at-fastest-pace-in-six-months-1034534444",
      "snippet": "AAPL, GOOGL, NVDA: Hedge Funds Dump Tech Stocks at Fastest Pace in Six \nMonths",
      "source": "markets.businessinsider.com",
      "date": "1 day ago",
      "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQeqNVjfPSJmbH3hp6kVox1rhp6P2joiYLmVqeqECTvuuElIVt2_8PYbgaDF2I"
    },
    {
      "date": "1 day ago",
      "thumbnail": "https://encrypted-tbn1.gstatic.com/images?q=tbn:ANd9GcT-VDuG-PpHU7rDPJlNuNTTwre0_D1CI8902_fsrSMaFvkCJYpJJqP1T52xedM",
      "snippet": "We are exiting a Magnificent 7 stock for a gain of more than 100% — here's \nwhy",
      "source": "CNBC"
    },
    {
      "snippet": "Google CEO Sundar Pichai to employees on company’s largest acquisition \never: We don't make deals like thi",
      "source": "Times of India",
      "date": "1 week ago"
    }
  ],
  "discover_more": {
    "items": [
      {
        "results": [
          {
            "stock": ".DJI:INDEXDJX",
            "link": "https://www.google.com/finance/quote/.DJI:INDEXDJX",
            "name": "Dow Jones Industrial Average",
            "price": "41,989.96",
            "percentage": "Down by 0.028%"
          },
        ],
        "title": "You may be interested in"
      },
      {
        "title": "People also search for",
        "results": [
          {
            "stock": "GOOG:NASDAQ",
            "link": "https://www.google.com/finance/quote/GOOG:NASDAQ",
            "name": "Alphabet Inc Class C",
            "price": "$158.88",
            "percentage": "Up by 1.70%"
          },
      }
    ]
  },
  "financials": [
    {
      "title": "Income Statement",
      "date": "Dec 2024",
      "period_type": "Quarterly",
      "table": [
        {
          "title": "Revenue",
          "description": "The total amount of income generated by the sale of goods or services related to the company's primary operations",
          "value": "96.47B",
          "change": "11.77%"
        },
      ]
    },
    {
      "date": "Dec 2024",
      "period_type": "Quarterly",
      "table": [
        {
          "title": "Cash and short-term investments",
          "description": "Investments that are relatively liquid and have maturities between 3  months and one year",
          "value": "95.66B",
          "change": "-13.76%"
        },
      ],
      "title": "Balance Sheet"
    },
    {
      "title": "Cash Flow",
      "date": "Dec 2024",
      "period_type": "Quarterly",
      "table": [
        {
          "value": "26.54B",
          "change": "28.27%",
          "title": "Net income",
          "description": "Company’s earnings for a period net of operating costs, taxes, and interest"
        },
      ]
    }
  ],
  "knowledge_graph": {
    "about": {
      "title": "About",
      "description": {
        "link": "https://en.wikipedia.org/wiki/Alphabet_Inc.",
        "link_text": "Wikipedia",
        "snippet": "Alphabet Inc. is an American multinational technology conglomerate holding company headquartered in Mountain View, California. Alphabet is the world's third-largest technology company by revenue, after Amazon and Apple, and one of the world's most valuable companies. It was created through a restructuring of Google on October 2, 2015, and became the parent holding company of Google and several former Google subsidiaries. It is considered one of the Big Five American information technology companies, alongside Amazon, Apple, Meta, and Microsoft.\nThe establishment of Alphabet Inc. was prompted by a desire to make the core Google business \"cleaner and more accountable\" while allowing greater autonomy to group companies that operate in businesses other than Internet services. Founders Larry Page and Sergey Brin announced their resignation from their executive posts in December 2019, with the CEO role to be filled by Sundar Pichai, who is also the CEO of Google. Page and Brin remain employees, board members, and controlling shareholders of Alphabet Inc. Wikipedia"
      },
      "info": [
        {
          "label": "CEO",
          "value": "Sundar Pichai",
          "link": "https://www.google.com/search?q=Sundar%20Pichai&hl=en-US"
        },
      ]
    },
    "tags": [
      {
        "title": "Stock",
        "link": "https://www.google.com/finance",
        "description": "Ownership of a fraction of a corporation and the right to claim a share of the corporation's assets and profits equal to the amount of stock owned"
      },
    ],
    "stats": [
      {
        "description": "The last closing price",
        "label": "Previous close",
        "value": "$154.64"
      },
    ]
  },
  "url": "https://www.google.com/finance/quote/GOOGL:NASDAQ?q=GOOGL%3ANASDAQ"
}

回應欄位

欄位名稱
類型
說明

search_parameters

對象

包含查詢參數與搜尋上下文資料

search_metadata

對象

包含時間與狀態相關的資訊

url

字符串

網址

markets

對象

市場資訊

summary

字符串

摘要資訊參數

compare_to[]

對象数组

比較資訊參數

market_trends[]

對象数组

市場趨勢資訊參數

news_results[]

對象数组

新聞結果資訊參數

discover_more

對象

更多探索資訊參數

financials

對象

財務資訊參數

graph

對象

圖表資訊參數

knowledge_graph

對象

知識圖譜資訊參數


錯誤回應

常見錯誤

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"
}

工作臺