Skip to main content
POST
Search the text of state session laws

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

Body of POST /us/session-laws/search.

query
string
required

What to look for: a question in plain words (can a sheriff pay with a debit card), words from a title, a quoted phrase ("credit card or debit card"), a citation (63-3004), a code section or a bill number (S.F.No. 1552). Quoted parts must appear verbatim; everything else is matched on its words, stemmed, so licensing finds licensed. Words are matched as the legislature wrote them: teeth cleaning professional does not find an act that says dental hygienist. 2 to 300 characters.

Required string length: 2 - 300
Example:

"can the sheriff pay with a debit card"

jurisdiction
enum<string> | null

Limit to one jurisdiction: the 56 jurisdictions (the 50 states, dc and the territories pr, gu, vi, as, mp). Two-letter code, case-insensitive. Omit to search every jurisdiction we hold. federal and an unknown code are a 422, never charged.

Available options:
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:

"al"

session
string | null

Limit to one session, by the code session.code reports (2025R, 2025S1). Case-sensitive. Matches the act's own session on every kind of match: a law of another session is never returned, including one found through the words of its text (the session is re-checked on each law before it is ranked, so a narrow session can leave fewer than limit laws on a page).

Required string length: 1 - 32
Pattern: ^[A-Za-z0-9._-]+$
Example:

"2025R"

series
enum<string>[] | null

Limit to these numbering series, one or more (they combine with OR). One of general, public, public_act, special_act, private_and_special, act, acts, law, local, municipal, appropriation, resolve, resolves, resolution, resolution_chapter, joint_resolution, concurrent_resolution, memorial, initiated_bill, constitutional_amendment, private, constitutional_resolution, competing_measure_resolution, resolution_act. Any other value is a 422, never charged.

Available options:
general,
public,
public_act,
special_act,
private_and_special,
act,
acts,
law,
local,
municipal,
appropriation,
resolve,
resolves,
resolution,
resolution_chapter,
joint_resolution,
concurrent_resolution,
memorial,
initiated_bill,
constitutional_amendment,
private,
constitutional_resolution,
competing_measure_resolution,
resolution_act
Example:
instrumentType
enum<string>[] | null

Limit to these kinds of measure, one or more (OR). One of act, joint_resolution, concurrent_resolution, resolution, resolve, memorial, other. Any other value is a 422, never charged.

Available options:
act,
joint_resolution,
concurrent_resolution,
resolution,
resolve,
memorial,
other
Example:
approvedFrom
string<date>

Only laws approved on or after this date, YYYY-MM-DD, inclusive; a real calendar date (2025-02-30 is a 422). A law with no printed approval date never matches.

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

"2025-03-01"

approvedTo
string<date>

Only laws approved on or before this date, YYYY-MM-DD, inclusive. An end before approvedFrom is a 422, never charged.

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

"2025-06-30"

limit
integer
default:10

Laws per page, 1 to 25. A page costs the same however many laws it holds, so a larger limit is cheaper per law.

Required range: 1 <= x <= 25
Example:

5

offset
integer
default:0

Laws to skip, for the next page: offset plus limit can reach at most the 60 best matches. Each page is a new search and is charged. Deeper than 60 is a 422, never charged: narrow the search with a filter instead.

Required range: 0 <= x <= 59
Example:

5

includeUnverified
boolean
default:false

Also search laws we hold but do not serve (holdingState: quarantined). Default false: such laws are never returned and nothing else changes. With true a held-back law whose reason we can label may appear, and every such result carries holdingState, textReliability (unverified or known_issue) and reasonCode; its text MAY show deleted or vetoed law as if enacted. Served laws are returned as usual, without these fields. A law whose licence bars use, or whose text failed our own validation, is never returned. A held-back law is matched by its title, code section, its OWN citation (Laws 2025, ch. 127) or bill number, not by the words of its text and not by a code citation that appears inside it. Priced as any search page.

Example:

true

Response

The laws that matched, best first. An empty results is a charged answer.

Response for POST /us/session-laws/search.

query
string
required

The query as read, whitespace collapsed.

Example:

"can the sheriff pay with a debit card"

parsed
SessionLawSearchParsed · object
required

How the query was split into words, phrases, citations and bill numbers.

results
SessionLawSearchResult · object[]

The laws, best first. Empty when nothing matched: a search narrowed by a filter is then refunded, an unfiltered one is an answer and is charged. Either way note says which.

note
string | null

Set when results is empty: says why and whether the call was charged.

Example:

"No session laws matched with filters jurisdiction=mn. Not charged."

count
integer
default:0

Laws on this page.

Example:

5

offset
integer
default:0

The offset this page was read from.

Example:

0

limit
integer
default:10

The limit this page was read with.

Example:

5

hasMore
boolean
default:false

True when more laws follow: call again with offset raised by limit (within the 60 best).

Example:

true

creditsConsumed
number
default:0

Credits actually charged for this call, never the list price. 0 when the call was refunded.

Example:

4

processingTimeMs
number
default:0

Server-side time for this request in milliseconds, excluding network transit. Not billed on.

Example:

38.6