Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Yahoo Finance Historical Data

API दस्तावेज़
https://api.sandbase.ai/v1/api/yahoo-finance/historical-data

Extract historical OHLCV price data for a single ticker over a configurable date range and interval. Returns timestamped records suitable for charting and technical analysis.

मूल्य
$0.05USD / कॉल
मेथड
POST
प्रतिक्रिया
Async JSON
पैरामीटर
1 आवश्यक · 2 वैकल्पिक

प्लेग्राउंड

इनपुट
Stock ticker symbol (e.g., AAPL).
Date range for historical data.
Data interval granularity.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Yahoo Finance Historical Data

Returns historical price records for one stock ticker on Yahoo Finance. Each record has open, high, low, close and volume values with a timestamp. The only required input is symbol, and you can set range and interval to change the window and spacing.

Use cases

  • Plot a candlestick chart for AAPL from the returned open, high, low and close values.
  • Compute moving averages or other technical indicators over the closing price series.
  • Compare trading volume across days to spot unusually active sessions.
  • Export daily price history for a ticker into a spreadsheet or backtesting tool.

Request

curl -X POST "https://api.sandbase.ai/v1/api/yahoo-finance/historical-data" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"symbol": "AAPL"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
symbolstringYesStock ticker symbol (e.g., AAPL).
intervalstringNoData interval granularity.
rangestringNoDate range for historical data.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "currency": "USD",
    "history": [
      {
        "close": 269.04998779296875,
        "high": 270.8500061035156,
        "low": 266.25,
        "open": 270.4200134277344,
        "timestamp": 1762180200,
        "volume": 50194600
      }
    ],
    "symbol": "AAPL"
  },
  "status": "success"
}

Response fields

FieldMeaning
data.symbolThe ticker symbol the history belongs to, such as AAPL.
data.currencyThe currency code of the price values, such as USD.
data.history[]One price record per interval, listed in order from oldest to newest.
data.history[].timestampThe start time of the record as a Unix timestamp in seconds.
data.history[].open / data.history[].closeThe first and last price of the interval.
data.history[].high / data.history[].lowThe highest and lowest price reached during the interval.
data.history[].volumeThe number of shares traded during the interval.
statusShows success when the request worked.

Notes

  • symbol is the stock ticker. If you do not know it, use Yahoo Finance Search Tickers to find it.
  • timestamp values are Unix seconds. Convert them to dates before charting.
  • Price values are floats with many decimal places. Round them for display.
  • For the latest price instead of a series, call Yahoo Finance Quote.

Pricing

$0.05 per successful call. Failed calls are not charged.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Yahoo Finance$0.05 प्रति कॉलअसिंक्रोनस JSON
Yahoo Finance$0.00099 प्रति कॉल सेJSON
Yahoo Finance$0.05 प्रति कॉलअसिंक्रोनस JSON
Yahoo Finance$0.00099 प्रति कॉल सेJSON
Yahoo Finance$0.05 प्रति कॉलअसिंक्रोनस JSON
Yahoo Finance$0.05 प्रति कॉलअसिंक्रोनस JSON

प्रश्न

FAQ

Yahoo Finance Historical Data API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/yahoo-finance/historical-data पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Yahoo Finance Historical Data API की लागत कितनी है?

$0.05 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Yahoo Finance Historical Data API कौन-से parameters स्वीकार करती है?

आवश्यक: symbol (string)। वैकल्पिक: range (string) और interval (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Yahoo Finance Historical Data API क्या लौटाती है?

एक JSON result। यह endpoint asynchronously चलता है, इसलिए response आपको बताता है कि तैयार result कैसे प्राप्त करना है। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Yahoo Finance developer account या API key चाहिए?

नहीं। Yahoo Finance Historical Data SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Yahoo Finance API access के लिए आवेदन करने की आवश्यकता नहीं है।