Skip to main content
POST
law.us.statutes.search

Authorizations

Authorization
string
header
required

API key: sk_live_…

Headers

Idempotency-Key
string

Optional. A retry with the same key returns the stored result.

Maximum string length: 255
Pramaan-Max-Price-Micro
string

Optional. The most this request may be priced at, in micro-USD (a whole number above 0). It replaces the capability's own price ceiling for this request, lower or higher. Sources that could cost more are left out; when none is left the answer is 400 with the lowest limit that would work.

Pattern: ^[1-9]\d{0,14}$

Body

application/json
query
string
required

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.

actStatus
string

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

Required string length: 1 - 512
agency
string

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

Required string length: 1 - 512
changedSince
string

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

Required string length: 1 - 512
chapter
string

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

Required string length: 1 - 512
code
string

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.

Required string length: 1 - 20000
corpusType
string

Which body of law: statutes, regulations, court rules and so on, as the coverage list names them.

Required string length: 1 - 512
documentType
enum<string>

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

Available options:
final,
proposed,
presidential
excerptChars
integer

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.

Required range: 0 <= x <= 1000000
excludeRepealed
boolean

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

limit
number

How many to return, 1 to 50. Default 10.

Required range: x >= 1
matchType
enum<string>

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

Available options:
any,
all,
phrase
part
string

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.

Required string length: 1 - 512
publishedFrom
string

Only Federal Register documents published on or after this date.

Required string length: 1 - 512
publishedTo
string

Only Federal Register documents published on or before this date.

Required string length: 1 - 512
source
string

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.

Required string length: 1 - 512
state
string

Two-letter US state code; leave out for federal law.

Required string length: 1 - 512
titleNumber
integer

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

Required range: 0 <= x <= 1000000
yearFrom
integer

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.

Required range: 0 <= x <= 1000000
yearTo
integer

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

Required range: 0 <= x <= 1000000

Response

The result

results
object[]
required

The matching items.

nextCursor
string

Pass as cursor to get the next page; absent on the last page.