qstringआवश्यक
Parameter defines the query you want to search. It can be a stock, index, mutual fund, currency or futures. Head to the Google Finance Autocomplete API to find the query for a company name or a keyword.
https://api.sandbase.ai/v1/api/google/financeGet a Google Finance quote page for a ticker such as GOOGL:NASDAQ: price, movement, key stats, financials, news and price graph over a chosen window.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Get a Google Finance quote page for a ticker such as GOOGL:NASDAQ: price, movement, key stats, financials, news and price graph over a chosen window.
curl -X POST "https://api.sandbase.ai/v1/api/google/finance" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "GOOGL:NASDAQ"}'
The result is returned in outputs[0].data as structured JSON.
| Name | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Parameter defines the query you want to search. It can be a stock, index, mutual fund, currency or futures. Head to the Google Finance Autocomplete API to find the query for a company name or a keyword. |
hl | string | No | Parameter defines the language to use for the Google Finance search. It's a two or three-letter language code. (e.g., en for English, es for Spanish, or fr for French), optionally followed by a two-letter or three-digit region code (e |
window | string | No | Parameter is used for setting time range for the graph. It can be set to: 1D - 1 Day(default) 5D - 5 Days 1M - 1 Month 6M - 6 Months YTD - Year to Date 1Y - 1 Year 5Y - 5 Years MAX - Maximum |
json_restrictor | string | No | Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details. |
$0.010 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/google/finance" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "GOOGL:NASDAQ"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
qstringआवश्यकParameter defines the query you want to search. It can be a stock, index, mutual fund, currency or futures. Head to the Google Finance Autocomplete API to find the query for a company name or a keyword.
hlstringParameter defines the language to use for the Google Finance search. It's a two or three-letter language code. (e.g., `en` for English, `es` for Spanish, or `fr` for French), optionally followed by a two-letter or three-digit region code (e.g., `en-gb` for British English, or `es-419` for Latin American Spanish). Head to the Google languages page for a full list of supported Google languages.
windowstringParameter is used for setting time range for the graph. It can be set to: `1D` - 1 Day(default) `5D` - 5 Days `1M` - 1 Month `6M` - 6 Months `YTD` - Year to Date `1Y` - 1 Year `5Y` - 5 Years `MAX` - Maximum
json_restrictorstringParameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
Google Financeयह API Google | $0.01 प्रति कॉल | JSON |
Google | $0.01 प्रति कॉल | JSON |
Google | $0.015 प्रति कॉल | JSON |
Google | $0.002 प्रति कॉल से | JSON |
Google | $0.0015 प्रति कॉल से | JSON |
Google | $0.01 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/google/finance पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.01 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: q (string)। वैकल्पिक: hl (string), window (string) और json_restrictor (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)।
नहीं। Google Finance SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Google API access के लिए आवेदन करने की आवश्यकता नहीं है।