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

Note that each data feed on Nasdaq Data Link is delivered through one of the following Nasdaq Data Link APIs:

  • Streaming API for real-time data
  • REST API for real-time or delayed data
  • REST API for time-series
  • REST API for tables

You can learn more about these APIs, data formats here.

If you are using a time-series dataset and 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 NASDAQ Stock Market Prices (XNAS) data feed and want the latest value for the ACIW time-series, you can use an API call like this: 

https://data.nasdaq.com/api/v3/datasets/XNAS/ACIW.csv?limit=1&api_key=YOURAPIKEY

In the above API call, data from the XNAS/ACIW 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.