| name | nber-working-papers-api |
| description | Access NBER working papers and economic research datasets |
| metadata | {"openclaw":{"emoji":"📈","category":"domains","subcategory":"economics","keywords":["NBER","working papers","economics research","macroeconomics","economic policy","recession dating"],"source":"https://www.nber.org/"}} |
NBER Working Papers and Data API
Overview
The National Bureau of Economic Research (NBER) is the leading U.S. economics research organization, publishing 1,200+ working papers annually by top economists. NBER papers are among the most cited in economics. The website provides structured JSON API access to working papers and macroeconomic datasets. Free metadata access; some full text requires subscription.
API last verified: 2026-04-23. RSS feeds (/papers.rss) and the old query-param API (?q=... without /search path) are defunct. Use the endpoints below.
Working Papers Search API
Base URL: https://www.nber.org/api/v1/working_page_listing/contentType/working_paper
Search all papers
curl "https://www.nber.org/api/v1/working_page_listing/contentType/working_paper/_/_/search?page=1&perPage=20&q=inflation+expectations"
curl "https://www.nber.org/api/v1/working_page_listing/contentType/working_paper/_/_/search?page=1&perPage=20&newThisWeek=true"
curl "https://www.nber.org/api/v1/working_page_listing/contentType/working_paper/_/_/search?page=1&perPage=1&q=w33000"
Filter by program (path segment)
Program names go in the URL path (use + for spaces), replacing the two _/_ placeholders:
curl "https://www.nber.org/api/v1/working_page_listing/contentType/working_paper/programs/Labor+Studies/search?page=1&perPage=20"
curl "https://www.nber.org/api/v1/working_page_listing/contentType/working_paper/programs/Labor+Studies/search?page=1&perPage=20&q=minimum+wage"
curl "https://www.nber.org/api/v1/working_page_listing/contentType/working_paper/programs/Economic+Fluctuations+and+Growth/search?page=1&perPage=20"
API Response Structure
{
"totalResults": 11711,
"results": [
{
"title": "Paper Title",
"authors": ["<a href=\"/people/john_doe\">John Doe</a>"],
"displaydate": "March 2025",
"abstract": "First ~300 chars of abstract...",
"url": "/papers/w33000",
"nid": "767372",
"type": "working_paper",
"displaytypename": "Working Paper",
"newthisweek": false,
"certifiedrandom": false
}
],
"facets":
...
...
...
...
Note on authors field: Values contain HTML anchor tags. Strip tags to get plain names:
import re
plain = re.sub(r'<[^>]+>', '', author_html)
Individual Paper Metadata (HTML meta tags)
For richer metadata on a single paper, parse <meta> tags from the paper page:
curl -sL "https://www.nber.org/papers/w33000" | grep 'citation_'
NBER Data Portal
curl "https://data.nber.org/data/cycles/business_cycle_dates.json"
NBER Programs (full names for API path)
| Program Name (use in API path) | Focus |
|---|
Economic Fluctuations and Growth | Macro, business cycles |
Labor Studies | Employment, wages |
Industrial Organization | Markets, competition |
Public Economics | Taxation, spending |
Economics of Health | Healthcare markets |
Development Economics | Developing countries |
International Finance and Macroeconomics | Exchange rates, capital flows |
International Trade and Investment | Trade policy |
Monetary Economics | Central banking |
Corporate Finance | Firm finance |
Asset Pricing | Financial markets |
Economics of Education | Education economics |
Economics of Aging | Demographics |
Children and Families | Child welfare |
Law and Economics | Legal institutions |
Environment and Energy Economics | Environmental policy |
Political Economy | Political institutions |
Python Usage
import re
import requests
SEARCH_BASE = (
"https://www.nber.org/api/v1/working_page_listing"
"/contentType/working_paper"
)
def _strip_html(text: str) -> str:
"""Remove HTML tags from a string."""
return re.sub(r'<[^>]+>', '', text)
def _extract_paper_number(url: str) -> str:
"""Extract paper number from URL like /papers/w33000."""
return url.rsplit("/", 1)[-1] if url else ""
def search_papers(query: str = "", program: str = "",
page: int = 1, per_page: int = 20,
new_this_week: bool = False) -> dict:
"""Search NBER working papers.
Args:
query: Search keywords (optional).
program: Full program name, e.g. "Labor Studies" (optional).
page: Page number (1-indexed).
per_page: Results per page (max ~100).
new_this_week: If True, return only new-this-week papers.
Returns:
Dict with 'total' count and 'papers' list.
"""
if program:
url = f"{SEARCH_BASE}/programs/{program}/search"
:
url =
params = {: page, : per_page}
query:
params[] = query
new_this_week:
params[] =
resp = requests.get(url, params=params, timeout=)
resp.raise_for_status()
data = resp.json()
papers = []
item data.get(, []):
number = _extract_paper_number(item.get(, ))
papers.append({
: item.get(, ),
: [_strip_html(a) a item.get(, [])],
: number,
: item.get(, ),
: item.get() ,
: number ,
: item.get(, ),
: item.get(, ),
})
{: data.get(, ), : papers}
() -> :
resp = requests.get(
, timeout=
)
resp.raise_for_status()
meta = {}
re.finditer(
, resp.text
):
key, val = .group(), .group()
key == :
meta.setdefault(, []).append(val)
:
meta[key] = val
meta
() -> :
resp = requests.get(
,
timeout=,
)
resp.raise_for_status()
resp.json()
results = search_papers()
()
p results[][:]:
()
()
new = search_papers(new_this_week=, per_page=)
p new[]:
()
labor = search_papers(query=, program=, per_page=)
p labor[]:
()
meta = get_paper_metadata()
()
()
()
cycles = get_business_cycle_dates()
c cycles[-:]:
()
Key Datasets
| Dataset | Description |
|---|
| Business Cycle Dates | Official US recession start/end dates |
| CPS Extracts | Current Population Survey labor data |
| Macrohistory Database | 150 years of macro indicators |
| Patent Data | Patent citation and classification |
| Trade Data | Bilateral trade statistics |
References