Skip to content
登录 注册

Google Finance API

从 Google Finance 获取实时市场数据、价格摘要和相关财经新闻。设置 engine=google_finance,并在 q 中传入股票代码(例如 GOOG:NASDAQ)。

GET https://serp.shifter.io/v1?engine=google_finance&api_key=YOUR_API_KEY
ParameterTypeRequiredDescription
api_keystringyes您的 SERP API 密钥
enginestringyes必须为 google_finance
qstringyes带交易所的股票代码,例如 GOOG:NASDAQ
devicestringnodesktopmobiletablet
hlstringno界面语言代码
Terminal window
curl "https://serp.shifter.io/v1?engine=google_finance&api_key=YOUR_API_KEY&q=GOOG:NASDAQ"
{
"search_parameters": {
"engine": "google_finance",
"q": "GOOG:NASDAQ"
},
"summary": {
"title": "Alphabet Inc Class C",
"stock": "GOOG",
"exchange": "NASDAQ",
"price": "$142.65",
"currency": "USD",
"extracted_price": 142.65,
"price_movement": {
"percentage": 1.23,
"movement": "Up"
}
},
"graph": [
{ "price": 141.12, "currency": "USD", "date": "Jan 1, 2024" }
],
"news_results": [
{ "title": "Alphabet posts strong earnings", "source": "Reuters" }
]
}