Historical Data
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.
Request Params
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 |
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","date":"2024-03-05T00:00:00+0000"},{"open":176.15,"high":176.9,"low":173.79,"close":175.1,"volume":81510100,"adj_high":176.9,"adj_low":173.79,"adj_close":175.1,"adj_open":176.15,"adj_volume":81510101,"split_factor":1,"dividend":0,"symbol":"AAPL","exchange":"XNAS","date":"2024-03-04T00:00:00+0000"},{"open":179.55,"high":180.53,"low":177.38,"close":179.66,"volume":73488000,"adj_high":180.53,"adj_low":177.38,"adj_close":179.66,"adj_open":179.55,"adj_volume":73563082,"split_factor":1,"dividend":0,"symbol":"AAPL","exchange":"XNAS","date":"2024-03-01T00:00:00+0000"},{"open":181.27,"high":182.57,"low":179.53,"close":180.75,"volume":136682600,"adj_high":182.57,"adj_low":179.53,"adj_close":180.75,"adj_open":181.27,"adj_volume":136682597,"split_factor":1,"dividend":0,"symbol":"AAPL","exchange":"XNAS","date":"2024-02-29T00:00:00+0000"},{"open":182.51,"high":183.12,"low":180.13,"close":181.42,"volume":48953900,"adj_high":183.12,"adj_low":180.13,"adj_close":181.42,"adj_open":182.51,"adj_volume":48953939,"split_factor":1,"dividend":0,"symbol":"AAPL","exchange":"XNAS","date":"2024-02-28T00:00:00+0000"},{"open":181.1,"high":183.92,"low":179.56,"close":182.63,"volume":54318900,"adj_high":183.9225,"adj_low":179.56,"adj_close":182.63,"adj_open":181.1,"adj_volume":54318851,"split_factor":1,"dividend":0,"symbol":"AAPL","exchange":"XNAS","date":"2024-02-27T00:00:00+0000"},{"open":182.24,"high":182.76,"low":180.65,"close":181.16,"volume":40867400,"adj_high":182.76,"adj_low":180.65,"adj_close":181.16,"adj_open":182.24,"adj_volume":40867421,"split_factor":1,"dividend":0,"symbol":"AAPL","exchange":"XNAS","date":"2024-02-26T00:00:00+0000"}]}