Call it
curl https://api.peume.com/v1/call/count-sections-in-scope \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"corpusType": "your corpusType",
"state": "your state"
}
}'const res = await fetch("https://api.peume.com/v1/call/count-sections-in-scope", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"corpusType": "your corpusType",
"state": "your state"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/count-sections-in-scope",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"corpusType": "your corpusType",
"state": "your state"
}
},
)
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: count-sections-in-scope.
Parameters
corpusTypestringRestrict to one corpus or a list, e.g. 'CFR' or ['USC','CFR']. Omit to cover every corpus. /us/statutes/coverage lists what each jurisdiction holds.
statestringLowercase two-letter jurisdiction code (50 states, 'dc', 'pr'), or 'federal' for USC / CFR / Constitution / federal rules. A list covers several at once.
codestringState statutory code identifier, e.g. 'tx_pe' (Texas Penal Code) — the identifier /us/statutes/divisions returns for corpusType=STATE. The only way to scope below a whole jurisdiction.
titleNumberintegerUSC or CFR title number, e.g. 17 (SEC) or 42 (civil rights). State titles are not numeric — use code.
chapterstringChapter within a title or code, e.g. '21'. Must be paired with titleNumber or code, or upstream answers 422.
partstringPart within a title or code, e.g. '240' (17 C.F.R. Part 240). Must be paired with titleNumber or code, or upstream answers 422.
actStatusstringKeep only sections carrying these publisher statuses, e.g. 'repealed'. Contradicts excludeRepealed when it names a dead status (upstream 422).
excludeRepealedbooleanDrop sections whose status is affirmatively dead (repealed, renumbered, superseded,...). A section with no recorded status is kept; read goodLawStatus on each result.
