{"id":7,"date":"2024-04-20T14:22:00","date_gmt":"2024-04-20T12:22:00","guid":{"rendered":"https:\/\/eodhd.com\/api\/?p=7"},"modified":"2025-09-20T00:01:11","modified_gmt":"2025-09-19T22:01:11","slug":"api-for-historical-data-and-volumes","status":"publish","type":"post","link":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes","title":{"rendered":"End-Of-Day Historical Stock Market Data API"},"content":{"rendered":"\n<p>With End-of-Day data API, we have data for more than 150 000 tickers all around the world. We cover all US stocks, ETFs, and Mutual Funds (more than 51 000 in total) <strong>from the beginning<\/strong>, for example, the Ford Motors data is from Jun 1972 and so on. And non-US stock exchanges we cover mostly from Jan 3, 2000. We do provide daily, weekly and monthly data raw and adjusted to splits and dividends.<\/p>\n\n\n\n<p><strong>Note.<\/strong> Free plan gives access to 1 year of historical depth for EOD data only.<\/p>\n\n\n\n\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-quick-start\">Quick Start<\/h2>\n\n\n\n\n    <div class=\"testDrive\">\n        <div class=\"testDrive__h\">\n            <svg width=\"24\" height=\"24\" \" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                <use xlink:href=\"\/img\/icons\/blueIcon_sprite.svg#lightning\"><\/use>\n            <\/svg>\n            Test Drive with \"DEMO\" Key\n        <\/div>\n        <ol>\n            <li>\n                You can start with \u201c<strong>DEMO<\/strong>\u201d API key to test the data for a few tickers only: \n                <a href=\"\/financial-summary\/AAPL.US\" target=\"_blank\">AAPL.US<\/a>,\n                <a href=\"\/financial-summary\/TSLA.US\" target=\"_blank\">TSLA.US<\/a>,\n                <a href=\"\/financial-summary\/VTI.US\" target=\"_blank\">VTI.US<\/a>, \n                <a href=\"\/financial-summary\/AMZN.US\" target=\"_blank\">AMZN.US<\/a>, \n                <a href=\"\/financial-summary\/BTC-USD.CC\" target=\"_blank\">BTC-USD.CC<\/a>\n                and\n                <a href=\"\/financial-summary\/EURUSD.FOREX\" target=\"_blank\">EURUSD.FOREX<\/a>.\n                For these tickers,\n                <a href=\"\/financial-apis\/\">all of our types of data (APIs)<\/a>,\n                including\n                <a href=\"\/financial-apis\/new-real-time-data-api-websockets\/\" target=\"_blank\">Real-Time Data<\/a>,\n                are available without limitations.\n            <\/li>\n            <li>\n                Register <strong>for the free plan<\/strong> to receive your API key (limited to 20 API calls per day) with access to\n                <a href=\"\/financial-apis\/api-for-historical-data-and-volumes\/\" target=\"_blank\">End-Of-Day Historical Stock Market Data API<\/a>\n                for any ticker, but within the past year only. Plus a \n                <a href=\"\/financial-apis\/exchanges-api-list-of-tickers-and-trading-hours\/#Get_List_of_Tickers_Exchange_Symbols\" target=\"_blank\">List of tickers per Exchange<\/a>\n                is available.\n            <\/li>\n            <li>\n                We recommend to explore\n                <a href=\"\/pricing\">our plans<\/a>,\n                <strong>starting from $19.99<\/strong>, to access the necessary type of data without limitations.\n            <\/li>\n        <\/ol>\n    <\/div>\n\n\n\n\n<p>To get historical stock price data use the following URL:<\/p>\n\n\n\n\n    <div class=\"api_url_box\" data-feed=\"EOD Historical Data\">\n                    <div class=\"tabs\">\n                                    <div class=\"selected\">URL<\/div>\n                                    <div class=\"\">cURL<\/div>\n                                    <div class=\"\">PHP<\/div>\n                                    <div class=\"\">Python<\/div>\n                                    <div class=\"\">R<\/div>\n                                <div>Chat GPT<\/div>\n            <\/div>\n                <div class=\"tab_content\">\n                                            <div class=\"item selected\">\n                    <div class=\"buttons\">\n                                                    <button\n                                class=\"view\"\n                                title=\"View request in new tab\"\n                                onclick=\"gtag('event', 'ViewApiRequest', {'event_category':'TrialApiData'});\"\n                            >\n                                <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                    <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                                <\/svg>\n                            <\/button>\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">curl --location \"https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json\"<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => 'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json',\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => '',\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 0,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => 'GET',\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo 'Error. '.$e->getMessage();\n}<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nimport requests\n\nurl = f'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json'\ndata = requests.get(url).json()\n\nprint(data)<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nlibrary(httr)\nlibrary(jsonlite)\n\nurl <- 'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json'\nresponse <- GET(url)\n\nif (http_type(response) == \"application\/json\") {\n    content <- content(response, \"text\", encoding = \"UTF-8\")\n    cat(content)\n} else {\n    cat(\"Error while receiving data\\n\")\n}<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                        <div class=\"item replace-deny\">\n                <div class=\"buttons\">\n                    <a\n                        class=\"view\"\n                        title=\"View request in new tab\"\n                        href=\"\/lp\/eodhd-chatgpt\"\n                        target=\"_blank\"\n                    >\n                        <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                        <\/svg>\n                    <\/a>\n                <\/div>\n                <div class=\"api_url_text bold\" style=\"word-break: normal;white-space: normal;\">\n                    New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                    Simply describe how you want to use our data, and get a working piece of code.\n                    Don\u2019t forget to replace the API token with your own.<br><br>\n                    <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                    <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                        How to use it (YouTube)\n                    <\/a>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    \n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>MCD.US<\/strong> consists of two parts: {SYMBOL_NAME}.{EXCHANGE_ID}, then you can use, for example, MCD.MX for Mexican Stock Exchange. or MCD.US for NYSE.<\/li>\n\n\n\n<li><strong>api_token<\/strong> &#8211; your own API KEY, which you will get after you subscribe to our services.<\/li>\n\n\n\n<li><strong>fmt<\/strong> &#8211; the output format. Possible values are &#8216;csv&#8217; for CSV output and &#8216;json&#8217; for JSON output. Default value: &#8216;csv&#8217;.<\/li>\n\n\n\n<li><strong>period<\/strong> &#8211; use &#8216;d&#8217; for daily, &#8216;w&#8217; for weekly, &#8216;m&#8217; for monthly prices. By default, daily prices will be shown. Data aggregated weekly and monthly also shows weekly and monthly volume.<\/li>\n\n\n\n<li><strong>order<\/strong> &#8211; use &#8216;a&#8217; for ascending dates (from old to new), &#8216;d&#8217; for descending dates (from new to old). By default, dates are shown in ascending order.<\/li>\n\n\n\n<li><strong>from<\/strong> and <strong>to<\/strong> &#8211; the format is \u2018YYYY-MM-DD\u2019. If you need data from Jan 5, 2017, to Feb 10, 2017, you should use <strong>from=2017-01-05<\/strong> and <strong>to=2017-02-10<\/strong>.<\/li>\n<\/ul>\n\n\n\n<p>For testing purposes, you can try the following API Key (works only for MCD.US ticker): <strong>&nbsp;demo<\/strong><\/p>\n\n\n\n\n    <div class=\"api_url_box\" data-feed=\"EOD Historical Data\">\n                    <div class=\"tabs\">\n                                    <div class=\"selected\">URL<\/div>\n                                    <div class=\"\">cURL<\/div>\n                                    <div class=\"\">PHP<\/div>\n                                    <div class=\"\">Python<\/div>\n                                    <div class=\"\">R<\/div>\n                                <div>Chat GPT<\/div>\n            <\/div>\n                <div class=\"tab_content\">\n                                            <div class=\"item selected\">\n                    <div class=\"buttons\">\n                                                    <button\n                                class=\"view\"\n                                title=\"View request in new tab\"\n                                onclick=\"gtag('event', 'ViewApiRequest', {'event_category':'TrialApiData'});\"\n                            >\n                                <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                    <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                                <\/svg>\n                            <\/button>\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=csv<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">curl --location \"https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=csv\"<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => 'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=csv',\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => '',\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 0,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => 'GET',\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\necho $data;<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nimport requests\n\nurl = f'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=csv'\ndata = requests.get(url).content\n\nprint(data)<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nlibrary(httr)\nlibrary(jsonlite)\n\nurl <- 'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=csv'\nresponse <- GET(url)\n\nif (http_type(response) == \"application\/csv\") {\n    content <- content(response, \"text\", encoding = \"UTF-8\")\n    cat(content)\n} else {\n    cat(\"Error while receiving data\\n\")\n}<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                        <div class=\"item replace-deny\">\n                <div class=\"buttons\">\n                    <a\n                        class=\"view\"\n                        title=\"View request in new tab\"\n                        href=\"\/lp\/eodhd-chatgpt\"\n                        target=\"_blank\"\n                    >\n                        <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                        <\/svg>\n                    <\/a>\n                <\/div>\n                <div class=\"api_url_text bold\" style=\"word-break: normal;white-space: normal;\">\n                    New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                    Simply describe how you want to use our data, and get a working piece of code.\n                    Don\u2019t forget to replace the API token with your own.<br><br>\n                    <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                    <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                        How to use it (YouTube)\n                    <\/a>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    \n\n\n\n<p>As a result, you will get the following data in CSV format:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1221\" height=\"683\" src=\"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png\" alt=\"Historical EOD API\" class=\"wp-image-2186\"\/><\/a><\/figure>\n<\/div>\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Please note, that OHLC we provide in raw adjusted neither to splits nor to dividends, while adjusted closes are adjusted to both splits and dividends, and volume is adjusted to splits. If you need OHLC adjusted only to splits then it\u2019s better to use our <a href=\"https:\/\/eodhistoricaldata.com\/knowledgebase\/technical-indicators-api\/\">Technical API<\/a> with the &#8216;function=splitadjusted&#8217; parameter.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><\/p>\n<\/blockquote>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Sign up &amp; Get Data<\/span><\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-daily-updates-api\">Daily Updates API<\/h2>\n\n\n\n<p>For daily updates on your end-of-day data, we recommend a special <a href=\"https:\/\/eodhistoricaldata.com\/financial-apis\/bulk-api-eod-splits-dividends\/\">Bulk API for EOD, Splits and Dividends<\/a>. With this API you will be able to download the data for a particular day for the entire exchange in seconds. Even to download the entire US exchange with more than 45,000 active tickers, you will need 1 API request and 5-10 seconds.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-stock-prices-data-api-with-dates-support\">Stock Prices Data API with Dates Support<\/h2>\n\n\n\n<p>We support two formats for historical data dates.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-eod-historical-data\">EOD Historical Data<\/h3>\n\n\n\n<p>Here you can use &#8216;from&#8217; and &#8216;to&#8217; parameters with the format &#8216;YYYY-MM-DD&#8217;. For example, if you need to get data only from Jan 5, 2017, to Feb 10, 2017, you need to use from=2017-01-05 and to=2017-02-10. Then the final URL will be:<\/p>\n\n\n\n\n    <div class=\"api_url_box\" data-feed=\"EOD Historical Data\">\n                    <div class=\"tabs\">\n                                    <div class=\"selected\">URL<\/div>\n                                    <div class=\"\">cURL<\/div>\n                                    <div class=\"\">PHP<\/div>\n                                    <div class=\"\">Python<\/div>\n                                    <div class=\"\">R<\/div>\n                                <div>Chat GPT<\/div>\n            <\/div>\n                <div class=\"tab_content\">\n                                            <div class=\"item selected\">\n                    <div class=\"buttons\">\n                                                    <button\n                                class=\"view\"\n                                title=\"View request in new tab\"\n                                onclick=\"gtag('event', 'ViewApiRequest', {'event_category':'TrialApiData'});\"\n                            >\n                                <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                    <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                                <\/svg>\n                            <\/button>\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?from=<span class='orange bold from'>2020-01-05<\/span>&to=<span class='orange bold to'>2020-02-10<\/span>&period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">curl --location \"https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?from=<span class='orange bold from'>2020-01-05<\/span>&to=<span class='orange bold to'>2020-02-10<\/span>&period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json\"<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => 'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?from=<span class='orange bold from'>2020-01-05<\/span>&to=<span class='orange bold to'>2020-02-10<\/span>&period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json',\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => '',\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 0,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => 'GET',\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo 'Error. '.$e->getMessage();\n}<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nimport requests\n\nurl = f'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?from=<span class='orange bold from'>2020-01-05<\/span>&to=<span class='orange bold to'>2020-02-10<\/span>&period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json'\ndata = requests.get(url).json()\n\nprint(data)<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nlibrary(httr)\nlibrary(jsonlite)\n\nurl <- 'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?from=<span class='orange bold from'>2020-01-05<\/span>&to=<span class='orange bold to'>2020-02-10<\/span>&period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json'\nresponse <- GET(url)\n\nif (http_type(response) == \"application\/json\") {\n    content <- content(response, \"text\", encoding = \"UTF-8\")\n    cat(content)\n} else {\n    cat(\"Error while receiving data\\n\")\n}<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                        <div class=\"item replace-deny\">\n                <div class=\"buttons\">\n                    <a\n                        class=\"view\"\n                        title=\"View request in new tab\"\n                        href=\"\/lp\/eodhd-chatgpt\"\n                        target=\"_blank\"\n                    >\n                        <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                        <\/svg>\n                    <\/a>\n                <\/div>\n                <div class=\"api_url_text bold\" style=\"word-break: normal;white-space: normal;\">\n                    New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                    Simply describe how you want to use our data, and get a working piece of code.\n                    Don\u2019t forget to replace the API token with your own.<br><br>\n                    <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                    <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                        How to use it (YouTube)\n                    <\/a>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    \n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-filter-fields-webservice-and-yahoo-support\">Filter fields. WEBSERVICE and YAHOO Support<\/h3>\n\n\n\n<p>We also support &#8216;=WEBSERVICE&#8217; Excel function, to get only the last value, just add <strong>&#8216;filter=last_close&#8217;<\/strong> or <strong>&#8216;filter=last_volume&#8217;&nbsp;<\/strong>with &#8216;fmt=json&#8217; and you will get only one number which perfectly works with WEBSERVICE function. For example, with this URL:<\/p>\n\n\n\n\n    <div class=\"api_url_box\" data-feed=\"EOD Historical Data\">\n                    <div class=\"tabs\">\n                                    <div class=\"selected\">URL<\/div>\n                                    <div class=\"\">cURL<\/div>\n                                    <div class=\"\">PHP<\/div>\n                                    <div class=\"\">Python<\/div>\n                                    <div class=\"\">R<\/div>\n                                <div>Chat GPT<\/div>\n            <\/div>\n                <div class=\"tab_content\">\n                                            <div class=\"item selected\">\n                    <div class=\"buttons\">\n                                                    <button\n                                class=\"view\"\n                                title=\"View request in new tab\"\n                                onclick=\"gtag('event', 'ViewApiRequest', {'event_category':'TrialApiData'});\"\n                            >\n                                <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                    <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                                <\/svg>\n                            <\/button>\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?filter=<span class='orange bold filter'>last_close<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">curl --location \"https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?filter=<span class='orange bold filter'>last_close<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json\"<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => 'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?filter=<span class='orange bold filter'>last_close<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json',\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => '',\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 0,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => 'GET',\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo 'Error. '.$e->getMessage();\n}<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nimport requests\n\nurl = f'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?filter=<span class='orange bold filter'>last_close<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json'\ndata = requests.get(url).json()\n\nprint(data)<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nlibrary(httr)\nlibrary(jsonlite)\n\nurl <- 'https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?filter=<span class='orange bold filter'>last_close<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json'\nresponse <- GET(url)\n\nif (http_type(response) == \"application\/json\") {\n    content <- content(response, \"text\", encoding = \"UTF-8\")\n    cat(content)\n} else {\n    cat(\"Error while receiving data\\n\")\n}<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                        <div class=\"item replace-deny\">\n                <div class=\"buttons\">\n                    <a\n                        class=\"view\"\n                        title=\"View request in new tab\"\n                        href=\"\/lp\/eodhd-chatgpt\"\n                        target=\"_blank\"\n                    >\n                        <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                        <\/svg>\n                    <\/a>\n                <\/div>\n                <div class=\"api_url_text bold\" style=\"word-break: normal;white-space: normal;\">\n                    New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                    Simply describe how you want to use our data, and get a working piece of code.\n                    Don\u2019t forget to replace the API token with your own.<br><br>\n                    <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                    <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                        How to use it (YouTube)\n                    <\/a>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    \n\n\n\n<p>You will get one value &#8211; the last price for MCD.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-yahoo-finance-api-support\">Yahoo Finance API Support<\/h3>\n\n\n\n<p>To support clients who used Yahoo Finance service non-official API which doesn&#8217;t work now (URL: ichart.finance.yahoo.com), we also support yahoo-style for dates. Here there will be 6 parameters.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First of all, for yahoo-style you need to use another endpoint:<\/li>\n\n\n\n<li><em>https:\/\/eodhd.com\/api\/table.csv<\/em>.<\/li>\n\n\n\n<li>For <strong>symbol<\/strong> you should use <strong>s<\/strong>, then for MCD it will be: s=MCD.US.<\/li>\n\n\n\n<li>For <strong>&#8216;from date&#8217;<\/strong> you should use <strong>a, b, c<\/strong> for month, day, year. Then 2017-01-05 will be: a=00, b=05, c=2017.<\/li>\n\n\n\n<li>For <strong>&#8216;to date&#8217;&nbsp;<\/strong>you should use <strong>d, e, f<\/strong> for month, day, year. Then 2017-02-10 will be: d=01, e=10, f=2017.<\/li>\n\n\n\n<li>Please note, that in Yahoo! Finance API first month is 0 and last month (December) is 11. Then you need to substract 1 from months.<\/li>\n\n\n\n<li>For &#8216;period&#8217; you should use <strong>g<\/strong>. Possible values are d for daily, w for weekly and m for montly.<\/li>\n<\/ul>\n\n\n\n<p>BE CAREFUL, date used here in American notation: MONTH, DAY, YEAR.<\/p>\n\n\n\n<p>And the final URL will be:<\/p>\n\n\n\n\n    <div class=\"api_url_box\" data-feed=\"EOD Historical Data\">\n                    <div class=\"tabs\">\n                                    <div class=\"selected\">URL<\/div>\n                                    <div class=\"\">cURL<\/div>\n                                    <div class=\"\">PHP<\/div>\n                                    <div class=\"\">Python<\/div>\n                                    <div class=\"\">R<\/div>\n                                <div>Chat GPT<\/div>\n            <\/div>\n                <div class=\"tab_content\">\n                                            <div class=\"item selected\">\n                    <div class=\"buttons\">\n                                                    <button\n                                class=\"view\"\n                                title=\"View request in new tab\"\n                                onclick=\"gtag('event', 'ViewApiRequest', {'event_category':'TrialApiData'});\"\n                            >\n                                <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                    <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                                <\/svg>\n                            <\/button>\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">https:\/\/eodhd.com\/api\/table.csv?s=<span class='orange bold s'>MCD.US<\/span>&a=<span class='orange bold a'>05<\/span>&b=<span class='orange bold b'>01<\/span>&c=<span class='orange bold c'>2017<\/span>&d=<span class='orange bold d'>10<\/span>&e=<span class='orange bold e'>02<\/span>&f=<span class='orange bold f'>2017<\/span>&g=<span class='orange bold g'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">curl --location \"https:\/\/eodhd.com\/api\/table.csv?s=<span class='orange bold s'>MCD.US<\/span>&a=<span class='orange bold a'>05<\/span>&b=<span class='orange bold b'>01<\/span>&c=<span class='orange bold c'>2017<\/span>&d=<span class='orange bold d'>10<\/span>&e=<span class='orange bold e'>02<\/span>&f=<span class='orange bold f'>2017<\/span>&g=<span class='orange bold g'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json\"<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\n$curl = curl_init();\n\ncurl_setopt_array($curl, array(\n    CURLOPT_URL => 'https:\/\/eodhd.com\/api\/table.csv?s=<span class='orange bold s'>MCD.US<\/span>&a=<span class='orange bold a'>05<\/span>&b=<span class='orange bold b'>01<\/span>&c=<span class='orange bold c'>2017<\/span>&d=<span class='orange bold d'>10<\/span>&e=<span class='orange bold e'>02<\/span>&f=<span class='orange bold f'>2017<\/span>&g=<span class='orange bold g'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json',\n    CURLOPT_RETURNTRANSFER => true,\n    CURLOPT_ENCODING => '',\n    CURLOPT_MAXREDIRS => 10,\n    CURLOPT_TIMEOUT => 0,\n    CURLOPT_FOLLOWLOCATION => true,\n    CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n    CURLOPT_CUSTOMREQUEST => 'GET',\n));\n\n$data = curl_exec($curl);\ncurl_close($curl);\n\ntry {\n    $data = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n    var_dump($data);\n} catch (Exception $e) {\n    echo 'Error. '.$e->getMessage();\n}<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nimport requests\n\nurl = f'https:\/\/eodhd.com\/api\/table.csv?s=<span class='orange bold s'>MCD.US<\/span>&a=<span class='orange bold a'>05<\/span>&b=<span class='orange bold b'>01<\/span>&c=<span class='orange bold c'>2017<\/span>&d=<span class='orange bold d'>10<\/span>&e=<span class='orange bold e'>02<\/span>&f=<span class='orange bold f'>2017<\/span>&g=<span class='orange bold g'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json'\ndata = requests.get(url).json()\n\nprint(data)<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                            <div class=\"item \">\n                    <div class=\"buttons\">\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">\nlibrary(httr)\nlibrary(jsonlite)\n\nurl <- 'https:\/\/eodhd.com\/api\/table.csv?s=<span class='orange bold s'>MCD.US<\/span>&a=<span class='orange bold a'>05<\/span>&b=<span class='orange bold b'>01<\/span>&c=<span class='orange bold c'>2017<\/span>&d=<span class='orange bold d'>10<\/span>&e=<span class='orange bold e'>02<\/span>&f=<span class='orange bold f'>2017<\/span>&g=<span class='orange bold g'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json'\nresponse <- GET(url)\n\nif (http_type(response) == \"application\/json\") {\n    content <- content(response, \"text\", encoding = \"UTF-8\")\n    cat(content)\n} else {\n    cat(\"Error while receiving data\\n\")\n}<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                        <div class=\"item replace-deny\">\n                <div class=\"buttons\">\n                    <a\n                        class=\"view\"\n                        title=\"View request in new tab\"\n                        href=\"\/lp\/eodhd-chatgpt\"\n                        target=\"_blank\"\n                    >\n                        <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                        <\/svg>\n                    <\/a>\n                <\/div>\n                <div class=\"api_url_text bold\" style=\"word-break: normal;white-space: normal;\">\n                    New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                    Simply describe how you want to use our data, and get a working piece of code.\n                    Don\u2019t forget to replace the API token with your own.<br><br>\n                    <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                    <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                        How to use it (YouTube)\n                    <\/a>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    \n\n\n\n<p>We hope it will be very useful for you.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-json-output-support\">JSON Output Support<\/h3>\n\n\n\n<p>We support JSON output as well if you need it for your PHP, Python, Java, or Perl applications. All you need is to add a special parameter: &#8220;fmt=json&#8221; to your query, then the final query will be:<\/p>\n\n\n\n\n    <div class=\"api_url_box\" data-feed=\"EOD Historical Data\">\n                <div class=\"tab_content\">\n                                            <div class=\"item selected\">\n                    <div class=\"buttons\">\n                                                    <button\n                                class=\"view\"\n                                title=\"View request in new tab\"\n                                onclick=\"gtag('event', 'ViewApiRequest', {'event_category':'TrialApiData'});\"\n                            >\n                                <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                    <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                                <\/svg>\n                            <\/button>\n                                                <button\n                            onclick=\"gtag('event', 'CopyApiUrl', {'event_category':'TrialApiData'});\"\n                            class=\"copy\"\n                            title=\"Copy url\"\n                        >\n                            <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                                <use xlink:href=\"\/img\/icons\/copy.svg#copy\"><\/use>\n                            <\/svg>\n                        <\/button>\n                    <\/div>\n                    <pre class=\"api_url_text bold\">https:\/\/eodhd.com\/api\/eod\/<span class='orange bold'>MCD.US<\/span>?from=<span class='orange bold from'>2017-01-05<\/span>&to=<span class='orange bold to'>2017-02-10<\/span>&period=<span class='orange bold period'>d<\/span>&api_token=<span class='orange bold api_token'>demo<\/span>&fmt=json<\/pre>\n                    <div class=\"register_link\">\n                        (<a href=\"\/register\">Sign up<\/a> for free to get an API token)\n                    <\/div>\n                <\/div>\n                                                                                        <div class=\"item replace-deny\">\n                <div class=\"buttons\">\n                    <a\n                        class=\"view\"\n                        title=\"View request in new tab\"\n                        href=\"\/lp\/eodhd-chatgpt\"\n                        target=\"_blank\"\n                    >\n                        <svg class=\"tryFreeBtn__svg\" viewBox=\"0 0 20 20\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                            <use xlink:href=\"\/img\/icons\/openLink.svg#openLink\"><\/use>\n                        <\/svg>\n                    <\/a>\n                <\/div>\n                <div class=\"api_url_text bold\" style=\"word-break: normal;white-space: normal;\">\n                    New to coding? Our ChatGPT assistant can generate code in any language tailored to our API.\n                    Simply describe how you want to use our data, and get a working piece of code.\n                    Don\u2019t forget to replace the API token with your own.<br><br>\n                    <a href=\"\/lp\/eodhd-chatgpt\" target=\"_blank\">Try it now (it's free)!<\/a><br><br>\n                    <a href=\"https:\/\/www.youtube.com\/watch?v=QVWiLukag7o\" rel=\"nofollow\" target=\"_blank\">\n                        How to use it (YouTube)\n                    <\/a>\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    \n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"490\" height=\"636\" src=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/11\/https___eodhd.com_api_eod_TSLA.png\" alt=\"\" class=\"wp-image-6321\"\/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>JSON output doesn&#8217;t work for Yahoo-like style.<\/p>\n\n\n\n<p>We have API limits 100 000 requests per day. Each symbol request costs 1 API call.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-end-of-day-historical-prices-update-time\">End Of Day Historical Prices Update Time<\/h2>\n\n\n\n<p>We update each stock exchange 2-3 hours after the market closes. But except for major US exchanges (NYSE, NASDAQ), these exchanges are updated next 15 minutes after the market closes. However US mutual funds, PINK, OTCBB, and some indices do update only the next morning, the update starts at 3-4 am EST and usually ends at 5-6 am EST. For these types of symbols, we always get \u2018updated price\u2019 up to 3-4 am.<\/p>\n\n\n\n<p class=\"has-text-align-center\"><a class=\"maxbutton-1 maxbutton maxbutton-subscribe-to-api external-css btn\" href=\"https:\/\/eodhd.com\/register\"><span class='mb-text'>Sign up &amp; Get Data<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>With End-of-Day data API, we have data for more than 150 000 tickers all around the world. We cover all US stocks, ETFs, and Mutual Funds (more than 51 000 in total) from the beginning, for example, the Ford Motors data is from Jun 1972 and so on. And non-US stock exchanges we cover mostly [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[2,103],"tags":[],"coding-language":[],"ready-to-go-solution":[],"qualification":[],"financial-apis-category":[],"financial-apis-manuals":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-historical-prices-live-data-apis","category-most-popular-financial-data-apis"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.6 (Yoast SEO v26.7) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>End-of-Day Historical Stock Market Data API: The Best Web Service Offering a Free Trial, Providing Real-Time, JSON-Formatted Data Available for Download<\/title>\n<meta name=\"description\" content=\"API Documentation for Obtaining End-of-Day (EOD) Historical Data and Volumes for Stocks, ETFs, and Other Securities with CSV and JSON Output. Offers a Free Trial and Download Options. The Best Web Service Also Supports Real-Time Data Retrieval.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"End-Of-Day Historical Stock Market Data API\" \/>\n<meta property=\"og:description\" content=\"API Documentation for Obtaining End-of-Day (EOD) Historical Data and Volumes for Stocks, ETFs, and Other Securities with CSV and JSON Output. Offers a Free Trial and Download Options. The Best Web Service Also Supports Real-Time Data Retrieval.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\" \/>\n<meta property=\"og:site_name\" content=\"Stock Price Data, Financial and Stock Market API\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/eodhistoricaldata\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-20T12:22:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-09-19T22:01:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1221\" \/>\n\t<meta property=\"og:image:height\" content=\"683\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"EOD Historical Data Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:site\" content=\"@EOD_data\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"EOD Historical Data Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#article\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\"},\"author\":{\"name\":\"EOD Historical Data Support\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/fa5be3606e0cd967a175978cebe97415\"},\"headline\":\"End-Of-Day Historical Stock Market Data API\",\"datePublished\":\"2024-04-20T12:22:00+00:00\",\"dateModified\":\"2025-09-19T22:01:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\"},\"wordCount\":1006,\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#organization\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png\",\"articleSection\":[\"1. Market Data APIs\",\"Most Popular Financial APIs\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\",\"name\":\"End-of-Day Historical Stock Market Data API: The Best Web Service Offering a Free Trial, Providing Real-Time, JSON-Formatted Data Available for Download\",\"isPartOf\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#primaryimage\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#primaryimage\"},\"thumbnailUrl\":\"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png\",\"datePublished\":\"2024-04-20T12:22:00+00:00\",\"dateModified\":\"2025-09-19T22:01:11+00:00\",\"description\":\"API Documentation for Obtaining End-of-Day (EOD) Historical Data and Volumes for Stocks, ETFs, and Other Securities with CSV and JSON Output. Offers a Free Trial and Download Options. The Best Web Service Also Supports Real-Time Data Retrieval.\",\"breadcrumb\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#primaryimage\",\"url\":\"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png\",\"contentUrl\":\"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/eodhd.com\/financial-apis\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"End-Of-Day Historical Stock Market Data API\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#website\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/\",\"name\":\"Historical Stock Prices and Fundamental Financial Data APIs | EODHD\",\"description\":\"End Of Day (EOD), Fundamental and Real-time\/Live Data Market API\",\"publisher\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/eodhd.com\/financial-apis\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#organization\",\"name\":\"EODHD (EOD Historical Data)\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"contentUrl\":\"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png\",\"width\":159,\"height\":82,\"caption\":\"EODHD (EOD Historical Data)\"},\"image\":{\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/eodhistoricaldata\",\"https:\/\/x.com\/EOD_data\",\"https:\/\/www.reddit.com\/r\/EODHistoricalData\/\",\"https:\/\/eod-historical-data.medium.com\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/fa5be3606e0cd967a175978cebe97415\",\"name\":\"EOD Historical Data Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3599a531133e7fc83654b72e3103c05b1bbeb91168cf4786cbad64afa9b82413?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3599a531133e7fc83654b72e3103c05b1bbeb91168cf4786cbad64afa9b82413?s=96&d=mm&r=g\",\"caption\":\"EOD Historical Data Support\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"End-of-Day Historical Stock Market Data API: The Best Web Service Offering a Free Trial, Providing Real-Time, JSON-Formatted Data Available for Download","description":"API Documentation for Obtaining End-of-Day (EOD) Historical Data and Volumes for Stocks, ETFs, and Other Securities with CSV and JSON Output. Offers a Free Trial and Download Options. The Best Web Service Also Supports Real-Time Data Retrieval.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes","og_locale":"en_US","og_type":"article","og_title":"End-Of-Day Historical Stock Market Data API","og_description":"API Documentation for Obtaining End-of-Day (EOD) Historical Data and Volumes for Stocks, ETFs, and Other Securities with CSV and JSON Output. Offers a Free Trial and Download Options. The Best Web Service Also Supports Real-Time Data Retrieval.","og_url":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes","og_site_name":"Stock Price Data, Financial and Stock Market API","article_publisher":"https:\/\/www.facebook.com\/eodhistoricaldata","article_published_time":"2024-04-20T12:22:00+00:00","article_modified_time":"2025-09-19T22:01:11+00:00","og_image":[{"width":1221,"height":683,"url":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png","type":"image\/png"}],"author":"EOD Historical Data Support","twitter_card":"summary_large_image","twitter_creator":"@EOD_data","twitter_site":"@EOD_data","twitter_misc":{"Written by":"EOD Historical Data Support","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#article","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes"},"author":{"name":"EOD Historical Data Support","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/fa5be3606e0cd967a175978cebe97415"},"headline":"End-Of-Day Historical Stock Market Data API","datePublished":"2024-04-20T12:22:00+00:00","dateModified":"2025-09-19T22:01:11+00:00","mainEntityOfPage":{"@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes"},"wordCount":1006,"publisher":{"@id":"https:\/\/eodhd.com\/financial-apis\/#organization"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#primaryimage"},"thumbnailUrl":"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png","articleSection":["1. Market Data APIs","Most Popular Financial APIs"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes","url":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes","name":"End-of-Day Historical Stock Market Data API: The Best Web Service Offering a Free Trial, Providing Real-Time, JSON-Formatted Data Available for Download","isPartOf":{"@id":"https:\/\/eodhd.com\/financial-apis\/#website"},"primaryImageOfPage":{"@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#primaryimage"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#primaryimage"},"thumbnailUrl":"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png","datePublished":"2024-04-20T12:22:00+00:00","dateModified":"2025-09-19T22:01:11+00:00","description":"API Documentation for Obtaining End-of-Day (EOD) Historical Data and Volumes for Stocks, ETFs, and Other Securities with CSV and JSON Output. Offers a Free Trial and Download Options. The Best Web Service Also Supports Real-Time Data Retrieval.","breadcrumb":{"@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#primaryimage","url":"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png","contentUrl":"https:\/\/eodhistoricaldata.com\/financial-apis\/wp-content\/uploads\/2017\/05\/MCD.US_.csv-Excel-2020-12-18-18.05.27.png"},{"@type":"BreadcrumbList","@id":"https:\/\/eodhd.com\/financial-apis\/api-for-historical-data-and-volumes#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/eodhd.com\/financial-apis"},{"@type":"ListItem","position":2,"name":"End-Of-Day Historical Stock Market Data API"}]},{"@type":"WebSite","@id":"https:\/\/eodhd.com\/financial-apis\/#website","url":"https:\/\/eodhd.com\/financial-apis\/","name":"Historical Stock Prices and Fundamental Financial Data APIs | EODHD","description":"End Of Day (EOD), Fundamental and Real-time\/Live Data Market API","publisher":{"@id":"https:\/\/eodhd.com\/financial-apis\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/eodhd.com\/financial-apis\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/eodhd.com\/financial-apis\/#organization","name":"EODHD (EOD Historical Data)","url":"https:\/\/eodhd.com\/financial-apis\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/","url":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","contentUrl":"https:\/\/eodhd.com\/financial-apis\/wp-content\/uploads\/2023\/12\/EODHD-Logo.png","width":159,"height":82,"caption":"EODHD (EOD Historical Data)"},"image":{"@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/eodhistoricaldata","https:\/\/x.com\/EOD_data","https:\/\/www.reddit.com\/r\/EODHistoricalData\/","https:\/\/eod-historical-data.medium.com\/"]},{"@type":"Person","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/fa5be3606e0cd967a175978cebe97415","name":"EOD Historical Data Support","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/eodhd.com\/financial-apis\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3599a531133e7fc83654b72e3103c05b1bbeb91168cf4786cbad64afa9b82413?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3599a531133e7fc83654b72e3103c05b1bbeb91168cf4786cbad64afa9b82413?s=96&d=mm&r=g","caption":"EOD Historical Data Support"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p8NjB1-7","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":112,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":7677,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/posts\/7\/revisions\/7677"}],"wp:attachment":[{"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/tags?post=7"},{"taxonomy":"coding-language","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/coding-language?post=7"},{"taxonomy":"ready-to-go-solution","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/ready-to-go-solution?post=7"},{"taxonomy":"qualification","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/qualification?post=7"},{"taxonomy":"financial-apis-category","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/financial-apis-category?post=7"},{"taxonomy":"financial-apis-manuals","embeddable":true,"href":"https:\/\/eodhd.com\/financial-apis\/wp-json\/wp\/v2\/financial-apis-manuals?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}