Skip to main content
POST
Search US local law

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/local-law/search.

query
string | null

Words, a phrase, a Boolean expression or a citation. Optional only when changedSince is set.

Maximum string length: 500
Example:

"short-term rental"

matchType
enum<string>
default:all

any word, all words (default), the exact phrase, or a boolean expression.

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

"all"

state

md, MD or Maryland; one or a list.

Example:

"md"

place

A place id (md/baltimore) or an exact place name. A name that matches several places is a 422 listing them.

Example:

"md/baltimore"

placeType

The kind of place.

Available options:
city,
county,
town,
village,
borough,
township,
charter_township,
parish,
municipality,
district,
authority,
agency
Example:

"city"

kind

The kind of document.

Available options:
code,
charter,
local_law,
zoning,
rules,
private_act
Example:

"zoning"

code

A code id from /us/local-law/places (MUNI_MD_BALTIMORE_CODE).

Example:

"MUNI_MD_BALTIMORE_CODE"

groupBy
enum<string>
default:section

place returns the best section per place (a cross-jurisdiction survey).

Available options:
section,
place
Example:

"section"

changedSince
string<date> | null

ISO date. Without query: sections first seen, changed or withdrawn on or after it, oldest first, each with change. With query: narrows to sections added or changed since.

Example:

"2026-11-01"

includeBody
boolean
default:false

Full text per row (priced per row).

Example:

false

excerptChars
integer | null

Excerpt length, 100 to 600. Out of range is clamped and said so in notes.

Example:

300

limit
integer
default:10

Rows per page, 1 to 50.

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

10

offset
integer
default:0

Rows to skip.

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

0

Response

A page of sections. An empty results carries a note in notes.

results
SectionRow · object[]
required
count
integer
required
totalHits
integer
required
limit
integer
required
offset
integer
required
creditsConsumed
integer
required
rankingMode
string
default:keyword
Allowed value: "keyword"
notes
string[]
processingTimeMs
number | null