How do I download a dataset using the API?

Here is a basic API call:

https://www.quandl.com/api/v3/datasets/WIKI/FB.csv

The above call downloads the full history of dataset  WIKI/FB in CSV format.  

You can replace the Quandl code WIKI/FB in the above example with the code of whatever other dataset you want to download. For example NSE/OIL or FRED/GDP or OPEC/ORB.  

You can replace the format code csv in the above example with json or xml.

Thus the following are also valid API calls:

https://www.quandl.com/api/v3/datasets/NSE/OIL.csv
https://www.quandl.com/api/v3/datasets/FRED/GDP.json
https://www.quandl.com/api/v3/datasets/OPEC/ORB.xml

Note that if you plan to make multiple calls, or if you want to access a premium dataset, you will need to append your API key to the call. You can find your API key in your account settings.

Still need help? Contact Us Contact Us