GET
/api/v1/jurisdictions
Returns all available jurisdictions including federal, 50 states, and territories. No parameters required.
Parameters
This endpoint takes no query parameters. A single GET request returns the complete jurisdictions catalog.
Code Samples
curl
curl "https://federalstatelaw.com/api/v1/jurisdictions"
JavaScript (fetch)
const res = await fetch("https://federalstatelaw.com/api/v1/jurisdictions");
const { data } = await res.json();
// Get all state names
const states = data
.filter(j => j.level === "state")
.map(j => j.name);
console.log(states);Python (requests)
import requests
res = requests.get("https://federalstatelaw.com/api/v1/jurisdictions")
data = res.json()
# Get all state names
states = [j["name"] for j in data["data"] if j["level"] == "state"]
print(states)Example Response
JSON
{
"data": [
{
"id": "federal",
"name": "United States Federal",
"abbreviation": "US",
"slug": "federal",
"level": "federal",
"capital": "Washington, D.C.",
"population": 331900000
},
{
"id": "california",
"name": "California",
"abbreviation": "CA",
"slug": "california",
"level": "state",
"capital": "Sacramento",
"population": 39538223
}
],
"meta": { "total": 56 }
}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.