GET https://api.marketstack.com/v1/eod?symbols=AAPL&date_from=2024-02-26&date_to=2024-03-07
Historical stock prices are available both from the end-of-day (eod) and intraday (intraday) API endpoints. To obtain historical data, simply use the datefrom and dateto parameters as shown in the example request below.
Body
PARAM
Key | Datatype | Required | Description |
symbols
|
string | [Required] Specify one or multiple comma-separated stock symbols (tickers) for your request, e.g. AAPL or AAPL,MSFT. Each symbol consumes one API request. Maximum: 100 symbols. | |
date_from
|
string | [Required] Specify since which date you want data from | |
date_to
|
string | [Required] Specify up to which date you want data |
HEADERS
Key | Datatype | Required | Description |
RESPONSES
status OK
{
"pagination": {
"limit": 100,
"offset": 0,
"count": 9,
"total": 9
},
"data": [
{
"open": 169.15,
"high": 170.73,
"low": 168.49,
"close": 169,
"volume": 71765100,
"adj_high": 170.73,
"adj_low": 168.49,
"adj_close": 169,
"adj_open": 169.15,
"adj_volume": 71765061,
"split_factor": 1,
"dividend": 0,
"symbol": "AAPL",
"exchange": "XNAS",
"date": "2024-03-07T00:00:00+0000"
},
{
"open": 171.06,
"high": 171.24,
"low": 168.68,
"close": 169.12,
"volume": 68587700,
"adj_high": 171.24,
"adj_low": 168.68,
"adj_close": 169.12,
"adj_open": 171.06,
"adj_volume": 68587707,
"split_factor": 1,
"dividend": 0,
"symbol": "AAPL",
"exchange": "XNAS",
"date": "2024-03-06T00:00:00+0000"
},
{
"open": 170.76,
"high": 172.04,
"low": 169.62,
"close": 170.12,
"volume": 95132400,
"adj_high": 172.04,
"adj_low": 169.62,
"adj_close": 170.12,
"adj_open": 170.76,
"adj_volume": 95132355,
"split_factor": 1,
"dividend": 0,
"symbol": "AAPL",
"exchange": "XNAS" Curl curl -X GET 'https://api.marketstack.com/v1/eod?symbols=AAPL&date_from=2024-02-26&date_to=2024-03-07?symbols=AAPL&date_from=2024-02-26&date_to=2024-03-07' ENDPOINTS |