GET
/api/v1/cases
Search and filter U.S. court cases. Supports filtering by jurisdiction, topic, and court level.
Parameters
| Parameter | Type | Description |
|---|---|---|
jurisdiction | string | Jurisdiction ID or name |
topic | string | Topic keyword |
court | string | Court name or level |
limit | number | Results per page (default: 20, max: 100) |
offset | number | Skip N results |
Code Samples
curl
curl "https://federalstatelaw.com/api/v1/cases?court=supreme&topic=civil-rights&limit=5"
JavaScript (fetch)
const res = await fetch(
"https://federalstatelaw.com/api/v1/cases?court=supreme&topic=civil-rights&limit=5"
);
const { data, meta } = await res.json();
data.forEach(c => {
console.log(`${c.caseName} (${c.citation})`);
});Python (requests)
import requests
res = requests.get(
"https://federalstatelaw.com/api/v1/cases",
params={"court": "supreme", "topic": "civil-rights", "limit": 5}
)
data = res.json()
for c in data["data"]:
print(f"{c['caseName']} ({c['citation']})")Example Response
JSON
{
"data": [
{
"id": "brown-v-board-1954",
"jurisdiction": "United States Federal",
"jurisdictionId": "federal",
"caseName": "Brown v. Board of Education",
"citation": "347 U.S. 483",
"court": "Supreme Court of the United States",
"year": 1954,
"topics": ["civil-rights", "education", "equal-protection"],
"summary": "Racial segregation in public schools violates the Equal Protection Clause..."
}
],
"meta": { "total": 34, "limit": 5, "offset": 0, "hasMore": true }
}Citing this endpoint
If you publish results from this endpoint, see our Citation Guide for correct attribution of public-domain U.S. legal materials.
Related
This is legal information, not legal advice. Laws vary by jurisdiction and change frequently. Always verify current law with official sources and consult a licensed attorney in your jurisdiction for advice on your specific situation.