A powerful API for accessing real-time stock data, historical prices, and market information
Access live stock quotes and market data with millisecond precision
Get detailed historical price data with customizable date ranges
Find stocks by symbol or company name across global markets
This API endpoint fetches historical stock data from Yahoo Finance.
/api/stock/history
Parameter | Required | Description |
---|---|---|
symbol | ✅ | Stock symbol (e.g., BBRI.JK, TSLA) |
period1 | optional | Start date (YYYY-MM-DD) |
period2 | optional | End date (YYYY-MM-DD, defaults to today) |
interval | optional | Data interval (1d, 1wk, 1mo), default is 1d |
limit | optional | Limit number of results |
GET /api/stock/history?symbol=AAPL&period1=2023-01-01&period2=2023-04-01&interval=1d&limit=10
[
{
"date": "2023-01-01",
"open": 150.0,
"high": 155.0,
"low": 149.0,
"close": 154.0,
"volume": 1000000,
"adjClose": 154.0
},
...
]
This API uses yahoo-finance2 under the hood.
This API endpoint fetches real-time stock quote data from Yahoo Finance.
/api/stock/quote
Parameter | Required | Description |
---|---|---|
symbol | ✅ | Stock symbol (e.g., BBRI.JK, AAPL, TSLA) |
GET /api/stock/quote?symbol=BBRI.JK
{
"symbol": "BBRI.JK",
"regularMarketPrice": 3850,
"regularMarketChange": 0,
"regularMarketChangePercent": 0,
"regularMarketVolume": 226832200,
"regularMarketOpen": 3810,
"marketCap": 579998624776192,
"shortName": "Bank Rakyat Indonesia (Persero)",
"longName": "PT Bank Rakyat Indonesia (Persero) Tbk",
"currency": "IDR",
"regularMarketTime": "2025-04-30T09:14:53.000Z",
"firstTradeDateMilliseconds": "2003-11-10T02:00:00.000Z",
"trailingAnnualDividendYield": 0.089194804,
"trailingAnnualDividendRate": 343.4,
"trailingPE": 9.65251,
"forwardPE": 8.746223,
"fiftyTwoWeekHigh": 5575,
"fiftyTwoWeekLow": 3360,
"priceToBook": 1.8963267,
"epsTrailingTwelveMonths": 398.86,
"epsForward": 440.19,
"epsCurrentYear": 385.72382,
"priceEpsCurrentYear": 9.981235,
"sharesOutstanding": 150648995840,
"previousClose": 3850,
"dayHigh": 3850,
"dayLow": 3770,
"averageDailyVolume3Month": 322963767,
"averageDailyVolume10Day": 205188250,
"bookValue": 2030.241,
"customPriceAlertConfidence": "LOW",
"fiftyTwoWeekHighChangePercent": -0.30941704,
"fiftyTwoWeekHighChange": -1725,
"fiftyTwoWeekLowChangePercent": 0.14583333,
"fiftyTwoWeekLowChange": 490,
"ask": 3850,
"bid": 3840
}
This API uses yahoo-finance2 under the hood.
This API endpoint searches for stock information based on the provided query.
/api/stock/search
Parameter | Required | Description |
---|---|---|
query | ✅ | Stock symbol or company name (e.g., BBRI.JK, Bank Rakyat Indonesia) |
GET /api/stock/search?query=BBRI.JK
[
{
"symbol": "BBRI.JK",
"exchDisp": "Jakarta",
"exchange": "JKT",
"shortname": "Bank Rakyat Indonesia (Persero)",
"longname": "PT Bank Rakyat Indonesia (Persero) Tbk",
"typeDisp": "Equity",
"quoteType": "EQUITY",
"score": 10026000
},
...
]
This API uses yahoo-finance2 under the hood.