Examples to get access to our API via CURL or WGET. For testing purposes, you can try the following API Key (works only for MCD.US and VTI.US tickers):  OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX.

Learn more about our End of Day and Fundamental Data APIs.

CURL Stock Data API

Stock End of Day Data API via CURL

curl https://eodhistoricaldata.com/api/eod/AAPL.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&order=d&fmt=json&from=2017-08-01

Fundamental Data API via CURL

curl https://eodhistoricaldata.com/api/fundamentals/AAPL.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX

WGET Stock Data API

Stock End of Day Data API with WGET

wget https://eodhistoricaldata.com/api/eod/AAPL.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX&order=d&fmt=json&from=2017-08-01

Fundamental Data API with WGET

wget https://eodhistoricaldata.com/api/fundamentals/AAPL.US?api_token=OeAFFmMliFG5orCUuwAKQ8l4WWFQ67YX

Comments

  1. Cyrille

    Hi,

    Could we pass the api_token in a request header to avoid transmit it clearly in url ?

    Thanks & regards, Cyrille.

    1. EOD Historical Data Support Article Author

      At the moment we do not support API key in headers. But there is no any difference here if you pass the API token in headers or in URL. Basically, it’s the same.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.