Call it
curl https://api.peume.com/v1/call/browse-statutory-hierarchy \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"corpusType": "USC"
}
}'const res = await fetch("https://api.peume.com/v1/call/browse-statutory-hierarchy", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"corpusType": "USC"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/browse-statutory-hierarchy",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"corpusType": "USC"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: browse-statutory-hierarchy.
Parameters
corpusTypeRequiredstringCorpus to browse. Other corpora are flatter — search them instead.
USC · CFR · STATE · REGULATION
statestringLowercase two-letter jurisdiction code, e.g. 'tx'; required for STATE and REGULATION.
al · ak · az · ar · ca · co · ct · de · dc · fl · ga · hi …
titleNumberintegerUSC or CFR title number to drill into.
codestringState code identifier to drill into, e.g. 'tx_pe' — the identifier returned by browsing corpusType=STATE with a state.
chapterstringChapter identifier to drill into (USC and state codes).
partstringPart identifier to drill into (CFR).
excludeRepealedbooleanLeave out sections whose status is affirmatively dead. A section with no recorded status is kept.
actStatusstringList only sections carrying this status, e.g. 'repealed'.
abolished · deleted · expired · in_force · inactive · non_precedential · not_funded · not_yet_effective · omitted · proposed · recodified · recompiled …
cursorstringResume token from a previous response's nextCursor, at the level that lists sections.
