Nasdaq Data Link API
Financial, economic and alternative datasets (formerly Quandl) via a unified API.
What it does
Nasdaq Data Link (formerly Quandl) is a catalogue of financial, economic and alternative datasets delivered through one consistent API — time-series endpoints for things like commodity prices, treasury rates and central-bank figures, plus table endpoints for larger relational datasets. Output is JSON, CSV or XML.
Base URL
Authentication
Create a free account at data.nasdaq.com and copy your API key from Account Settings. Pass it as api_key. Anonymous requests work but are limited to 20/day, so always send the key. Many premium datasets still require a separate subscription even with a key.
Code examples
curl "https://data.nasdaq.com/api/v3/datasets/LBMA/GOLD.json?rows=5&api_key=YOUR_KEY"
import requests
r = requests.get(
"https://data.nasdaq.com/api/v3/datasets/LBMA/GOLD.json",
params={"rows": 5, "api_key": "YOUR_KEY"},
timeout=15,
)
r.raise_for_status()
ds = r.json()["dataset"]
print(ds["column_names"])
for row in ds["data"]:
print(row)const url = "https://data.nasdaq.com/api/v3/datasets/LBMA/GOLD.json"
+ "?rows=5&api_key=YOUR_KEY";
const res = await fetch(url);
const { dataset } = await res.json();
console.log(dataset.column_names, dataset.data);Rate limits & quotas
Free authenticated key: 50 calls per 10 minutes and 5,000 calls/day on free datasets; anonymous requests are capped at 20/day. Premium datasets have their own concurrency and volume limits set by the data publisher. A 429 response includes a Retry-After header.
Key response fields
| dataset.column_names | Ordered list of column labels, e.g. [“Date”, “USD (AM)”, …] |
| dataset.data | Array of rows, newest first; each row aligns to column_names |
| dataset.start_date / end_date | Coverage range of the series |
| dataset.frequency | daily, weekly, monthly, quarterly or annual |
| dataset.newest_available_date | Most recent data point — useful for freshness checks |
Common errors
| 403 | Dataset requires a premium subscription your account doesn’t have. |
| 404 | Dataset code doesn’t exist — codes are DATABASE/DATASET, case-sensitive. |
| 429 | Rate limit hit; honour the Retry-After header. |
When to use it (and alternatives)
Use Nasdaq Data Link for macro and commodity time series and for datasets you can’t get elsewhere. For real-time and historical equity prices a dedicated market-data API like Tiingo or Twelve Data is a better fit; for raw US economic series, FRED (St. Louis Fed) is free and keyless-friendly.
FAQ
Is Quandl the same as Nasdaq Data Link?
Yes. Quandl was acquired by Nasdaq and rebranded to Nasdaq Data Link; old quandl.com endpoints redirect, but new code should use data.nasdaq.com/api/v3.
Can I get stock prices for free?
Some end-of-day equity datasets are free, but most detailed price data now sits behind paid subscriptions. For a free stock feed, use Tiingo or Twelve Data’s free tier instead.
New to APIs?
Short guides for working with this API — and any other.