PeumeAPI

Developer & public data

Count Sections in Scope

Count the law sections in a jurisdiction, corpus, code, title, chapter, or part.

$0.015 per call

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"
  }
}'

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

corpusTypestring

Restrict 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.

statestring

Lowercase two-letter jurisdiction code (50 states, 'dc', 'pr'), or 'federal' for USC / CFR / Constitution / federal rules. A list covers several at once.

codestring

State 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.

titleNumberinteger

USC or CFR title number, e.g. 17 (SEC) or 42 (civil rights). State titles are not numeric — use code.

chapterstring

Chapter within a title or code, e.g. '21'. Must be paired with titleNumber or code, or upstream answers 422.

partstring

Part 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.

actStatusstring

Keep only sections carrying these publisher statuses, e.g. 'repealed'. Contradicts excludeRepealed when it names a dead status (upstream 422).

excludeRepealedboolean

Drop sections whose status is affirmatively dead (repealed, renumbered, superseded,...). A section with no recorded status is kept; read goodLawStatus on each result.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.