How do I use the API to download just the latest value for a time-series?

Note that data on Quandl comes in two formats: time-series and tables. You can learn more about these formats here.

If you want the latest value from an individual time-series, use the limit=n parameter to get only the most recent n rows of data.

For example, if you are using the End of Day US Stock Prices (EOD) data feed and want the latest value for the AAPL time-series, you can use an API call like this: 

https://www.quandl.com/api/v3/datasets/EOD/AAPL.csv?limit=1&api_key=YOURAPIKEY

In the above API call, data from the EOD/AAPL time-series will be returned and only the latest 1 row of data will be returned because limit=1.

To see other parameters for individual time-series, please see the documentation here

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.