caselaw-access-api
Query 360+ years of US case law via the Harvard Caselaw Access Project
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Query 360+ years of US case law via the Harvard Caselaw Access Project
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
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.
公司金融实证研究的"漏斗式选题查找器"。互动开场先后询问 (1) 研究方向、(2) 候选标题数量 N, 再扫描全球文献(已出版英文学术期刊 + SSRN working paper + 全球高校 department seminar 1 年内日程),基于 Edmans (2024) "1000 Rejections" 红线生成 N 个候选标题,**通过并行 subagent(Agent 工具)批量生成计划书 + 查新;每个 subagent 必须强制调用 Skill 工具加载 econfin-proposal 与 novelty-check 两个预设 skill 完成各自模块**,**只有当 novelty score >= 9 时(即 JF/JFE/RFS 顶刊层次),subagent 才把 proposal + 查新报告合并的 md 写入 F:\Dropbox\CC\选题大全\<研究方向短名>\(以"简短选题名称-分数"命名,子文件夹名由 Step 0 从用户输入的研究方向派生);< 9 分的选题在 subagent 内部直接丢弃,绝不写盘、绝不输出**。当用户说"找选题"、"帮我找选题"、"想做 X 方向"、 "empirical CF idea search"、"批量生成研究计划书"、"100 ideas"、"econfin-idea-finder" 时触发。
Create and compile beautiful Beamer presentations following the Rhetoric of Decks philosophy. Use when making slides, creating decks, or compiling .tex presentation files.
Scaffold a new research project with standard directory structure, CLAUDE.md template, and documented README. Use this at the start of every new project to ensure consistent organization.
Download, split, and deeply read academic PDFs. Use when asked to read, review, or summarize an academic paper. Splits PDFs into 4-page chunks, reads them in small batches, and produces structured reading notes — avoiding context window crashes and shallow comprehension.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
| name | caselaw-access-api |
| description | Query 360+ years of US case law via the Harvard Caselaw Access Project |
| metadata | {"openclaw":{"emoji":"⚖️","category":"domains","subcategory":"law","keywords":["case law","legal database","court opinions","Harvard law","judicial data","legal research"],"source":"https://case.law/"}} |
The Caselaw Access Project (CAP) by Harvard Law School provides free access to 6.9 million US court opinions spanning 360+ years. The REST API enables searching, filtering, and downloading full-text case opinions from all federal and state courts. No authentication required for metadata; API key (free registration) required for full text of post-1923 cases.
https://api.case.law/v1/
# Search cases by keyword
curl "https://api.case.law/v1/cases/?search=free+speech&decision_date_min=2020-01-01"
# Get a specific case by ID
curl "https://api.case.law/v1/cases/12345678/"
# Filter by jurisdiction and court
curl "https://api.case.law/v1/cases/?jurisdiction=us&court=us-sup-ct&search=miranda+rights"
# Filter by date range
curl "https://api.case.law/v1/cases/?decision_date_min=2015-01-01&decision_date_max=2025-12-31"
# Get full text (requires API key for post-1923)
curl -H "Authorization: Token YOUR_API_KEY" \
"https://api.case.law/v1/cases/12345678/?full_case=true"
| Parameter | Description | Example |
|---|---|---|
search | Full-text search | search=due+process |
jurisdiction | Filter by jurisdiction slug | jurisdiction=cal (California) |
court | Filter by court slug | court=us-sup-ct |
decision_date_min | Earliest date | decision_date_min=2020-01-01 |
decision_date_max | Latest date | decision_date_max=2025-12-31 |
cite | Search by citation | cite=410+U.S.+113 |
name_abbreviation | Case name | name_abbreviation=Roe+v.+Wade |
ordering | Sort results | ordering=-decision_date |
page_size | Results per page (max 100) | page_size=50 |
full_case | Include full text | full_case=true |
# List all courts
curl "https://api.case.law/v1/courts/"
# List all jurisdictions
curl "https://api.case.law/v1/jurisdictions/"
# List all reporters (case report series)
curl "https://api.case.law/v1/reporters/"
import requests
BASE_URL = "https://api.case.law/v1"
def search_cases(query: str, jurisdiction: str = None,
court: str = None, max_results: int = 20) -> list:
"""Search US case law."""
params = {"search": query, "page_size": min(max_results, 100)}
if jurisdiction:
params["jurisdiction"] = jurisdiction
if court:
params["court"] = court
resp = requests.get(f"{BASE_URL}/cases/", params=params)
resp.raise_for_status()
data = resp.json()
cases = []
for case in data.get("results", []):
cases.append({
"id": case["id"],
"name": case["name_abbreviation"],
"citation": case["citations"][0]["cite"] if case.get("citations") else None,
"court": case["court"]["name"],
"date": case["decision_date"],
"url": case["frontend_url"]
})
return cases
# Search Supreme Court cases
results = search_cases("fourth amendment", court="us-sup-ct")
for case in results:
print(f"{case['citation']}: {case['name']} ({case['date']})")
For large-scale research, download bulk datasets instead of querying the API:
# Bulk data available at:
# https://case.law/bulk/download/
# Formats: JSON (full case data) or text-only
# Organized by jurisdiction and reporter
| Slug | Jurisdiction | Cases |
|---|---|---|
us | Federal (all) | ~1.5M |
us-sup-ct | US Supreme Court | ~65K |
cal | California | ~500K |
ny | New York | ~600K |
tex | Texas | ~300K |
ill | Illinois | ~250K |
1. Register at https://case.law/user/register/
2. Get API token from your account page
3. Include in requests: Authorization: Token YOUR_TOKEN
Free accounts get full text for pre-1923 cases. Post-1923 full text requires an API token (still free).