Call it
curl https://api.peume.com/v1/call/search-us-law \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"query": "your query"
}
}'const res = await fetch("https://api.peume.com/v1/call/search-us-law", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"query": "your query"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/search-us-law",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"query": "your query"
}
},
)
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: search-us-law.
Parameters
queryRequiredstringNatural-language or keyword query (2-500 characters). A recognized citation such as '42 U.S.C. § 1983' resolves to that section at rank 1.
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.
matchTypestring'any' (default) is hybrid semantic + keyword ranking; 'all' requires every query term; 'phrase' requires the exact phrase.
any · all · phrase
yearFromintegerOnly sections dated in or after this year (credited amendment year, else effective year, else publication year). Sections carrying none are excluded once a bound is set.
yearTointegerOnly sections dated in or before this year. A currency filter, not point-in-time retrieval.
changedSincestringOnly sections observed to change on or after this date (YYYY-MM-DD) — the date the change was observed, not its effective date. Narrow with corpusType and state; a window matching too many sections answers 422.
sourcestringNamed source within a corpus, e.g. 'frcp' (FEDERAL_RULES), 'irs_rev_rul' (AGENCY_GUIDANCE), 'far' (CFR). Every result carries its own source, so a hit's value can be passed straight back.
agencystringFederal Register agency slug, e.g. 'environmental-protection-agency'. Applies to FEDERAL_REGISTER and EXECUTIVE_ACTION only.
documentTypestringFederal Register document stage: a final rule, a proposed rule, or a Presidential Document.
final · proposed · presidential
publishedFromstringOnly Federal Register documents published on or after this date.
publishedTostringOnly Federal Register documents published on or before this date.
fieldsarrayReturn only these result fields, e.g. ['title','excerpt']. actId and citation are always included. Omit for the full object.
limitintegerResults per page (1-50, default 10).
offsetintegerResults to skip (0-70). Check hasMore to page forward.
excerptCharsintegerCharacters of matching text in each result's excerpt (100-4000, default 500). The excerpt can begin mid-section; quote from the full text instead.
includeBodybooleanReturn each result's full text inline on body. Adds the ordinary full-text price for every result that returns text, so it multiplies with limit — keep limit small.
