Get Section Changes
get_section_changesRetrieve recorded changes for a legal section (when it was added, amended, or removed), newest first. Filter by change kind and paginate through history.
Instructions
What our refreshes have observed changing on one section over time: when it was added, amended or removed, newest first. This is our capture history, not the publisher's -- an empty list means we recorded no change, never that the section was never amended. For the publisher's own history, read amendmentHistory on the section.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max changes to return on this page. | |
| order | No | `desc` (default) is newest first, the natural reading order for a history. Use `asc` to replay a section's life forward, or when catching up from a cursor. | desc |
| act_id | Yes | Section identifier, e.g. `USC_T42_C21_S1983` (Title 42, Chapter 21, Section 1983, written 42 U.S.C. 1983). Take it from a search result rather than assembling it: the title and section are derivable from a citation but the CHAPTER is not, so hand-built ids usually 404. | |
| sinceId | No | Return only changes with an `id` greater than this: the cursor for polling forward into new changes. Ids are a monotonic sequence, so this is exact, immune to clock skew, and cannot drop two changes that share a timestamp. Carry `cursor` forward. | |
| beforeId | No | Return only changes with an `id` less than this: the cursor for walking BACK through history, which is what a newest-first reader needs. Pass the smallest `id` on your last page. | |
| changeKind | No | Filter to these kinds. Repeat the parameter to pass several (`?changeKind=amended&changeKind=removed`). Omit for all three. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||