skills/43-wentorai-research-plugins/skills/domains/economics/repec-economics-api/SKILL.md
Access 4M+ economics working papers and articles via RePEc API
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research repec-economics-apiInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
RePEc is the largest decentralized bibliographic database for economics, indexing 4.4M+ items (working papers, journal articles, books, software) from 2,600+ publishers. It powers IDEAS and EconPapers — the two most-used economics paper search engines. The API provides metadata access and citation data. Free, no authentication required for basic access.
# Search economics papers
curl "https://ideas.repec.org/cgi-bin/htsearch?q=monetary+policy+inflation&cmd=Search&fmt=json"
# Search specific types
# Working papers
curl "https://ideas.repec.org/cgi-bin/htsearch?q=fiscal+stimulus&ul=%%2Fp%%2F&fmt=json"
# Journal articles
curl "https://ideas.repec.org/cgi-bin/htsearch?q=trade+liberalization&ul=%%2Fa%%2F&fmt=json"
# Get metadata for a handle
curl "https://api.repec.org/handle?handle=RePEc:nbr:nberwo:28104"
# Author profile by short-id
curl "https://api.repec.org/author?short-id=ppi1"
# List items in a series
curl "https://api.repec.org/series?series=RePEc:nbr:nberwo"
# Get citations for a paper
curl "https://citec.repec.org/api/plain/RePEc:nbr:nberwo:28104"
# Response: list of citing paper handles
# Get download/view statistics
curl "https://logec.repec.org/scripts/paperstat.pf?h=RePEc:nbr:nberwo:28104"
RePEc:{archive}:{series}:{id}
Examples:
RePEc:nbr:nberwo:28104 → NBER Working Paper 28104
RePEc:aea:aecrev:v:114:y:2024:i:1:p:1-25 → AER article
RePEc:ecm:emetrp:v:92:y:2024:i:3:p:821-845 → Econometrica article
RePEc:red:sed024:1234 → SED 2024 meeting paper
| Prefix | Publisher |
|--------|-----------|
| nbr | National Bureau of Economic Research (NBER) |
| aea | American Economic Association |
| ecm | Econometric Society |
| wbk | World Bank |
| imf | International Monetary Fund |
| fed | Federal Reserve System |
| cpr | Centre for Economic Policy Research (CEPR) |
import requests
IDEAS_URL = "https://ideas.repec.org/cgi-bin/htsearch"
CITEC_URL = "https://citec.repec.org/api/plain"
def search_economics(query: str, max_results: int = 20,
paper_type: str = None) -> list:
"""Search economics papers on IDEAS/RePEc."""
params = {
"q": query,
"cmd": "Search",
"fmt": "json",
"ps": max_results,
}
if paper_type == "working_papers":
params["ul"] = "%2Fp%2F"
elif paper_type == "articles":
params["ul"] = "%2Fa%2F"
resp = requests.get(IDEAS_URL, params=params, timeout=30)
resp.raise_for_status()
data = resp.json()
results = []
for item in data.get("matches", []):
results.append({
"title": item.get("title", ""),
"url": item.get("url", ""),
"handle": item.get("handle", ""),
"authors": item.get("authors", ""),
"date": item.get("date", ""),
"abstract": item.get("abstract", "")[:300],
})
return results
def get_citations(handle: str) -> list:
"""Get papers citing a given RePEc handle."""
resp = requests.get(f"{CITEC_URL}/{handle}", timeout=30)
resp.raise_for_status()
citations = []
for line in resp.text.strip().split("\n"):
line = line.strip()
if line and line.startswith("RePEc:"):
citations.append(line)
return citations
def search_working_papers(topic: str) -> list:
"""Search specifically for working papers."""
return search_economics(topic, paper_type="working_papers")
# Example: find monetary policy research
papers = search_economics("central bank digital currency", max_results=10)
for p in papers:
print(f"[{p['date']}] {p['title']}")
print(f" {p['authors']}")
# Example: citation analysis
if papers and papers[0].get("handle"):
cites = get_citations(papers[0]["handle"])
print(f"\nCited by {len(cites)} papers")
for c in cites[:5]:
print(f" {c}")
| Product | URL | Description | |---------|-----|-------------| | IDEAS | ideas.repec.org | Full-text search engine | | EconPapers | econpapers.repec.org | Alternative search interface | | CitEc | citec.repec.org | Citation analysis | | LogEc | logec.repec.org | Usage statistics | | AuthorService | authors.repec.org | Author profiles and rankings | | CollEc | collec.repec.org | Institutional research output |
RePEc publishes monthly rankings of economists, institutions, and journals based on citations, downloads, and h-index:
# Top economists
curl "https://ideas.repec.org/top/top.person.all.html"
# Top institutions
curl "https://ideas.repec.org/top/top.inst.all.html"
tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.