Skip to main content
POST
Count the sections in a scope

Authorizations

Authorization
string
header
required

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

Body

application/json

Filter-only section count. See POST /us/statutes/count.

Deliberately takes NO query. A count of "sections matching this query" does not exist: ranking runs over a bounded window, so the honest answer to that question is the window size rather than a corpus figure. This counts a SCOPE, which is exact, cheap, and the number an acquisition job actually needs before it starts walking.

corpusType

Corpus to count, single or list. Omit to count every corpus.

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

"REGULATION"

state
enum<string>

Two-letter jurisdiction code or federal, single or list.

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

"tx"

code

State code identifier, e.g. tx_26. Pair with state.

Example:

"tx_26"

titleNumber
integer | null

USC or CFR title number.

Example:

42

chapter

Chapter identifier. Pair with titleNumber or code.

Example:

"554"

part

CFR part identifier. Pair with titleNumber.

Example:

"240"

actStatus

Count only sections carrying this status.

Example:

"repealed"

excludeRepealed
boolean
default:false

Exclude sections whose status is affirmatively dead. A section with no recorded status is KEPT, because a missing status is not evidence of repeal. The US Code is served from a stored annual edition, so a section repealed after it closed is counted here; see the same field on /search for the measurement.

Example:

true

Response

The number of sections in scope, and the scope that produced it.

Response for POST /us/statutes/count.

count
integer
default:0

Sections in scope. This is a SECTION count, not a passage count: long sections are stored as several passages and are counted once.

Example:

43638

isExact
boolean
default:true

True when the figure is an exact count rather than an estimate. Present so a future estimated mode cannot be mistaken for this one.

Example:

true

scope
Scope · object

The filters that produced this figure, echoed back. A count with no scope attached is not reproducible, and an ignored filter would otherwise be invisible.

Example:
processingTimeMs
number
default:0

Server-side time for this request in milliseconds.

Example:

85.2

creditsConsumed
number
default:0

Credits actually charged for this call.

Example:

1

Last modified on September 18, 2026