PeumeAPI

Search & SEO

Search US Law

Search US federal and state statutes, regulations, and court rules by question or keyword.

From $0.06 per call

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

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

queryRequiredstring

Natural-language or keyword query (2-500 characters). A recognized citation such as '42 U.S.C. § 1983' resolves to that section at rank 1.

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.

matchTypestring

'any' (default) is hybrid semantic + keyword ranking; 'all' requires every query term; 'phrase' requires the exact phrase.

any · all · phrase

yearFrominteger

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

yearTointeger

Only sections dated in or before this year. A currency filter, not point-in-time retrieval.

changedSincestring

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

sourcestring

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

agencystring

Federal Register agency slug, e.g. 'environmental-protection-agency'. Applies to FEDERAL_REGISTER and EXECUTIVE_ACTION only.

documentTypestring

Federal Register document stage: a final rule, a proposed rule, or a Presidential Document.

final · proposed · presidential

publishedFromstring

Only Federal Register documents published on or after this date.

publishedTostring

Only Federal Register documents published on or before this date.

fieldsarray

Return only these result fields, e.g. ['title','excerpt']. actId and citation are always included. Omit for the full object.

limitinteger

Results per page (1-50, default 10).

offsetinteger

Results to skip (0-70). Check hasMore to page forward.

excerptCharsinteger

Characters of matching text in each result's excerpt (100-4000, default 500). The excerpt can begin mid-section; quote from the full text instead.

includeBodyboolean

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

Start free · $1 of calls included

Every API your business needs. One key.

7,000+ data and AI APIs behind one key, with backup sources built in.