actId.
Use it to fetch a section’s metadata and full text.
Get the actId from search results and pass it back to the section endpoints. Do not build one by hand.
What an actId looks like
Treat the whole string as an opaque key. Read it from a result, store it, and pass it back unchanged.
State ids cannot be derived from a citation.
Stability over time
TheactId stays the same when a section is amended or repealed. A repealed section keeps its id and a lookup still resolves.
It changes only when the section is renumbered, moved or recodified.
Store the citation alongside the actId.
If a stored actId stops resolving, the section was probably renumbered. Re-resolve by citation with GET /us/statutes/resolve and update your record.
A watch on the section emits a removed event with the old actId (see Law change alerts).
The workflow
- Search:
POST /us/statutes/searchreturns results, each with anactId. - Metadata:
GET /us/statutes/section/{actId}returns the full result object for one section. - Full text:
GET /us/statutes/section/{actId}/bodyreturns the text, when available. - Neighbors (optional):
GET /us/statutes/section/{actId}/relatedreturns the sections before and after, in the statute’s own order. The response haspreviousandnextarrays of section objects and acontainerlabel.
section object share one shape.
The fields that place and cite a section are titleNumber, titleName, chapter, chapterName, sectionNumber, displayPath, breadcrumb, citation and citationShort.
See Hierarchy and container names and Response fields.
titleNumber can be alphanumeric (such as 13A), so treat it as a string.
Example: search, then fetch
Search, take the firstactId, then fetch its metadata and body.
cURL
The same walk in Python and JavaScript
The same walk in Python and JavaScript
cURL
404 on either section endpoint means no section was found.
Check available before reading html or plain from /body.
A section printed as images returns bodyUnavailable: true and bodyUnavailableReason: "image_only_source" instead of text.
When an actId misses
An id built by hand will miss. Start from a citation withGET /us/statutes/resolve instead.
The batch route and its notFound detail
The batch route and its notFound detail
POST /us/statutes/sections takes up to 50 actIds. It returns sections, notFound (the bare ids) and notFoundDetail, one entry per missed id:assembled_id means the id does not exist but the section does, under the ids in didYouMean.
For example, Tex. Property Code § 93.005 is STATE_TX_Cpr_C93_S93.005, not STATE_TX_C93_S93.005.not_in_corpus means nothing matching was found. Check GET /us/statutes/coverage for that jurisdiction.Ids in notFound are not charged. notFoundDetail can come back empty.Related
- Response formats: the text formats and source URLs a section can carry.
- Corpus types: the corpusType tokens you filter a search by.
- Hierarchy and container names: what each level of the hierarchy is called.

