Raw schema
{
"type": "object",
"properties": {
"query": {
"type": "string",
"maxLength": 500,
"minLength": 2,
"description": "Search query in natural language.",
"examples": [
"insider trading penalties"
]
},
"corpusType": {
"anyOf": [
{
"type": "string",
"enum": [
"USC",
"CFR",
"STATE",
"CONSTITUTION",
"FEDERAL_RULES",
"STATE_CONSTITUTION",
"STATE_RULES",
"EXECUTIVE_ACTION",
"REGULATION",
"FEDERAL_REGISTER",
"AGENCY_GUIDANCE",
"SENTENCING_GUIDELINES",
"US_TAX_TREATY",
"STATE_AGENCY_GUIDANCE",
"SESSION_LAW"
]
},
{
"items": {
"type": "string",
"enum": [
"USC",
"CFR",
"STATE",
"CONSTITUTION",
"FEDERAL_RULES",
"STATE_CONSTITUTION",
"STATE_RULES",
"EXECUTIVE_ACTION",
"REGULATION",
"FEDERAL_REGISTER",
"AGENCY_GUIDANCE",
"SENTENCING_GUIDELINES",
"US_TAX_TREATY",
"STATE_AGENCY_GUIDANCE",
"SESSION_LAW"
]
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Restrict to one corpus, or several as a list. Federal: `USC`, `CFR`, `CONSTITUTION`, `FEDERAL_RULES`, `FEDERAL_REGISTER`, `EXECUTIVE_ACTION`, `SENTENCING_GUIDELINES`, `US_TAX_TREATY`, `SESSION_LAW` (Statutes at Large, as enacted). Pair with `state`: `STATE`, `REGULATION`, `STATE_RULES`, `STATE_CONSTITUTION`, `STATE_AGENCY_GUIDANCE`. Omit for all.",
"examples": [
"CFR"
]
},
"state": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"enum": [
"federal",
"al",
"ak",
"az",
"ar",
"ca",
"co",
"ct",
"de",
"dc",
"fl",
"ga",
"hi",
"id",
"il",
"in",
"ia",
"ks",
"ky",
"la",
"me",
"md",
"ma",
"mi",
"mn",
"ms",
"mo",
"mt",
"ne",
"nv",
"nh",
"nj",
"nm",
"ny",
"nc",
"nd",
"oh",
"ok",
"or",
"pa",
"pr",
"ri",
"sc",
"sd",
"tn",
"tx",
"ut",
"vt",
"va",
"wa",
"wv",
"wi",
"wy"
],
"description": "Jurisdiction. A 2-letter code for one of the 52 supported US jurisdictions (50 states + DC + PR), or `federal` for USC / CFR / Constitution / federal rules. Pass a list to search several at once. Case-insensitive. Omit to search every jurisdiction.",
"examples": [
"ca"
]
},
"code": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Restrict to specific state statutory codes, e.g. `tx_pe` for the Texas Penal Code. Values are the `actId`s from list_statute_divisions. List allowed, across states. The only way to scope below a whole jurisdiction: `state=tx` alone searches all ~15 Texas codes.",
"examples": [
"tx_pe"
]
},
"yearFrom": {
"anyOf": [
{
"type": "integer",
"maximum": 2100,
"minimum": 1700
},
{
"type": "null"
}
],
"description": "Only sections last amended in or after this year; pair with `yearTo` for a window. Tracks the publisher's own amendment credit, not when we rebuilt the corpus. About a fifth of sections carry no credit and are excluded once either bound is set.",
"examples": [
2020
]
},
"yearTo": {
"anyOf": [
{
"type": "integer",
"maximum": 2100,
"minimum": 1700
},
{
"type": "null"
}
],
"description": "Only sections last amended in or before this year. This filters the LAST amendment, so a section amended in 2025 is excluded by `yearTo=2024` even though it existed in 2024. A currency filter, not point-in-time retrieval.",
"examples": [
2026
]
},
"excludeRepealed": {
"type": "boolean",
"description": "Drop sections whose own status says they are not operative (repealed, renumbered, transferred, expired, superseded, omitted, and the rest). Removes what we KNOW is dead; it does not promise the remainder is good law. Read `goodLawStatus` per result to tell them apart: `good_law` is checked, `unknown` is unchecked.",
"default": false,
"examples": [
true
]
},
"actStatus": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"enum": [
"abolished",
"deleted",
"expired",
"in_force",
"inactive",
"not_funded",
"not_yet_effective",
"omitted",
"proposed",
"recodified",
"recompiled",
"rejected",
"relocated",
"removed",
"renumbered",
"repealed",
"rescinded",
"reserved",
"revoked",
"superseded",
"terminated",
"transferred",
"unconstitutional",
"vacant",
"vetoed",
"withdrawn"
],
"description": "Positively scope to raw publisher statuses: `repealed` for dead law only, `in_force` for sections affirmatively marked current. The inverse of `excludeRepealed`, and what a compliance diff asking what was LOST needs. Combining a dead status with `excludeRepealed: true` is rejected 422.",
"examples": [
"repealed"
]
},
"changedSince": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
],
"description": "Only sections we OBSERVED changing on or after this date (`YYYY-MM-DD`). Observed, not effective: the date we saw it, an upper bound on when it took effect. Capture began long after the corpus did and events sweep at 24 months, so empty means no captured change, never that nothing was amended.",
"examples": [
"2026-08-01"
]
},
"agency": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "Federal Register agency slug, e.g. `environmental-protection-agency`. 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.",
"examples": [
"environmental-protection-agency"
]
},
"documentType": {
"anyOf": [
{
"type": "string",
"enum": [
"final",
"proposed",
"presidential"
]
},
{
"type": "null"
}
],
"description": "Federal Register document stage: `final` (a rule in force), `proposed` (an NPRM), or `presidential` (a Presidential Document, the `EXECUTIVE_ACTION` corpus). Previously visible only as an `actId` prefix (`FR_RULE_` vs `FR_PRORULE_`) with no way to filter.",
"examples": [
"final"
]
},
"publishedFrom": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
],
"description": "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.",
"examples": [
"2024-01-01"
]
},
"publishedTo": {
"anyOf": [
{
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$"
},
{
"type": "null"
}
],
"description": "Only return Federal Register documents published on or before this date.",
"examples": [
"2024-12-31"
]
},
"titleNumber": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"description": "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).",
"examples": [
17
]
},
"chapter": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "One or more chapters within a title or code, e.g. `21` for USC Title 42 Chapter 21. Pass a hit's `parent.chapter` back to search its neighbors. Chapter numbers repeat across titles, so pair with `titleNumber` (USC) or `code` (state); an unpaired chapter is rejected.",
"examples": [
"21"
]
},
"part": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"description": "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` back. Pair with `titleNumber`; an unpaired part is rejected.",
"examples": [
"240"
]
},
"source": {
"anyOf": [
{
"type": "string"
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"enum": [
"administrative_guidance",
"agency_guidance",
"bis_advisory_opinion",
"cftc_staff_letter",
"copyright_circular",
"cpsc_advisory_opinion",
"cpsc_secg",
"ddtc_commodity_jurisdiction",
"ddtc_guidance",
"dfars",
"dfars_pgi",
"doe_appliance_guidance",
"doj_justice_manual",
"doj_leniency",
"far",
"fcc_declaratory_ruling",
"fdic_fil",
"ferc_policy_statement",
"fincen_guidance",
"fincen_ruling",
"frap",
"frb_sr_letter",
"frbp",
"frcp",
"frcrp",
"fre",
"hhs_ocr_hipaa_faq",
"hhs_ocr_hipaa_guidance",
"hhs_ocr_resolution_agreement",
"irs_announcement",
"irs_notice",
"irs_rev_proc",
"irs_rev_rul",
"merger_guidelines",
"mpep",
"nlrb_advice_memo",
"nlrb_gc_memo",
"occ_bulletin",
"occ_interpretive_letter",
"sct",
"ssa_ruling",
"state_insurance_bulletin",
"tmep",
"us_tax_treaty",
"us_tax_treaty_technical_explanation",
"uscis_policy_manual"
],
"description": "The named body of law within a `corpusType` that folds several together: `FEDERAL_RULES` into `frcp`/`fre`/`sct`, `CFR` into `far`/`dfars`, `AGENCY_GUIDANCE` into ~34 agency sources. Every result carries its own `source`, so a hit's value can be passed straight back.",
"examples": [
"sct"
]
},
"fields": {
"anyOf": [
{
"items": {
"type": "string"
},
"type": "array",
"uniqueItems": true
},
{
"items": {
"type": "string"
},
"type": "array"
},
{
"type": "null"
}
],
"enum": [
"abstract",
"actId",
"actStatus",
"action",
"adoptingCitations",
"agencies",
"agencySlugs",
"alternateCitations",
"amendmentHistory",
"amendmentNote",
"amendmentYears",
"amendmentsCount",
"articleName",
"articleNumber",
"audience",
"breadcrumb",
"caseName",
"chapter",
"chapterName",
"citation",
"citationShort",
"committeeNote",
"corpusType",
"crossReferencesCfr",
"crossReferencesUsc",
"currencyNote",
"currencyYear",
"currentThrough",
"datesText",
"displayLabel",
"displayPath",
"documentNumber",
"documentSubtype",
"documentTypeLabel",
"docxUrl",
"edition",
"effectiveDate",
"excerpt",
"expirationDate",
"externalUrl",
"federalRegisterCitations",
"frCommentsCloseOn",
"frCorrectionOf",
"frCorrections",
"frDocketIds",
"frEffectiveOn",
"frEndPage",
"frRegulationIdNumbers",
"frRegulationsDotGovUrl",
"frRelatedDocuments",
"frSignificant",
"frStartPage",
"frVolume",
"goodLawStatus",
"govInfoHtmlUrl",
"govInfoPdfUrl",
"granuleId",
"history",
"htmlUrl",
"implementingRegulations",
"issueDate",
"issuingAgency",
"languageCode",
"lastAmendedDate",
"lastAmendedYear",
"lawImplemented",
"licenseNote",
"originalEnactmentDate",
"packageId",
"parent",
"part",
"partName",
"pdfUrl",
"popularName",
"president",
"priorEffectiveDates",
"program",
"publicLawCites",
"publicLaws",
"publicationDate",
"publisherKey",
"referencedShortTitles",
"relatedCitations",
"releaseDate",
"relevanceScore",
"renumberedTo",
"requesters",
"rescindedOn",
"reviewDate",
"ruleSet",
"ruleSetCode",
"sectionNumber",
"sectionTitle",
"settlementAmount",
"signingDate",
"source",
"sourceCharEnd",
"sourceCharStart",
"sourceCredit",
"sourceNote",
"sourcePageEnd",
"sourcePageStart",
"state",
"stateHtmlUrl",
"statutoryAuthority",
"subchapter",
"subchapterName",
"subject",
"subjectNumber",
"subpart",
"subpartName",
"subtitle",
"subtitleName",
"supersededBy",
"supersedes",
"supersessionActions",
"textUrl",
"title",
"titleName",
"titleNumber",
"topLevelTitle",
"topics",
"transferredTo",
"versionId",
"volume",
"wordCount",
"xmlUrl",
"year"
],
"description": "Return only these result fields, e.g. `[\"title\", \"excerpt\"]`. A result carries 40+ fields, most null on any given row. `actId` and `citation` are always included. Unknown names are rejected 422. Omit for the full object.",
"examples": [
[
"title",
"excerpt",
"state"
]
]
},
"limit": {
"type": "integer",
"maximum": 50,
"minimum": 1,
"description": "Number of results to return per page.",
"default": 10
},
"offset": {
"type": "integer",
"maximum": 70,
"minimum": 0,
"description": "How many results to skip, for paging. Every page of a query is cut from one ranking, so results never repeat or go missing between pages. The deepest reachable result is `offset` + `limit`; check `hasMore`.",
"default": 0
},
"excerptChars": {
"type": "integer",
"maximum": 4000,
"minimum": 100,
"description": "Characters of matching text to include in each result's `excerpt`. The excerpt is a ranking preview; use `/us/statutes/section/{actId}/body` for the full text. Default 500.",
"default": 500
},
"matchType": {
"type": "string",
"enum": [
"any",
"all",
"phrase"
],
"description": "`any` (default) is hybrid semantic + keyword ranking, for natural-language questions. `all` requires every query term; `phrase` matches an exact phrase, for a defined term. To pull up one section, pass its citation as the query and it resolves to that section at rank 1.",
"default": "any",
"examples": [
"phrase"
]
}
},
"required": [
"query"
]
}