Google Finance API
Google Finance에서 실시간 시장 데이터, 가격 요약, 관련 금융 뉴스를 조회합니다. engine=google_finance를 설정하고 q에 티커를 전달하세요 (예: GOOG:NASDAQ).
Endpoint
섹션 제목: “Endpoint” GET https://serp.shifter.io/v1?engine=google_finance&api_key=YOUR_API_KEY
Parameters
섹션 제목: “Parameters”| Parameter | Type | Required | Description |
|---|---|---|---|
api_key | string | yes | 사용자의 SERP API 키 |
engine | string | yes | google_finance여야 함 |
q | string | yes | 거래소를 포함한 티커 심볼, 예: GOOG:NASDAQ |
device | string | no | desktop, mobile, 또는 tablet |
hl | string | no | 인터페이스 언어 코드 |
Example request
섹션 제목: “Example request”curl "https://serp.shifter.io/v1?engine=google_finance&api_key=YOUR_API_KEY&q=GOOG:NASDAQ"import requests
params = { "engine": "google_finance", "api_key": "YOUR_API_KEY", "q": "GOOG:NASDAQ",}r = requests.get("https://serp.shifter.io/v1", params=params)data = r.json()import fetch from 'node-fetch';
const url = 'https://serp.shifter.io/v1?' + new URLSearchParams({ engine: 'google_finance', api_key: 'YOUR_API_KEY', q: 'GOOG:NASDAQ',});const data = await (await fetch(url)).json();Example response
섹션 제목: “Example response”{ "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" } ]}