Skip to main content
POST
Search US statutes, constitutions, court rules, and executive actions

Authorizations

Authorization
string
header
required

API key issued from the developer dashboard. Pass as Authorization: Bearer vq_key_... (preferred).

Headers

Idempotency-Key
string | null

Optional. 16 to 255 visible ASCII characters (a UUIDv4 works). Repeating the same request with the same key replays the original 2xx response for 24 hours without charging again. The same key on a different request is rejected. With the account's cacheQueryDerivedData retention setting off, no body is stored and a retry answers 409 idempotency_replay_unavailable, still without a second charge.

Required string length: 16 - 255
Pattern: ^[\x21-\x7e]+$
Example:

"3f9c2a1e-7b44-4d0a-9c1e-5a6b7c8d9e0f"

Body

application/json
query
string
required

Search query in natural language.

Required string length: 2 - 500
Example:

"insider trading penalties"

corpusType

A public corpusType token.

Available options:
USC,
CFR,
STATE,
CONSTITUTION,
FEDERAL_RULES,
FEDERAL_LOCAL_RULES,
STATE_CONSTITUTION,
STATE_RULES,
EXECUTIVE_ACTION,
REGULATION,
FEDERAL_REGISTER,
FEDERAL_REGISTER_NOTICE,
AGENCY_GUIDANCE,
SENTENCING_GUIDELINES,
US_TAX_TREATY,
US_TREATY,
STATE_AGENCY_GUIDANCE,
STATE_AG_OPINION,
STATE_REGISTER,
SESSION_LAW,
STATUTE_COMPILATION,
AGENCY_ADJUDICATION,
CFR_ANNUAL,
USC_ANNUAL,
FEDERAL_BILL,
FEDERAL_RULES_ANNUAL,
FEDERAL_RULES_PROPOSED
Example:

"CFR"

state

Jurisdiction filter. A 2-letter code for one of the 56 supported US jurisdictions (50 states + DC + PR, GU, VI, AS, MP), or federal to scope to USC / CFR / Constitution / federal rules. Pass a LIST to search several at once ("state": ["ca", "ny", "tx"]), which is one call instead of one per jurisdiction. Case-insensitive: ca and CA both work. An unrecognized value is rejected with 422 rather than silently matching nothing. Omit to search every jurisdiction.

Available options:
federal,
al,
ak,
as,
az,
ar,
ca,
co,
ct,
de,
dc,
fl,
ga,
gu,
hi,
id,
il,
in,
ia,
ks,
ky,
la,
me,
md,
ma,
mi,
mn,
ms,
mo,
mt,
ne,
nv,
nh,
nj,
nm,
ny,
nc,
nd,
mp,
oh,
ok,
or,
pa,
pr,
ri,
sc,
sd,
tn,
tx,
ut,
vt,
vi,
va,
wa,
wv,
wi,
wy
Example:

"ca"

code

Restrict to specific state statutory codes, e.g. tx_pe for the Texas Penal Code. Values are the identifiers returned by GET /us/statutes/divisions?corpusType=STATE&state=XX, so the browse output can be fed straight back in. Pass a list to search several codes, across states if you like (["tx_pe", "ca_pen"]). This is the only way to scope below a whole jurisdiction: state=tx alone searches every Texas code at once.

With corpusType=FEDERAL_RULES, a value can instead be a federal rule set as GET /us/statutes/divisions?corpusType=FEDERAL_RULES lists it: frcp, fre, frcpsuppadm, or an appendix copy such as uscapp_t28a_fre. Without that corpusType a bare frcp is refused, because it cannot be told apart from a state code missing its state.

Example:

"tx_pe"

article

Scope a search to one or more articles. On CONSTITUTION and STATE_CONSTITUTION this is the article label as GET /us/statutes/divisions lists it (Amendment XIV, Article IV, Preamble). On STATE / REGULATION it is the article of a code divided by article instead of chapter, such as New York (2-A in ny_jud). This is the search side of parent.article: pass a hit's parent straight back to search within its article.

Pass the identifier exactly as the listing returned it; a case slip such as amendment xiv also matches. Article labels repeat, so article needs a corpusType from one of those two families, STATE_CONSTITUTION also needs state, and STATE / REGULATION need the code. A request missing one is refused with 422 before anything is charged. String or list.

Example:

"Amendment XIV"

yearFrom
integer | null

Only return sections dated in or after this year. Combine with yearTo for a window. A section matches on the first of three years it carries: the most recent amendment the publisher credits in its own history note; else its effective year, for a section adopted once and never amended; else, for corpora dated by publication rather than amendment (Federal Register proposed rules, agency guidance, adjudications, the treaty record), the document's own publication or issue year. Every one of those tracks the LAW or the document, never when we last rebuilt the corpus. A section carrying none of the three is excluded once either bound is set, so an unbounded search returns strictly more.

Required range: 1700 <= x <= 2100
Example:

2020

yearTo
integer | null

Only return sections dated in or before this year, on the same three years yearFrom describes. Note it filters the LAST such date, so a section amended in 2025 is excluded by yearTo=2024 even though it existed in 2024. This is a currency filter, not point-in-time retrieval: the corpus holds one current text per citation.

Required range: 1700 <= x <= 2100
Example:

2026

excludeRepealed
boolean
default:false

Drop sections whose own status says they are no longer operative: repealed, renumbered, transferred, recodified, rescinded, revoked, expired, superseded, omitted, reserved, and the rest of the dead and not-operative vocabulary (the full set is the one behind each result's goodLawStatus).

This removes what we KNOW is dead. It does not promise the remainder is good law. A section survives this filter when its status is in_force OR when we hold no trustworthy repeal signal for its jurisdiction, and those two are not the same thing. Read goodLawStatus on each surviving result to tell them apart: good_law is checked, unknown is unchecked. Filtering on the status we store and reporting the verdict we derive are deliberately separate, because only the first is indexable.

The United States Code is served from the continuously refreshed OLRC release point (year 2026, currentThrough is the release point's date), so a section repealed after that release point closed still carries actStatus: in_force until the next refresh and survives this filter. A USC section stored in_force reports goodLawStatus: good_law. Use /section/{actId}/changes for the timeline on a section you depend on.

Example:

true

actStatus

Positively scope to one or more raw publisher statuses, e.g. "repealed" to find only dead law, or ["in_force"] for only sections affirmatively marked current. This is the inverse of excludeRepealed and is what you want for a compliance diff that asks what was LOST rather than what remains.

Values are the statuses this API classifies: abolished, deleted, expired, in_force, inactive, non_precedential, not_funded, not_yet_effective, omitted, proposed, recodified, recompiled, rejected, relocated, removed, renumbered, repealed, rescinded, reserved, revoked, superseded, terminated, transferred, unconstitutional, vacant, vacated, vetoed, withdrawn. A result's actStatus can carry other raw publisher words (enacted on session laws, snapshot, pending); those are not filterable and are rejected with 422, because we cannot say what they mean for whether the law is good. Combining a dead status here with excludeRepealed: true contradicts itself and is rejected with 422 rather than silently returning nothing.

Available options:
abolished,
deleted,
expired,
in_force,
inactive,
non_precedential,
not_funded,
not_yet_effective,
omitted,
proposed,
recodified,
recompiled,
rejected,
relocated,
removed,
renumbered,
repealed,
rescinded,
reserved,
revoked,
superseded,
terminated,
transferred,
unconstitutional,
vacant,
vacated,
vetoed,
withdrawn
Example:

"repealed"

changedSince
string<date>

Only return sections we have OBSERVED change on or after this date (YYYY-MM-DD). This is the sync filter: it turns a lookup API into something a nightly job can poll, without creating a board watch per jurisdiction.

These are observed changes, not effective dates. A refresh compared the publisher against the copy we held and found it different; the date is when we SAW it, an upper bound on when it took effect. It is the same event stream GET /us/statutes/section/{actId}/changes serves per section, so a hit here has a history there.

Coverage is bounded by capture, not by the age of the law. Change capture began long after the corpus did, it is per-source, and events are swept at 5 years. An empty result means no captured change in the window, never that nothing was amended.

Narrow with corpusType and state for a tighter window: the change set is resolved to concrete sections before the search runs, and a window matching too many sections is rejected with a 422 that says so rather than silently truncating your answer.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2026-08-01"

agency

Federal Register agency slug, e.g. environmental-protection-agency. The agency's full name (Environmental Protection Agency) or its Federal Register acronym (EPA, e.p.a.) resolves to the same slug; an acronym the Federal Register gives to more than one agency (FS) or a value naming no agency the corpus holds is a 422, never a charge. Pass a list to match any of several. Applies to FEDERAL_REGISTER and EXECUTIVE_ACTION; other corpora carry no agency, so combining this with them returns nothing.

Example:

"environmental-protection-agency"

documentType
enum<string> | null

Federal Register document stage: final (a rule in force), proposed (an NPRM), or presidential (a Presidential Document, the EXECUTIVE_ACTION corpus). The same distinction appears in each row's actId prefix (FR_RULE_ vs FR_PRORULE_).

Available options:
final,
proposed,
presidential
Example:

"final"

publishedFrom
string<date>

Only return Federal Register documents published on or after this date (YYYY-MM-DD). This is the PUBLICATION date, which is not the same as yearFrom: that filters the version year of a section.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2024-01-01"

publishedTo
string<date>

Only return Federal Register documents published on or before this date.

Pattern: ^\d{4}-\d{2}-\d{2}$
Example:

"2024-12-31"

titleNumber
integer | null

Filter by USC/CFR title number (e.g., 17 for SEC, 42 for civil rights). Only meaningful for USC/CFR; ignored for state corpora whose titles are alphabetic (e.g. Texas pe = Penal Code).

Required range: x >= 1
Example:

17

chapter

Scope a search to one or more chapters within a title or code, e.g. 21 for USC Title 42 Chapter 21. This is the search-side of the parent object on each result: pass a hit's parent.chapter straight back to search that hit's neighbors. Chapter numbers repeat across titles, so pair it with titleNumber (USC) or code (state); an unpaired chapter is rejected. String or list.

Example:

"21"

part

Scope a search to one or more parts within a title, e.g. 240 for 17 C.F.R. Part 240. The CFR counterpart to chapter: pass a hit's parent.part straight back to search within that part. Pair it with titleNumber; an unpaired part is rejected. String or list.

Example:

"240"

source

Scope to one or more of the following. The named source within corpusType, for corpora that fold several independently filterable bodies of law into one token.

FEDERAL_RULES sources: frcp (Federal Rules of Civil Procedure), frcrp (Federal Rules of Criminal Procedure), fre (Federal Rules of Evidence), frap (Federal Rules of Appellate Procedure), frbp (Federal Rules of Bankruptcy Procedure), sct (Rules of the Supreme Court of the United States).

CFR sources: far (Federal Acquisition Regulation (48 C.F.R. ch. 1)), dfars (Defense Federal Acquisition Regulation Supplement (48 C.F.R. ch. 2)) (both are already part of CFR; this only splits the existing Title 48 data by chapter, it does not add new sections).

AGENCY_GUIDANCE sources: administrative_guidance (Synthesized administrative guidance (e.g. SALT cap, CTC, 401(k) limits)), ssa_ruling (Social Security Administration Rulings), irs_rev_proc (IRS Revenue Procedures), irs_notice (IRS Notices), irs_rev_rul (IRS Revenue Rulings), irs_announcement (IRS Announcements), irs_irm (Internal Revenue Manual (IRS internal procedure)), merger_guidelines (DOJ & FTC Merger Guidelines (2023)), doj_leniency (DOJ Antitrust Division Leniency Policy), doj_business_review (DOJ Antitrust Division Business Review Letters (1991-2021)), cms_iom (CMS Medicare Internet-Only Manuals (instruction to Medicare contractors, not a regulation)), copyright_circular (US Copyright Office Circulars), copyright_compendium (Compendium of U.S. Copyright Office Practices, Third Edition (2014, 2017 and 2021 editions)), doj_justice_manual (DOJ Justice Manual), uscis_policy_manual (USCIS Policy Manual), mpep (USPTO Manual of Patent Examining Procedure (MPEP)), tmep (USPTO Trademark Manual of Examining Procedure (TMEP)), cftc_staff_letter (CFTC Staff Letters (no-action, exemptive, interpretative; 2008-present)), fincen_ruling (FinCEN Administrative Rulings), fincen_guidance (FinCEN Guidance (alerts, advisories, notices, bulletins, fact sheets)), fincen_boi_faq (FinCEN Beneficial Ownership Information FAQs), fincen_boi_rule_qa (FinCEN BOI Rulemaking Q&As (final rule and interim final rule)), fincen_boi_compliance_guide (FinCEN Small Entity Compliance Guide (Beneficial Ownership Information Reporting)), fincen_amla_material (FinCEN Anti-Money Laundering Act of 2020 Implementation Material), frb_sr_letter (Federal Reserve Supervision and Regulation (SR) / Consumer Affairs (CA) Letters), occ_bulletin (OCC Bulletins), occ_interpretive_letter (OCC Interpretive Letters), fdic_fil (FDIC Financial Institution Letters (FILs)), cfpb_supervisory_guidance (CFPB Supervisory Guidance), cfpb_circular (CFPB Consumer Financial Protection Circulars), dfars_pgi (DFARS PGI (Procedures, Guidance, and Information)), ftc_advisory_opinion (FTC Advisory Opinions), ftc_policy_statement (FTC Policy Statements (1967-present)), ftc_hsr_interpretation (FTC HSR Premerger Notification Interpretations: the Commission's formal interpretations under 16 C.F.R. 803.30 (1978-2000, a closed series) and the Premerger Notification Office's informal interpretations (1983-present; the publisher serves none from 1997)), ftc_advocacy_filing (FTC Advocacy Filings: comments and letters to state legislatures, state courts, governors and other federal agencies on the competition effects of a proposed measure (1985-present). Advisory only: they bind nobody and decide no case), nlrb_gc_memo (NLRB General Counsel Memoranda), nlrb_advice_memo (NLRB Division of Advice Memoranda (rolling 10-year window, not the full archive)), cpsc_advisory_opinion (CPSC Office of General Counsel Advisory Opinions (historical, 1970s-2012)), cpsc_secg (CPSC Small Entity Compliance Guides), whd_opinion_letter (DOL Wage and Hour Division Opinion, Ruling and Administrator Interpretation Letters (FLSA, FMLA, DBRA, SCA, CCPA, MSPA; 1993-present)), whd_foh (DOL Wage and Hour Field Operations Handbook (WHD internal enforcement procedure, not law; 22 chapters)), bis_advisory_opinion (BIS (Bureau of Industry and Security) Advisory Opinions), ddtc_commodity_jurisdiction (DDTC (Directorate of Defense Trade Controls) Commodity Jurisdiction Determinations), ddtc_guidance (DDTC (Directorate of Defense Trade Controls) Policy Guidance Documents), ofac_faq (OFAC (Office of Foreign Assets Control) Frequently Asked Questions), hhs_ocr_hipaa_faq (HHS Office for Civil Rights HIPAA FAQs), hhs_ocr_hipaa_guidance (HHS Office for Civil Rights HIPAA Guidance Materials), hhs_ocr_resolution_agreement (HHS Office for Civil Rights HIPAA Resolution Agreements and Civil Money Penalties), fcc_declaratory_ruling (FCC (Federal Communications Commission) Declaratory Rulings), ferc_policy_statement (FERC (Federal Energy Regulatory Commission) Policy Statements), doe_appliance_guidance (DOE Appliance Standards Guidance and FAQs), eeoc_guidance (EEOC (Equal Employment Opportunity Commission) Enforcement and Policy Guidance, including Compliance Manual sections), irs_written_determination (IRS Written Determinations under 26 U.S.C. § 6110: Private Letter Rulings (PLR), Technical Advice Memoranda (TAM) and Chief Counsel Advice (CCA). Each is directed only to the taxpayer who requested it and, by § 6110(k)(3), may not be used or cited as precedent).

US_TAX_TREATY sources: us_tax_treaty (U.S. Bilateral Income Tax Treaties), us_tax_treaty_technical_explanation (Treasury Technical Explanations (article-by-article commentary on a tax treaty)).

US_TREATY sources: us_treaty (Treaty and International Agreement Text (Stat., U.S.T., T.I.A.S., Bevans, FATCA agreements, free trade agreements, Social Security totalization agreements)), senate_treaty (Senate Treaty Records (transmittal, parties and proceedings)), senate_treaty_resolution (Senate Resolutions of Advice and Consent, including the reservations, understandings and declarations that narrow a treaty's effect in US law), senate_treaty_document (Treaty Documents (CDOC TDOC series): the President's message transmitting a treaty to the Senate, with the instrument's text), senate_executive_report (Senate Executive Reports: the committee's report recommending advice and consent to a treaty, with its analysis of the instrument).

STATE_AGENCY_GUIDANCE sources: state_insurance_bulletin (State Department of Insurance Bulletins), state_financial_bulletin (State Financial-Institutions Regulator Bulletins (banking, credit unions, trust companies, escrow agents, consumer lenders, money transmitters; AZ and OR only, where that regulator shares an index with the insurance regulator)).

AGENCY_ADJUDICATION sources: mspb_precedential (MSPB Precedential Decisions), mspb_nonprecedential (MSPB Nonprecedential Orders), olc_opinion (DOJ Office of Legal Counsel Opinions (official bound volumes, 1933-2020)), cfpb_enforcement_action (CFPB Enforcement Actions), sec_commission_opinion (SEC Commission Opinions and Adjudicatory Orders), bia_precedent (BIA Precedent Decisions (I&N Dec.)), ag_precedent (Attorney General Immigration Decisions (I&N Dec.)), immigration_admin_precedent (INS and USCIS Administrative Precedent Decisions (I&N Dec.)), nlrb_board_decision (NLRB Board Decisions (1935 to date)), ftc_administrative_decision (FTC Part 3 Administrative Decisions). Every result carries its own source, so you can pass a hit's value straight back. An unrecognized value is rejected with 422.

Available options:
administrative_guidance,
ag_precedent,
agency_guidance,
bia_precedent,
bis_advisory_opinion,
cfpb_circular,
cfpb_enforcement_action,
cfpb_supervisory_guidance,
cftc_staff_letter,
cms_iom,
copyright_circular,
copyright_compendium,
cpsc_advisory_opinion,
cpsc_secg,
ddtc_commodity_jurisdiction,
ddtc_guidance,
dfars,
dfars_pgi,
doe_appliance_guidance,
doj_business_review,
doj_justice_manual,
doj_leniency,
eeoc_guidance,
far,
fcc_declaratory_ruling,
fdic_fil,
ferc_policy_statement,
fincen_amla_material,
fincen_boi_compliance_guide,
fincen_boi_faq,
fincen_boi_rule_qa,
fincen_guidance,
fincen_ruling,
frap,
frb_sr_letter,
frbp,
frcp,
frcrp,
fre,
ftc_administrative_decision,
ftc_advisory_opinion,
ftc_advocacy_filing,
ftc_hsr_interpretation,
ftc_policy_statement,
hhs_ocr_hipaa_faq,
hhs_ocr_hipaa_guidance,
hhs_ocr_resolution_agreement,
immigration_admin_precedent,
irs_announcement,
irs_irm,
irs_notice,
irs_rev_proc,
irs_rev_rul,
irs_written_determination,
merger_guidelines,
mpep,
mspb_nonprecedential,
mspb_precedential,
nlrb_advice_memo,
nlrb_board_decision,
nlrb_gc_memo,
occ_bulletin,
occ_interpretive_letter,
ofac_faq,
olc_opinion,
sct,
sec_commission_opinion,
senate_executive_report,
senate_treaty,
senate_treaty_document,
senate_treaty_resolution,
ssa_ruling,
state_financial_bulletin,
state_insurance_bulletin,
tmep,
us_tax_treaty,
us_tax_treaty_technical_explanation,
us_treaty,
uscis_policy_manual,
whd_foh,
whd_opinion_letter
Example:

"sct"

fields

Return only these result fields, e.g. ["title", "excerpt"]. A result carries 40+ fields and most are null on any given row, so a full page of 50 ships a lot of nulls. actId and citation are always included, because a row without them cannot be used or attributed. Unknown names are rejected with 422 so a typo does not silently drop a field you needed. Omit for the full object. The required list on the result schema describes the full object; a response narrowed with fields carries only the fields you named.

Available options:
abstract,
actId,
actStatus,
action,
adoptedAfterCurrentThrough,
adoptingCitations,
agencies,
agencySlugs,
alternateCitations,
amendmentHistory,
amendmentHistoryNote,
amendmentNote,
amendmentYears,
amendmentsCount,
articleName,
articleNumber,
audience,
body,
bodyNote,
bodyServedNote,
bodyUnavailable,
bodyUnavailableReason,
breadcrumb,
caseName,
chapter,
chapterName,
citation,
citationNote,
citationShort,
committeeNote,
corpusType,
court,
crossReferencesCfr,
crossReferencesCfrChecked,
crossReferencesUsc,
currencyNote,
currencyYear,
currentThrough,
datesText,
displayLabel,
displayPath,
documentNumber,
documentSubtype,
documentTypeLabel,
docxUrl,
edition,
effectiveDate,
effectiveDateRaw,
excerpt,
executiveOrderNumber,
expirationDate,
expirationDateRaw,
externalUrl,
federalRegisterCitations,
fieldAbsenceNote,
forum,
frCommentsCloseOn,
frCorrectionOf,
frCorrections,
frDocketIds,
frEffectiveOn,
frEndPage,
frRegulationIdNumbers,
frRegulationsDotGovUrl,
frRelatedDocuments,
frRelatedDocumentsNote,
frSignificant,
frStartPage,
frVolume,
goodLawBasis,
goodLawStatus,
govInfoHtmlUrl,
govInfoPdfUrl,
granuleId,
history,
historyEffectiveDate,
htmlUrl,
implementingRegulations,
instrumentNumberSource,
issueDate,
issueDateRaw,
issuingAgency,
languageCode,
lastAmendedDate,
lastAmendedDateRaw,
lastAmendedYear,
lawImplemented,
matchContexts,
matchNoteYear,
matchSegment,
originalEnactmentDate,
originalEnactmentDateRaw,
packageId,
parent,
part,
partName,
pdfUrl,
pendingAdoptions,
pendingAmendments,
popularName,
president,
priorEffectiveDates,
priorEffectiveDatesRaw,
proclamationNumber,
program,
publicLawCites,
publicLaws,
publicationDate,
publicationDateRaw,
publisherKey,
referencedShortTitles,
relatedCitations,
relatedDocuments,
releaseDate,
releaseDateRaw,
relevanceScore,
renumberedTo,
renumberedToLabel,
requesters,
rescindedOn,
rescindedOnRaw,
responseBounds,
reviewDate,
reviewDateRaw,
ruleSet,
ruleSetCode,
sectionNumber,
sectionTitle,
settlementAmount,
signingDate,
signingDateRaw,
source,
sourceCharEnd,
sourceCharStart,
sourceCredit,
sourceNote,
sourcePageEnd,
sourcePageStart,
sourceUrl,
sourceUrlNote,
state,
stateHtmlUrl,
statutoryAuthority,
subchapter,
subchapterName,
subject,
subjectNumber,
subpart,
subpartName,
subtitle,
subtitleName,
supersededBy,
supersedes,
supersessionActions,
textUrl,
title,
titleName,
titleNumber,
topLevelTitle,
topics,
transferredTo,
transferredToLabel,
versionId,
volume,
wordCount,
xmlUrl,
year
Example:
matchType
enum<string>
default:any

Controls exact vs. semantic matching. any (default) is hybrid semantic + keyword ranking and suits natural-language questions. Use all for strict keyword matching (every query word must appear in the text) or phrase for an exact-phrase match (the query's words, contiguous and in order). Both match whole words, case-insensitively, ignoring punctuation: act does not match fact, 10b-5 matches 10b 5, and § 1983 matches section 1983. Both are answered from the full text of every section in scope, so a section holding the words is found however the relevance ranking would have placed it, and they page like boolean.

boolean reads query as a terms-and-connectors expression and returns only sections that satisfy it, judged over each section's full text, ranked by relevance among them. Operators are UPPERCASE: AND, OR, NOT (negligence NOT criminal), /p same paragraph, /s same sentence, /N within N words (1-255), +p +s +N the same with the first term first, atleastN(term) at least N occurrences, "exact phrase", and bare words side by side are also an exact phrase (summary judgment). Wildcards: retaliat* or retaliat! (any letters or digits), wom?n (one character), with at least 3 characters first. Group with ( ). Precedence follows the convention of legal research services: OR binds tightest, then /N, /s, /p, then AND, then NOT. A malformed expression is a 422 naming the problem and its position, and is not charged; the response's parsedQuery shows how the expression was read. To pull up one specific section, pass its citation as the query with any (e.g. 42 U.S.C. § 1983) and it resolves to that section at rank 1.

Available options:
any,
all,
phrase,
boolean
Example:

"phrase"

limit
integer
default:10

Number of results to return per page.

Required range: 1 <= x <= 50
offset
integer
default:0

How many results to skip, for paging. Every page of a given query is cut from one ranking, so results never repeat or go missing between pages, and a later page costs no more than the first. any ranks one bounded pool of about 60 sections plus up to about 30 more from the law-specific legs, so roughly 60 to 90 results are reachable and hasMore turns false at the end of that pool, which can be before offset 70. offset is at most 70 there. For exhaustive paging use matchType: "boolean", all or phrase, which page to the end of the matches (up to 10,000): follow nextOffset.

Required range: 0 <= x <= 10000
includeBody
boolean
default:false

Return the full text of every hit inline, on each result's body, instead of making you fetch it per section afterwards.

Why it exists. Search returns a ranking preview, so the alternative is a search call plus one /section/{actId}/body call per hit. This collapses a whole page to a single round trip.

Cost: the 4-credit search PLUS the ordinary 6-credit body price for each row that actually returns text. Ten rows with text is 4 + 60 = 64 credits. A row whose text cannot be resolved comes back with body: null and is not charged, so read creditsConsumed rather than computing it from limit -- it is the same price as fetching them yourself, so this buys latency, not a discount.

⚠️ It multiplies with limit. limit: 50 with this set is 304 credits in a single call. Page deliberately.

includeBody wins over fields: if fields omits body, body is added to it (and notes says so), so every body you are billed for is in the response.

Prefer this over raising excerptChars: the excerpt is windowed around the match and can begin mid-section, dropping a leading subsection marker, so it is not safe to quote. body is the publisher's text.

Example:

true

includePinpoint
boolean
default:false

Name the subsection each hit matched, in a pinpoints object keyed by actId. Search ranks whole sections, and a section can run to dozens of subsections; with this set, a hit for 30 mph urban district speed limit comes back with 625 ILCS 5/11-601(c)(1), its own text, the lead-in it completes and its character offsets in the section's plain text.

Cost: none. The price is the search price and creditsConsumed does not change. It never changes which sections are returned, their order or their scores, and it never fails the search: a hit whose subsection cannot be named says why in reason and is still a real match. A subsection is named only when your query's words point at it, so a question put in other words than the law's gets located: false rather than a guess.

Time: adds the time to read each returned section's text, usually a few hundred milliseconds for a page of 10. Pinpoints for a large page stop after a few seconds, and the hits not reached say not_looked_up.

Example:

true

excerptChars
integer
default:500

Characters of matching text to include in each result's excerpt, 100 to 600. The excerpt is a ranking preview, deliberately too short to stand in for the section; use /us/statutes/section/{actId}/body (or includeBody) for the full text. Default 500. A larger value is a 422.

Required range: 100 <= x <= 600

Response

Ranked sections for the query.

results
StatuteResult · object[]

Matching sections, most relevant first. Ordering is by relevance, not statutory order; use /us/statutes/section/{actId}/related for what sits either side of a section in its code.

count
integer
default:0

How many results came back in THIS response, i.e. the length of results. It is not a total match count: the API ranks a bounded set of candidates rather than scoring the whole corpus, so no such total exists. Use hasMore to decide whether to ask for another page. With matchType: "boolean" the total is totalMatches.

total
integer
default:0
deprecated

DEPRECATED alias for count, kept for backward compatibility. The name reads as a corpus-wide match total, which it never was. Use count instead.

offset
integer
default:0

The offset applied to this page.

hasMore
boolean
default:false

Whether more results exist beyond this page. For any, all and phrase this is relative to a bounded ranking pool of roughly 60 to 90 sections, so false means the pool is exhausted, not that nothing else in the corpus matches. Use matchType: "boolean" and follow nextOffset to page through every match.

changedSectionCount
integer | null

Only present when changedSince is set: how many sections changed in that window, before ranking. Compare it against count. changedSince is a filter on a RANKED search, so a window holding more sections than one query can return is normal and the page you get is the most relevant slice of it, not all of it. When this number is larger than you can page to, the filter is a trigger rather than an inventory: subscribe to the board and poll GET /watches/{id}/changes, which is complete and costs no credits.

Example:

19055

rankingDegraded
boolean
default:false

True when the relevance model (a cross-encoder) was unavailable and the results are in hybrid-retrieval order instead. The sections are still real matches for the query, but the ordering is coarser and relevanceScore is a retrieval score rather than a 0-1 relevance, so do not threshold on it. Such a ranking is never cached: retrying shortly returns the fully ranked result once the model recovers.

Example:

false

noGoodMatch
boolean | null

True when nothing in the corpus looks on point for this query. It says nothing about whether the top result is the right section; check its citation and jurisdiction. False when the top result clears the relevance bar, or when the query is a citation or a section number that matched exactly. Null when rankingDegraded is true, because the bar is on the relevance model's scale. The same on every page of a query.

Example:

false

matchQuality
enum<string> | null

How strongly the evidence says result #1 answers the query. exact: a citation or section-number match. strong: the top result was correct about 94% of the time in our measurements (about 91% on questions whose answer is a statute or regulation). moderate: about 67%. weak: about 35%. none: nothing on point (same as noGoodMatch). Measured on our labelled evaluation set; tiers may be re-cut as the index changes, so treat unknown values as moderate. Null when rankingDegraded is true. The same on every page of a query.

Available options:
exact,
strong,
moderate,
weak,
none
Example:

"strong"

citationOutsideFilters
CitationOutsideFilters · object | null

Your query is a citation to a real section that your filters exclude. To read it, retry without the filters named in excludedBy, or call GET /us/statutes/resolve without them. Null when the query is not a citation, when the citation is inside your filters (it then ranks first), or when it names no section we hold. results are unchanged: a filter is a promise, so the section is reported here and not forced into the results. The same on every page of a query.

citationMissReason
CitationMissReason · object | null

Present only when the whole query is a citation that did not resolve to a section, so the results are an ordinary search and not the section it names. missReason says why (not_held, former_law, ambiguous_jurisdiction, out_of_scope_corpus, container_not_supported), missReasonHint what to try, and candidates the held sections an ambiguous citation could mean. Absent for a question, for a citation that resolved, and when citationOutsideFilters already explains it. malformed is never reported here: a free-text question is not malformed. The same on every page of a query. No extra charge.

parsedQuery
string | null

Present only with matchType: "boolean": the expression as it was read, in canonical form with explicit operators and grouping, e.g. (work OR employment) AND retaliation. Paste it back to run the same search.

Example:

"\"trust fund\" AND penalty NOT 6672"

queryWarnings
string[] | null

Present only with matchType: "boolean" when the expression is valid but may not mean what was intended: AND and OR combined without parentheses (services disagree on which binds first), lowercase and / or / not (searched as words), or an ignored ^ boost. The search ran as parsedQuery shows; nothing was changed.

totalMatches
integer | null

Present only with matchType: "boolean": how many sections satisfy the expression within your filters, across ALL pages, not just this one. Read it with totalMatchesExact. Absent when it could not be counted in time. The same on every page of a query.

Example:

1342

totalMatchesExact
boolean | null

Present with totalMatches. True: it is the exact number of matching sections (a section the corpus holds under two ids, such as a Federal Rule kept in two collections, counts twice and is served once). False: it is an UPPER BOUND, because the expression uses an operator the count cannot judge exactly (phrases, /s, /p, proximity, atleastN, wildcards inside proximity) or a filter the count does not apply (anything beyond corpusType, state, actStatus and excludeRepealed); every served row still satisfies the expression. Omitted from the response when it has no value.

Example:

true

relevanceRankedCount
integer | null

Present only with matchType: "boolean": how many leading results (at most 120) are ordered by the relevance model. Results after them continue in keyword (BM25) order and repeat the last ranked relevanceScore, so every match can be paged to without being re-scored.

Example:

120

nextOffset
integer | null

Present only with matchType boolean, all or phrase while hasMore is true: the offset to send for the next page. Usually offset + limit. Past the relevance-ranked results a page can hold fewer rows than limit (candidates outside your filters, or failing the expression on full-text verification, are left out), and when verification runs out of time the page stops early and nextOffset resumes exactly where it stopped. Follow it rather than computing the offset. For any the field is absent: while hasMore is true, request the next page with offset + limit.

Example:

170

queryHint
string | null

Present only with matchType: "any" when the query is written in Boolean syntax (an UPPERCASE AND/OR/NOT between words, a proximity connector such as /s or /5, or atleastN(). The search was not run as Boolean: retry with matchType: "boolean" to apply the operators.

pinpoints
Pinpoints · object | null

Present only when the request set includePinpoint: true. Names the subsection each hit matched, keyed by the hit's actId: a hit for 30 mph urban district speed limit reads 625 ILCS 5/11-601(c)(1). One entry per returned result, so a result with no entry here was not looked at (see pinpointNote). Read located first. When it is true, pinpoint and citation name the unit, text is its own text and leadIn the text of each ancestor it completes, and charStart / charEnd index into the plain text of GET /us/statutes/section/{actId}/body (see structure.textSha256). When it is false, reason and note say why no subsection is named; the section itself is still a real match. A subsection is named only when the words of your query point at it: a question put in other words than the law's, or a query that fits several unrelated subsections equally, gets no pinpoint rather than a guess. matchedTerms shows which of your words the unit carries. No extra charge.

Example:
pinpointNote
string | null

Present only when the request set includePinpoint: true and no pinpoints were looked up for this page, with the reason: the relevance model was unavailable (rankingDegraded), the candidate pool was incomplete (so the results are a coarser answer), or the pinpoint step itself failed (lookup_failed). Retry shortly for the full one. The pinpoint lookup is never charged on its own; a page served with rankingDegraded: true is refunded whether or not pinpoints were asked for (see notes and creditsConsumed), and any other page is charged as an ordinary search.

droppedCount
integer | null

Present only when this page is SHORT because that many ranked hits could not be loaded or serialized on our side and were left out: count is then smaller than the page the ranking chose. It is a fault, not a filter, and says nothing about whether those sections exist; repeat the call to get them. Absent on a complete page.

Example:

1

bodyNote
string | null

Present only when includeBody: true was set and the bodies were withheld because the balance could not cover them (each row says bodyNote: insufficient_credits). The ranking was served and billed as usual; no body was charged.

rankingPartial
boolean
default:false

True when part of the candidate pool could not be built (a retrieval leg failed or the query embedding was unavailable) or a citation in the query could not be checked against your filters. The results are real matches but a coarser answer than a complete pool would give. Such a ranking is not cached, so repeating the call may return the full one. Absent on a complete page.

Example:

true

notes
string[] | null

Plain-language notes about THIS page, present only when there is something to say: why an empty page was not charged and which filters emptied it, that noGoodMatch is charged, that a changedSince window of zero sections is not proof that nothing changed for a corpus without a captured change log, or that filters applied after the Boolean candidate index left the page shorter than limit.

Example:
query
string
default:""

The search query used.

processingTimeMs
number
default:0

Server-side time for this request in milliseconds, excluding network transit. Useful for spotting a slow query; not billed on.

Example:

240.5

creditsConsumed
number
default:0

Credits actually charged for this call, after any refund. Failed work bills 0 and batch endpoints charge per item returned.

Example:

4