Skip to main content
Every section has one unique identifier, its 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

The actId 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

  1. Search: POST /us/statutes/search returns results, each with an actId.
  2. Metadata: GET /us/statutes/section/{actId} returns the full result object for one section.
  3. Full text: GET /us/statutes/section/{actId}/body returns the text, when available.
  4. Neighbors (optional): GET /us/statutes/section/{actId}/related returns the sections before and after, in the statute’s own order. The response has previous and next arrays of section objects and a container label.
Search results and the 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 first actId, then fetch its metadata and body.
cURL
To read the neighbors of a section you already hold:
cURL
A 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 with GET /us/statutes/resolve instead.
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.
Last modified on November 11, 2026