codeany
State statutory code identifier, e.g. 'tx_pe' (Texas Penal Code) — the identifier /us/statutes/divisions returns for corpusType=STATE. The only way to scope below a whole jurisdiction.
https://api.sandbase.ai/v1/api/vaquill/countCount the law sections in a jurisdiction, corpus, code, title, chapter, or part.
Your output will appear here
Complete the inputs, then click Run.
Count the law sections in a jurisdiction, corpus, code, title, chapter, or part.
Start building
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/vaquill/count" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{}
SANDBASE_JSON
)
printf '%s\n' "$result"Set your SandBase API key in your server environment. Requests use Bearer authentication.
export SANDBASE_API_KEY="YOUR_API_KEY"Keep your key on the server. Do not expose it in browser code.
codeanyState statutory code identifier, e.g. 'tx_pe' (Texas Penal Code) — the identifier /us/statutes/divisions returns for corpusType=STATE. The only way to scope below a whole jurisdiction.
partanyPart within a title or code, e.g. '240' (17 C.F.R. Part 240). Must be paired with titleNumber or code, or upstream answers 422.
stateanyLowercase two-letter jurisdiction code (50 states, 'dc', 'pr'), or 'federal' for USC / CFR / Constitution / federal rules. A list covers several at once.
chapteranyChapter within a title or code, e.g. '21'. Must be paired with titleNumber or code, or upstream answers 422.
actStatusanyKeep only sections carrying these publisher statuses, e.g. 'repealed'. Contradicts excludeRepealed when it names a dead status (upstream 422).
corpusTypeanyRestrict to one corpus or a list, e.g. 'CFR' or ['USC','CFR']. Omit to cover every corpus. /us/statutes/coverage lists what each jurisdiction holds.
titleNumberintegerUSC or CFR title number, e.g. 17 (SEC) or 42 (civil rights). State titles are not numeric — use code.
excludeRepealedbooleanDrop sections whose status is affirmatively dead (repealed, renumbered, superseded, ...). A section with no recorded status is kept; read goodLawStatus on each result.
Saved example response for this API; no live request is made when viewing it.
No saved response has been published. Run the API in Playground to inspect its response.
Explore more
| API | Price | Response |
|---|---|---|
Vaquill CountThis API Vaquill | $0.01 per call | Async JSON |
Vaquill | From $0 per call | Async JSON |
Vaquill | $0.01 per call | Async JSON |
Vaquill | From $0.02 per call | Async JSON |
Questions
Send a POST request to https://api.sandbase.ai/v1/api/vaquill/count with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
$0.01 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.
No parameters are required. Optional: code (any), part (any), state (any), chapter (any), actStatus (any) and corpusType (any) and 2 more. The Parameters table and the Playground on this page list every field.
A JSON result. This endpoint runs asynchronously, so the response tells you how to fetch the finished result.
No. Vaquill Count runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Vaquill API access separately.