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
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.